一键导入
mcp-patterns
Design rules and reference patterns for building MCP servers in Woods
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Design rules and reference patterns for building MCP servers in Woods
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Systematic troubleshooting for Woods — diagnose extraction, MCP, embedding, and storage issues
Generate correct .mcp.json configuration for Woods in any environment
Guide through Woods initial setup — install, configure, extract, verify, and connect MCP servers
Setup, operation, and debugging of the Unblocked integration — collection creation, incremental sync, the sync manifest, escape hatches, live API quirks, and smoke testing. Use when working on lib/woods/unblocked/, the woods:unblocked_sync rake task, sync CI wiring, or when a sync misbehaves (everything re-pushes, deletes refused, budget exhausted, 400s from the API).
Woods backlog workflow — picking items, implementing with TDD, marking resolved, and adding new work. Use when the user asks "what's next?", references backlog items, opens a session without a clear task, or when closing out work to record what shipped.
Generates boilerplate for a new Woods extractor and its spec
基于 SOC 职业分类
| name | mcp-patterns |
| description | Design rules and reference patterns for building MCP servers in Woods |
| disable-model-invocation | true |
| user-invocable | false |
Design rules and reference implementation for building MCP servers in Woods.
Read lib/woods/mcp/server.rb before building any new MCP server or tool. It demonstrates the established patterns:
Server.build(...) class method returning a configured ::MCP::Serverdefine_<name>_tool private methods with closures over a reader/context objectMCP::Tool::Response via a shared text_response helpereval or arbitrary code execution without explicit safety layers (see docs/design/CONSOLE_SERVER.md Phase 4).docs/design/CONSOLE_SERVER.md (transaction rollback, statement timeout, human confirmation).limit parameter and truncate results. Use truncate_section pattern from the index server.text_response with a clear message, not exceptions. The MCP protocol has no error channel — the agent sees the tool result.Rails.application or ActiveRecord.define_<name>_tool private method following the existing pattern in server.rb.build in the registration block.spec/mcp/ — test the tool response format, parameter validation, and edge cases.docs/design/AGENTIC_STRATEGY.md if the tool serves a retrieval pattern defined there.docs/design/CONSOLE_SERVER.md).Server.build pattern — single entry point, tools as private method definitions.exe/ (e.g., exe/woods-console-mcp).spec/mcp/.docs/MCP_SERVERS.md and docs/design/AGENTIC_STRATEGY.md with the new server's tools and when agents should use them.