xrk-mcp
Skill140 starsChanged 8 months agoMITView on GitHub
当你需要理解或扩展 MCP 工具(注册/分组/远程连接)、执行门禁与 LLM tool calling 关系时使用。
In this repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- .cursor/rules/vibe-learn-craft.mdcCursor rule
- .cursor/rules/xrk-core-code.mdcCursor rule
- .cursor/rules/xrk-dev-requirements.mdcCursor rule
- .cursor/rules/xrk-infrastructure.mdcCursor rule
- .cursor/rules/xrk-project.mdcCursor rule
- .cursor/rules/xrk-third-party-plugins.mdcCursor rule
- accessibility-complianceSkill
- design-system-patternsSkill
- fronted-designSkill
- immersive-short-videoSkill
- interaction-designSkill
- mobile-android-designSkill
- mobile-ios-designSkill
- react-native-designSkill
- responsive-designSkill
- ui-ux-pro-maxSkill
- visual-design-foundationsSkill
- web-component-designSkill
- xrk-agent-runtimeSkill
- xrk-ai-workflowSkill
- xrk-app-devSkill
- xrk-authSkill
- xrk-coding-styleSkill
- xrk-configSkill
- xrk-crawlSkill
- xrk-dockerSkill
- xrk-docsSkill
- xrk-github-researchSkill
- xrk-http-apiSkill
- xrk-infrastructureSkill
- xrk-llmSkill
- xrk-node-runtimeSkill
- xrk-pluginsSkill
- xrk-project-overviewSkill
- xrk-rendererSkill
- xrk-runtime-utilSkill
- xrk-subserverSkill
- xrk-system-coreSkill
- xrk-taskerSkill
- xrk-v3-apiSkill
- xrk-www-compatSkill
The file
Files
读者:Coding Agent。办事助手「怎么调某个工具」见
.xrk/skills/core/agent-tools。
文档与代码
docs/mcp-guide.md、docs/mcp-config-guide.md、core/system-Core/http/mcp.js、commonconfig/system/system-ai-workflow.js(ai-workflow.mcp)
要点
- 工作流内
registerMCPTool→ harnessToolRegistry(MCPToolAdapter)→ 执行仍进MCPServer。 - 执行前门禁统一在
MCPServer.handleToolCall→inspectToolCallSecurity(policies + toolScan + 可选审批);勿只在适配器拦一层。 - 办事助手 /
/v1+MCP 的 tool 环在@xrkseek/harness;仅无 workflows 的/v1client-tools 走工厂透传。 - 远程 MCP:
ai-workflow.mcp.remote或 workflow 模块export function getMcpServers()(Loader → 插件 MCP 表);连接前mcp.connect(checkMcpConnectAllowed)。HTTP 用fetchWithPolicy(#utils/fetch-with-retry.js),无RuntimeUtil.fetch。 - 产品 Agent 挂远程:优先 JS
getMcpServers,勿改系统 yaml(见.xrk/skills/core/agent-core-dev§3.5)。 tools增强:apply_edit/verify/repo_map/update_todos(实现workspace/apply-edit-blocks.js·repo-map-lite.js)。
Node 26
- MCP HTTP/远程连接走全局
fetch+AbortSignal.timeout;代理见proxy-utils.js。 - 工具 handler 判错用
Error.isError/normalizeError(skillxrk-node-runtime)。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

