Skip to content
全部能力
AI 运行时packages/ai/mcp

mcp 能力包

Model Context Protocol server 原语 — 注册 tool、暴露 resource、流式订阅;可作为 Sailor 内嵌或独立部署。

打开文档
稳定性
稳定
作用域
全局
边界
packages/ai/mcp

mcp

packages/ai/mcp

AI 运行时 · 工具注册表 · MCP 边界

就绪

能力图谱

ai/mcp
mcp
工具策略
流式 UI
输出

执行账本

  1. 1
    输入
    packages/ai/mcp/request
  2. 2
    规划
    message reducer -> model turn
  3. 3
    工具策略
    tool schema · auth scope · rate limit
  4. 4
    流式 UI
    events -> UI state machine
  5. 5
    输出
    @nebutra/agents response envelope
p50 延迟
150 毫秒
事件/秒
367/秒
提供方
5
评测分
81
使用方式mcp.ts
typescript
mcp.ts
1import { McpRegistry, registerTool } from "@nebutra/mcp";
2
3const registry = new McpRegistry();
4
5registerTool(registry, {
6  name: "search_users",
7  description: "Search org users by email",
8  inputSchema: { type: "object", properties: { q: { type: "string" } } },
9  execute: async ({ q }) => searchUsers(q),
10});
11
12const agent = await registry.bind({ runtime });