prism-mcp-tool
БесплатноБез исполняемых скриптовНе проверенAdd or change a KiCAD Prism MCP tool (read, write, multi-step or human handoff), its result shaping, tests and docs. Use for changes under…
от krishna-swaroop★ 335 звёзд на GitHubОб этом скилле
Add or change a Prism MCP tool
Read backend/app/services/mcp/AGENTS.md first. A tool is one small task an
agent asks for, answered by a typed /api/v1 route that already exists or that
you add first (.agents/skills/prism-api-endpoint/SKILL.md). Workflows built
from many tools (component authoring, review loops) are skills and scripts
outside Prism, not tools.
Decide first
- Is it a tool? It must map to a route a person or script could call with the same token. If it needs Prism to run a model, fetch the internet, or make design files, it is not a Prism tool.
- Is it a person's step? Approving or publishing a release, catalog QA
(moving a component to
doneorreleased), admin changes and resolving a comment are human-only (human_onlyrules inbackend/app/core/policy.py). Offer a handoff tool only where an agent plausibly gets stuck (D15). - Does it need an ADR decision? Yes when it adds a scope or policy action,
changes what is human-only, adds a new way data or files reach Prism, or
changes what results may contain. Add it to
docs/architecture/adr-scripting-and-mcp.mdin the section the tool belongs to; a plain read over an existing route needs none.
Declare it
Put it in the module for its area (see the AGENTS.md table), with
register(Tool(...)):
name: verb_noun, as an agent would say the task.title, and adescriptionwritten for the model: what it returns, what it never does, and which tool comes next.input_schema:additionalProperties: false, every property described,requiredminimal. A write getsidempotencyKeyautomatically.routeandargs:args(arguments)returns(path_params, query)or, for a body,(path_params, query, body).Nonevalues are dropped.- Read:
annotations=dict(READ_ONLY_ANNOTATIONS). A read that runs work for a writer (likecheck_catalog_asset) also setsaction=for the scope check. - Write:
annotations=write_annotations(idempotent=...)andaction=the route's policy action (comment,design,catalog_write, ...). - Ops: an
ops_read/ops_actaction; it is listed only while ops is on.
Multi-step tools
Set execute=async (app, arguments, authorization, request) -> result:
- Call routes only through
request(app, method, path, query, authorization, body, if_match=...); check200 <= status < 300and returninvoke.route_error(status, raw)otherwise. - Build results with
invoke.success_result, or your own content blocks (images: seebackend/app/services/mcp/tools_render.pyandbackend/app/services/mcp/tools_catalog_reads.py) withinvoke.UNTRUSTED_META. - Your own refusals:
invoke.error_result(code, detail). A person's step:invoke.handoff(url, message). - Poll with a bounded deadline and hand back a job handle when it runs out
(
validate_catalog_component,render_view). - Guarded writes send
if_match=f'"<kind>:<id>:<version>"', taking the version from the agent's argument or the resource read just before. - When the result is not the route's
200body, setoutput_schema.
Shape results
Filters and citation links go in a present hook beside the tool:
@presenter("get_widget")
def _present_widget(arguments: dict[str, Any], result: dict[str, Any]) -> dict[str, Any]:
...
return result
It runs after every call, errors included. Build links with
app.core.links, never by hand.
Test and document
- Behaviour: drive
invoke.call_toolagainst a stub ASGI app that records requests (backend/tests/test_mcp_catalog.py,backend/tests/test_mcp_writes.py). Assert the route, body, headers and the shaped result. - Policy: a role or scope that may not use the tool is refused
(
backend/tests/test_mcp_server.pydrives the real app with a token). - Add the tool to
TOOL_ORDERinbackend/tests/test_mcp_server.pyat its place in its group. Every write tool is then checked for write annotations and anidempotencyKey(backend/tests/test_mcp_writes.py); there is no other list to update. - Name it in the matching page under
website/src/content/docs/automate/and in the ADR's tool list. - If a route changed: regenerate
sdk/python/openapi.jsonandsdk/python/prism/_generated.py(sdk/python/README.md) andbackend/openapi/operations.v1.json(python -m app.core.api_contract --write). - Run the MCP tests, then the backend suite (
.agents/skills/prism-quality-gate/SKILL.md).
Установить prism-mcp-tool в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл prism-mcp-tool?
Add or change a KiCAD Prism MCP tool (read, write, multi-step or human handoff), its result shaping, tests and docs. Use for changes under backend/app/services/mcp/.
Как установить скилл prism-mcp-tool?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prism-mcp-tool запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic