Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

mcpgraph

БесплатноБез исполняемых скриптовНе проверен

Build no-code MCP servers with tools that compose and orchestrate other MCP tools, with data transformation and conditional logic.

TeamSparkAIот TeamSparkAI★ 23 звезды на GitHub15 установок в других каталогах

Об этом скилле

Building mcpGraphs

This skill teaches you how to build mcpGraph configurations - declarative YAML files that define MCP tools as directed graphs of nodes.

What is an mcpGraph?

An mcpGraph is a declarative YAML configuration file that defines MCP (Model Context Protocol) tools as directed graphs. Each tool executes a sequence of nodes that can:

  • Call other MCP tools (on internal or external MCP servers)
  • 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 want declarative, observable configurations (no embedded code)
  • You need to compose complex workflows from simpler MCP tools

Why use mcpGraph:

  • Declarative: All logic expressed in YAML using standard expression languages
  • Observable: Every transformation and decision is traceable
  • No Embedded Code: Uses JSONata and JSON Logic instead of full programming languages
  • Standard-Based: Built on MCP, JSONata, and JSON Logic standards
  • Composable: Build complex tools from simpler MCP tools

How to Use mcpGraph

This skill assumes mcpGraph is installed in your local environment and available as the mcpgraph command.

To use mcpGraph as an MCP server (e.g., in Claude Desktop), add it to your MCP client configuration:

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "mcpgraph": {
      "command": "mcpgraph",
      "args": ["-g", "/path/to/your/config.yaml"]
    }
  }
}

The -g (or --graph) flag specifies the path to your YAML configuration file.

File Structure

An mcpGraph configuration file is a YAML file with the following structure:

version: "1.0"

# MCP Server Metadata
server:
  name: "serverName"          # Required: unique identifier
  version: "1.0.0"            # Required: server version
  title: "Display Name"       # Optional: display name (defaults to name)
  instructions: "..."         # Optional: server usage instructions

# MCP Servers used by the graph
mcpServers:
  serverName:
    command: "command"         # For stdio servers
    args: ["arg1", "arg2"]    # Command arguments
  # OR for HTTP servers:
  # httpServer:
  #   type: "streamableHttp"
  #   url: "https://api.example.com/mcp"
  #   headers:
  #     Authorization: "Bearer token"

# Tool Definitions for tools implemented by this graph and available as part of this MCP server
tools:
  - name: "toolName"
    description: "Tool description"
    inputSchema:
      type: "object"
      properties:
        paramName:
          type: "string"
          description: "Parameter description"
      required:
        - paramName
    outputSchema:
      type: "object"
      properties:
        result:
          type: "string"
          description: "Result description"
    nodes:
      # Node definitions here

MCP Server Metadata

The server section defines metadata for the MCP server that will expose these tools:

  • name (required): Unique identifier for the server
  • version (required): Server version (semantic versioning)
  • title (optional): Display name (defaults to name if not provided)
  • instructions (optional): Instructions for using this server

MCP Servers

The mcpServers section defines the MCP servers that the graph will call. Each server can be:

  • stdio server: Uses command and args to run a command-line program
  • streamableHttp server: Uses type: "streamableHttp", url, and optional headers

Tools

The tools array defines the MCP tools exposed by this server. Each tool has:

  • name: Tool identifier
  • description: Tool description
  • inputSchema: JSON Schema defining input parameters (standard MCP tool schema)
  • outputSchema: JSON Schema defining output structure
  • nodes: Array of node definitions that form the execution graph

Graph Structure and Flow

A graph is a directed sequence of nodes that execute in order. Execution flow:

  1. Starts at the entry node (receives tool arguments)
  2. Executes nodes sequentially based on next fields
  3. switch nodes can conditionally route to different nodes
  4. Continues until the exit node is reached
  5. Exit node returns the final result

Node Connections

Nodes are connected using the next field, which specifies the ID of the next node to execute:

- id: "node1"
  type: "transform"
  next: "node2"  # Executes node2 after node1

Switch nodes use conditions with next fields (each condition specifies its own next node), plus a top-level next field as the default:

- id: "switch_node"
  type: "switch"
  conditions:
    - rule: { ">": [{ var: "entry.value" }, 10] }
      next: "high_path"
  next: "default_path"  # Default case if no conditions match

Полный SKILL.md на GitHub

Установить mcpgraph в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл mcpgraph?

Build no-code MCP servers with tools that compose and orchestrate other MCP tools, with data transformation and conditional logic.

Как установить скилл mcpgraph?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mcpgraph запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить mcpgraph с