بنقرة واحدة
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 ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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
| 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.