mcpgraphtoolkit
БесплатноБез исполняемых скриптовНе проверенBuild, test, and manage mcpGraph tools using the mcpGraphToolkit MCP server. Discover MCP servers and tools, construct graph nodes with JSONata and JSON…
от TeamSparkAI★ 23 звезды на GitHubОб этом скилле
Building mcpGraph Tools with mcpGraphToolkit
This skill teaches you how to use the mcpGraphToolkit MCP server to build, debug, test, run, and manage graph tools in an mcpGraph.
What is an mcpGraph
An mcpGraph is a declarative configuration that defines an MCP (Model Context Protocol) server and its tools, where those tools are implemented as directed graphs. We call those exported tools "graph tools". Each graph tool executes a sequence of nodes that can:
- Call other MCP tools (that are available to the mcpGraph)
- Transform data using JSONata expressions
- Make routing decisions using JSON Logic
When to use mcpGraph:
- You need to orchestrate multiple MCP tool calls in sequence
- You want to transform data between tool calls
- You need conditional routing based on data
- You need to compose complex workflows from simpler MCP tools
Using the mcpGraphToolkit
What you should do:
- ✅ DO use
listMcpServersandlistMcpServerToolsto discover available MCP servers and tools - ✅ DO use
getMcpServerToolto get MCP server tool details and schemas - ✅ DO use
addGraphToolto add graph tools to the mcpGraph (it handles file operations automatically) - ✅ DO use
updateGraphToolanddeleteGraphToolto manage graph tools - ✅ DO use
runGraphToolto run a graph tool or to test a graph tool before adding it - ✅ DO use
listGraphToolsandgetGraphToolto discover and examine existing graph tools, especially when considering creating a new graph tool
⚠️ CRITICAL: Use Only the Provided Tools to interact with an mcpGraph
DO NOT create, edit, or read configuration files directly. mcpGraphToolkit uses configuration files internally (such as graph configuration files and MCP server configuration files), but you should never attempt to create, edit, or read directly from these files. The toolkit tools provide all the functionality you need to understand and manipulate the state of the mcpGraph.
Terminology: MCP Servers/Tools vs Graph Tools
Important: Understanding the distinction between MCP servers/tools and graph tools is critical.
MCP Servers and Tools (Available to the Graph)
- MCP Servers: External MCP servers that are available to the graph (discovered via
listMcpServers) - MCP Tools: Tools provided by those MCP servers (discovered via
listMcpServerToolsandgetMcpServerTool) - These are the building blocks that graph tools can use
- Graph tools can only use MCP servers and tools that are available to the graph (as determined by the toolkit's discovery APIs)
- Use
listMcpServersandlistMcpServerToolsto see what's available before building graph tools
Graph Tools (What You Create and Manage)
- Graph Tools: Tools you create, manage, and run using mcpGraphToolkit
- These are composed from MCP tools, transform nodes, and switch nodes
- Once created, graph tools can be called like MCP tools using
runGraphTool - Graph tools are stored in the graph configuration and can be discovered via
listGraphTools
Key Points:
- Graph tools orchestrate MCP tools - they call MCP tools in sequence, transform data, and make routing decisions
- Graph tools can only use MCP servers/tools that are available to the graph (check with
listMcpServersfirst) - Always check if an existing graph tool already serves your purpose before creating a new one (use
listGraphToolsandgetGraphTool) - Graph tools you create become available as callable tools, via
runGraphTool
Graph Tool Structure
A graph tool is a ToolDefinition with this structure:
{
"name": "tool_name",
"description": "Tool description",
"inputSchema": {
"type": "object",
"properties": { ... },
"required": [ ... ]
},
"outputSchema": {
"type": "object",
"properties": { ... }
},
"nodes": [
{ "id": "entry", "type": "entry", "next": "..." }, // REQUIRED
// ... worker nodes (mcp, transform, switch) ...
{ "id": "exit", "type": "exit" } // REQUIRED
]
}
Required Components:
name: Tool identifier (string)description: Tool description (string)inputSchema: JSON Schema for tool inputs (REQUIRED - must be object type)outputSchema: JSON Schema for tool outputs (REQUIRED - must be object type)nodes: Array of nodes (MUST include exactly one entry node and exactly one exit node)
Node Types and Required Fields:
Node Types
Entry Node
Entry point that receives tool arguments. Required in every graph tool.
id: Node identifier (typically"entry")type:"entry"next: ID of the first worker node
Output: Tool input arguments (passed through as-is)
{
"id": "entry",
"type": "entry",
"next": "list_directory_node"
}
MCP Node
Calls an MCP tool on a server available to the graph. Type is exactly "mcp" (NOT "mcp-tool", "mcp-tool-call", etc).
id: Node identifiertype:"mcp"
Установить mcpgraphtoolkit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mcpgraphtoolkit?
Build, test, and manage mcpGraph tools using the mcpGraphToolkit MCP server. Discover MCP servers and tools, construct graph nodes with JSONata and JSON Logic, and interact with mcpGraph configurations. IMPORTANT: Always read this file before creating graph tools using mcpGraphToolkit.
Как установить скилл mcpgraphtoolkit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mcpgraphtoolkit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic