بنقرة واحدة
nexus
Kailash Nexus (Ruby) — MANDATORY for API+CLI+MCP. Direct Rack/Sinatra BLOCKED.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Kailash Nexus (Ruby) — MANDATORY for API+CLI+MCP. Direct Rack/Sinatra BLOCKED.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Claude Code architecture — artifact design, context, agentic patterns. For CC audit/build.
Kailash Ruby SDK — gem setup, workflows, nodes, runtime, Magnus FFI bindings.
Kailash DataFlow (Ruby/Magnus) — MANDATORY for DB/CRUD/bulk/migrations. Raw SQL/ORMs BLOCKED.
Kailash Kaizen (Ruby) — MANDATORY for AI agents/RAG/signatures. Raw LLM clients BLOCKED.
Kailash MCP (Ruby) — server, client, tools, resources, auth, transports. For AI agent integration.
Kailash deployment + Git — PyPI publish, CI/CD, wheels, version bumps, multi-package.
| name | nexus |
| description | Kailash Nexus (Ruby) — MANDATORY for API+CLI+MCP. Direct Rack/Sinatra BLOCKED. |
Nexus is a zero-config multi-channel platform built on Kailash Core SDK that deploys workflows as API + CLI + MCP simultaneously. The Ruby gem wraps the Rust Nexus engine via native extensions and provides Rack middleware integration.
gem install kailash-nexus
Or in Gemfile:
gem "kailash-nexus"
require "kailash/nexus"
# Create workflow
workflow = create_my_workflow
# Deploy to all channels at once
nexus = Kailash::Nexus.new(workflow)
nexus.run(port: 8000)
# Now available via:
# - HTTP API: POST http://localhost:8000/api/workflow/{workflow_id}
# - CLI: nexus run {workflow_id} --input '{"key": "value"}'
# - MCP: Connect via MCP client (Claude Desktop, etc.)
require "kailash/nexus"
app = Kailash::Nexus::App.new(port: 3000)
# Register handler -- deployed to all channels at once
app.handler("greet", description: "Greet a user") do |params|
{ message: "Hello, #{params[:name]}!" }
end
app.start
# HTTP: POST http://localhost:3000/api/greet
# CLI: nexus run greet --name "World"
# MCP: Available as MCP tool
Nexus eliminates boilerplate:
Single deployment, three access methods:
Consistent session management:
Production-ready capabilities:
require "kailash/nexus"
require "kailash/dataflow"
db = Kailash::DataFlow.new do |config|
config.database_url = ENV["DATABASE_URL"]
end
db.model "User" do |m|
m.string :name
m.string :email
end
# Auto-generates CRUD endpoints for all models
nexus = Kailash::Nexus.new(db.workflows)
nexus.run(port: 8000)
# GET /api/User/list
# POST /api/User/create
# GET /api/User/read/:id
# PUT /api/User/update/:id
# DELETE /api/User/delete/:id
require "kailash/nexus"
require "kailash/kaizen"
app = Kailash::Nexus::App.new(port: 3000)
app.handler("agent_chat", description: "Chat with AI agent") do |params|
delegate = Kailash::Kaizen::Delegate.new(model: ENV["LLM_MODEL"])
result = delegate.run_sync(params[:message])
{ response: result }
end
app.start # Agents accessible via API, CLI, and MCP
require "kailash"
require "kailash/nexus"
registry = Kailash::Registry.new
builder = Kailash::WorkflowBuilder.new
builder.add_node("NoOpNode", "start", {})
workflow = builder.build(registry)
nexus = Kailash::Nexus.new(workflow)
nexus.run(port: 8000)
# config.ru
require "kailash/nexus"
nexus = Kailash::Nexus.new(my_workflows)
# Mount Nexus as Rack middleware
use Kailash::Nexus::Middleware, nexus: nexus
run MyRailsApp
require "kailash/nexus"
app = Kailash::Nexus::App.new(
host: "0.0.0.0",
port: 3000,
preset: :enterprise
)
app.cors(origins: ["https://app.example.com"])
app.rate_limit(max_requests: 100, window_secs: 60)
app.handler("status", description: "Platform status") do |_params|
app.health_check
end
app.start
nexus = Kailash::Nexus.new(workflows)
nexus.run(port: 8000) # Single process
app = Kailash::Nexus::App.new(
host: "0.0.0.0",
port: 3000,
preset: :enterprise
)
# Register handlers...
app.start # Host/port configured at init
# config/puma.rb
workers 4
threads 2, 4
port 3000
# config.ru
require "kailash/nexus"
nexus = Kailash::Nexus.new(my_workflows)
use Kailash::Nexus::Middleware, nexus: nexus
run MyApp
# Deploy multiple Nexus instances behind nginx/traefik
docker-compose up --scale nexus=3
| Feature | API | CLI | MCP |
|---|---|---|---|
| Access | HTTP | Terminal | MCP Clients |
| Input | JSON | Args/JSON | Structured |
| Output | JSON | Text/JSON | Structured |
| Sessions | yes | yes | yes |
| Auth | yes | yes | yes |
| Streaming | yes | yes | yes |
For Nexus-specific questions, invoke:
nexus-specialist - Nexus implementation and deploymentrelease-specialist - Production deployment patterns skill - When to use Nexus vs other approaches