askit-build-mcp
Creates and improves MCP server definitions (a portable .mcp.json) for a plugin to the Advanced Skill Library Standard. Use when you need to add an MCP server to a plugin, author or extend .mcp.json, or wire the per-target mcpServers manifest pointer.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- askit-build-mcp
- metadata
- { "tier": "universal", "version": "0.1.0", "audience": "advanced" }
- description
- Creates and improves MCP server definitions (a portable .mcp.json) for a plugin to the Advanced Skill Library Standard. Use when you need to add an MCP server to a plugin, author or extend .mcp.json, or wire the per-target mcpServers manifest pointer.
02 资源文件 9
- 参考文档examples/anti-nonexistent-server-file.md7.1 KB
- 参考文档examples/golden-1-stdio-server.md7.1 KB
- 脚本examples/golden-1-stdio-server.mjs2.8 KB
- 参考文档examples/golden-2-http-server.md8.3 KB
- 脚本examples/golden-2-http-server.mjs3.6 KB
- 参考文档examples/golden-3-resources-server.md8.5 KB
- 脚本examples/golden-3-resources-server.mjs3.9 KB
- 参考文档README.md657 B
- 参考文档references/authoring-mcp.md10.6 KB
03 SKILL.md 正文
askit-build-mcp
Purpose
Author the plugin's MCP servers as one portable .mcp.json at the plugin root (the standard { "mcpServers": { ... } } format) and wire the per-target mcpServers manifest pointer. Two modes: create adds a server; improve fixes findings. MCP is Universal-tier: the server definition is portable and both Claude and Codex ingest a bundled .mcp.json referenced by the native manifest's mcpServers pointer (Standard sec 3.9). Authoring depth is in references/authoring-mcp.md. Follows the shared builder contract (../../docs/reference/builder-pattern.md).
When to use
When the user asks to add, scaffold, author, or improve an MCP server (tools, resources, or prompts via the Model Context Protocol) for a plugin.
create mode
- Brief interview: server name (kebab-case), transport (
stdioorhttp), thecommandplusargs(stdio) or theurl(http), and any secrets as an env-var NAME (never an inline value). Skip the interview if these are already in context. - Author or extend the root
.mcp.json: add the server undermcpServers. Copytemplates/mcp.jsonif the file does not exist yet. - Register the server in
library.jsoncomponents.mcpServersas{ name, version, tier, status }. - Wire the per-target pointer: run
node scripts/generators/gen-manifest.mjs <plugin-root> --write --target=all. Each native manifest gains"mcpServers": "./.mcp.json". - Assess with
node scripts/evaluate.mjs . --jsonand iterate to 0 errors (mcp-valid, the S3 components index, and the S6 per-target pointer).
improve mode
- Run
node scripts/evaluate.mjs . --jsonand read the report. - For each finding: a malformed server (mcp-valid) -> add the missing
commandorurl; a committed secret (mcp-valid) -> replace the inline value with an env-var reference orbearer_token_env_var; a missing pointer (S6) -> regenerate the manifests; an undeclared server (S3) -> add it tocomponents.mcpServers. For any other finding, read its message and apply the fix it states. - Re-run evaluate to confirm.
Scope
The root .mcp.json is the single authored source; the manifest pointers are generated, so never hand-edit a generated manifest. Secrets MUST be referenced from the environment, never committed (Standard sec 9). MCP is the one plugin-distributable component both agents ingest, and emission is just the manifest-pointer wiring (no per-type render engine, per the builder pattern).
04 同仓库更多 Skills
fx-demo
A fixture skill that exists so the re-derived manifest has a component list to compare. Use only from tests/unit/self-consistency.test.mjs.
fx-demo
A fixture skill that exists so the re-derived manifest has a component list to compare. Use only from tests/unit/self-consistency.test.mjs.
fx-demo
A fixture skill that exists so the re-derived manifest has a component list to compare. Use only from tests/unit/self-consistency.test.mjs.
sf-caller
Calls the worker subagent to do a thing. Use when delegating work to sf-worker.
sf-do-thing
Converts CSV input into a formatted summary. Use when the user asks to summarize or tabulate spreadsheet data.
root-skill-plugin
Summarizes a changelog section into one release-note sentence. Use when the user asks to condense a list of changelog bullets into a single announcement line.