Xrk MCP
Agent Buildingxrk-mcpXrk MCP is an Agent Skill for agent building published in the sunflowermm/XRK-AGT repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
当你需要理解或扩展 MCP 工具(Model Context Protocol)、工具注册/分组/远程 MCP 连接与 LLM tool calling 的关系时使用。
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/sunflowermm/XRK-AGT/blob/HEAD/.claude/skills/xrk-mcp/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/xrk-mcp, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
文档与代码
docs/mcp-guide.md、docs/mcp-config-guide.md、core/system-Core/http/mcp.js、commonconfig/system.js(aistream.mcp)
要点
- 工作流内
registerMCPTool→MCPToolAdapter→ OpenAI tools。 - v3 / LLMFactory 的 tool calling 最终执行 MCP 工具。
- 远程 MCP:
aistream.mcp.remote(stdio/HTTP/SSE 等)。
Node 26
- MCP HTTP/远程连接走全局
fetch+AbortSignal.timeout;代理见proxy-utils.js。 - 工具 handler 判错用
Error.isError/normalizeError(skillxrk-node-runtime)。