AGENT SKILL

mcp-builder

Org role guidance for an MCP builder: design and build Model Context Protocol servers whose tools, resources and prompts agents can reliably pick and use. Short practices on naming, schemas, errors and agent smoke tests; for a full build guide see mcp-server-builder.

License 许可
Apache-2.0
所属仓库
monoes/monomind
最近更新
2026-11-10
Stars
★ 23
Forks
2

01 前言 Front Matter

name
mcp-builder
tags
[ "engineering", "mcp", "agents" ]
tools
[ "monograph_query", "monograph_context", "monograph_impact" ]
source
https://github.com/monoes/monomind
license
Apache-2.0
description
Org role guidance for an MCP builder: design and build Model Context Protocol servers whose tools, resources and prompts agents can reliably pick and use. Short practices on naming, schemas, errors and agent smoke tests; for a full build guide see mcp-server-builder.

03 SKILL.md 正文

MCP Builder — Best Practices

Focus

Designs and builds Model Context Protocol servers — custom tools, resources, and prompts that extend what an AI agent can actually do.

Best practices

  • Give tools descriptive, unambiguous names (search_users, not query1) — agents select tools by name and description alone.
  • Type every parameter with a schema (e.g., Zod/JSON Schema) and provide sane defaults for optional fields.
  • Write tool descriptions for the agent, not a human developer — state exactly when to use it and what it returns.
  • Return structured, parseable output (JSON for data, concise markdown for human-readable summaries) — never raw dumps.
  • Design tools to be stateless and independent; don't assume a particular call order between tools.
  • Fail gracefully: return actionable error content in the tool response rather than crashing the server or throwing unhandled exceptions.
  • Validate and sanitize all inputs — MCP tools are still a trust boundary, especially for file paths and shell commands.
  • Test tools with an actual agent driving them, not just unit tests — a tool that "looks right" can still confuse a model.

Common pitfalls

  • Vague tool descriptions that cause the agent to pick the wrong tool or misuse parameters.
  • Overloading a single tool with too many responsibilities instead of a few focused ones.
  • Returning huge unstructured payloads that blow up the agent's context.
  • Assuming the agent will call tools in a specific sequence and breaking silently when it doesn't.
  • Skipping rate limiting/auth on tools that wrap sensitive or costly external APIs.

Tools & techniques

  • MCP TypeScript/Python SDKs with schema validation (Zod, Pydantic) baked into every tool definition.
  • Stdio transport for local/dev servers; HTTP+SSE for remote/shared servers.
  • Manual "agent smoke test": have an agent attempt the target task end-to-end using only the new tools.
  • Version the server (name, version in server metadata) so breaking tool changes are traceable.

04 同仓库更多 Skills

monoes
monoes/monomind

zk-steward

Org role guidance for a ZK steward: engineer zero-knowledge proof systems with circuit design, SNARK vs STARK choice and security review. This is zero-knowledge cryptography, not Zettelkasten note-taking.

★ 23
monoes
monoes/monomind

writing-plans

Use when you have a spec or requirements for a multi-step coding task and must write an implementation plan before touching code. Produces bite-sized TDD tasks with exact file paths, code and commands for an engineer with zero context.

内容创作者写作与文案
★ 23
monoes
monoes/monomind

write-spec

Write a feature spec or PRD from a problem statement or feature idea. Use when turning a vague idea or user request into a structured document, scoping a feature with goals and non-goals, defining success metrics and acceptance criteria, or breaking a big ask into a phased spec.

产品经理
★ 23
monoes
monoes/monomind

write-query

Write optimized SQL for your dialect with best practices. Use when translating a natural-language data need into SQL, building a multi-CTE query with joins and aggregations, optimizing a query against a large partitioned table, or getting dialect-specific syntax for Snowflake, BigQuery, Postgres, etc.

数据分析师
★ 23
monoes
monoes/monomind

workflow-automation

Org role guidance for workflow automation: build and maintain CI/CD definitions in GitHub Actions or equivalent: triggers, jobs, matrices, caching. Covers path filters, dependency caching, parallel jobs, timeouts and fail-fast ordering.

运维与部署Skill与智能体开发
★ 23
monoes
monoes/monomind

workflow-architect

Org role guidance for a workflow architect: map full workflow trees for systems, user journeys and agents, covering every branch and failure. Covers discovering workflows from code, handoff contracts, timeouts, recovery paths and observable state.

Skill与智能体开发
★ 23