- 稳定性
- 稳定
- 作用域
- 全局
- 边界
- packages/ai/mcp
mcp
packages/ai/mcpAI 运行时 · 工具注册表 · MCP 边界
就绪
能力图谱
ai/mcpmcp
工具策略
流式 UI
输出
执行账本
- 1输入packages/ai/mcp/request
- 2规划message reducer -> model turn
- 3工具策略tool schema · auth scope · rate limit
- 4流式 UIevents -> UI state machine
- 5输出@nebutra/agents response envelope
p50 延迟
150 毫秒
事件/秒
367/秒
提供方
5
评测分
81
使用方式mcp.ts
typescriptmcp.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 });