auriti-labs/agentwork/mcp-integration
Claude Code and agent skill by auriti-labs/agentwork
- community
Checking that the SKILL.md file is still in the repository.
Build, configure, and debug MCP servers for Kiro. Load when creating a new MCP server, adding tools to an existing one, fixing 'MCP failed' errors, or configuring mcp.json.
Install
npx vskill@latest install auriti-labs/agentwork/mcp-integrationSKILL.md
MCP Integration
Scope
Building MCP servers, configuring them in Kiro, debugging connection failures, and designing tool interfaces.
Triggers
- "build an MCP server" / "create MCP tools"
- "MCP failed" / "connection closed" / "server not starting"
- "add a tool to [server]" / "configure mcp.json"
- "integrate [system] via MCP"
When NOT to Use
- You're only calling existing MCP tools (just use them)
- You're building a REST/GraphQL API (not MCP)
- General Python/Node work without MCP involvement
Goals
- Produce a working MCP server that Kiro can connect to and use
- Ensure every tool has a clear name, description, typed parameters, and structured return
- Ensure the server starts reliably and survives Kiro session restarts
Constraints
- Always use absolute paths to interpreters in mcp.json (no relative, no bare
python) - Always test the server standalone before registering in Kiro
- Tool descriptions must say WHEN to use the tool, not just what it does
- Never crash the server on tool errors — return error messages in the result
- Tools must be idempotent (safe to retry)
Input Minimi
- What the server does (purpose, tools to expose)
- Language: Python (
mcpSDK) or Node (@modelcontextprotocol/sdk) - Transport: stdio (local, default) or HTTP (remote)
Checklist
Build
- Create server with SDK (see
examples/python-mcp-server.mdorexamples/node-mcp-server.md) - Register tools with typed parameters and trigger-oriented descriptions
- Test standalone with JSON-RPC init message
- Register in
~/.kiro/settings/mcp.jsonwith absolute paths - Verify in Kiro:
/mcpshould show server as "running"
Debug
- Check
/mcpin Kiro for status - Run the exact command from mcp.json manually in terminal
- If it crashes: check imports, dependencies, Python version (≥3.11 for most SDKs)
- See
references/mcp-debugging.mdfor the full error→cause→fix table
Add to Agent JSON
Gotchas
- Bare `python` in mcp.json breaks across environments. Always use the full venv path:
/home/user/project/.venv/bin/python. Kiro doesn't activate venvs.
- Server starts but tools don't appear. The tool decorator ran but
server.run()wasn't called, or the server exited before Kiro could list tools. Test with the full init→initialized→tools/list sequence.
- `connection closed: initialize response` means the server crashed during init, not that the protocol failed. Run the server manually and look at stderr. 99% of the time it's a missing import or wrong Python version.
- Node servers need `node_modules` in the right place. If mcp.json points to
dist/server.js, npm dependencies must be resolvable from that directory. Runnpm ls @modelcontextprotocol/sdkfrom the server's directory to verify.
- FTS5 corruption in SQLite-backed MCP servers is silent. The server starts, health checks pass, but search tools return errors. Test actual tool calls, not just
/mcpstatus.
- Kiro restarts all MCP servers on every session start. If your server has slow imports (ML models, large DBs), startup will timeout. Lazy-import heavy dependencies or increase
timeoutbeyond 120000.
- `console.log` in Node MCP servers corrupts the stdio protocol. Redirect all logging to stderr:
console.log = (...args) => console.error("[my-server]", ...args).
Handoff
- After server built → kiro-qa for code review
- After configured → test with
/mcpin Kiro - If server is a CLI tool → load
python-cli-toolingskill - If server manages agent memory → load
memory-systemsskill
Memory Guidance
TotalRecall: mcp.json configurations that worked, debugging steps for specific failures, tool schema designs that proved effective Kore candidates: Server templates that work across projects, debugging patterns (error→cause→fix), tool design patterns Never save: SDK boilerplate, standard mcp.json syntax, obvious pip/npm commands
When to Read Support Files
- Building a new server? Read
examples/python-mcp-server.mdorexamples/node-mcp-server.mdfor a complete working template - Debugging a failure? Read
references/mcp-debugging.mdfor the full error→cause→fix table - Designing tool interfaces? Read
references/mcp-tool-design.mdfor naming, schema, and description rules - Choosing architecture? Read
references/mcp-server-patterns.mdfor transport, worker, and deployment patterns
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mcp-integration/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/auriti-labs/agentwork/mcp-integration)