Command Palette

Search for a command to run...

Назад к скиллам
скилл № 64290

gnn-mcp-protocol

GNN Model Context Protocol processing and tool registration. Use when registering GNN operations as MCP tools, building MCP server configurations, or…

БесплатноЗапускает вложенные скрипты
ActiveInferenceInstituteот ActiveInferenceInstitute★ 36 звёзд на GitHub

Установить gnn-mcp-protocol в Claude Code и Claude Desktop

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

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

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

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

GNN MCP Protocol (Step 21)

Purpose

Processes Model Context Protocol (MCP) configurations and registers GNN pipeline operations as MCP tools. Enables LLM agents to invoke GNN capabilities through standardized tool interfaces.

Key Commands

# Run MCP processing
python src/gnn/21_mcp.py --target-dir input/gnn_files --output-dir output --verbose

# As part of pipeline
python src/gnn/main.py --only-steps 21 --verbose

API

from gnn.mcp import (
    MCP,
    MCPRegistry,
    MCPServer,
    JSONRPCServer,
    MCPTool,
    MCPResource,
    create_mcp_server,
    start_mcp_server,
    register_tools,
    register_module_tools,
    get_available_tools,
    list_available_tools,
    list_available_resources,
    process_mcp,
    get_mcp_instance,
    handle_mcp_request,
    initialize,
)

# Process MCP step (used by pipeline)
process_mcp(
    target_dir,
    output_dir,
    verbose=True,
    performance_mode="high",
    strict_validation=True,
    cache_ttl=120.0,
)

# Create and start a JSON-RPC server bound to the global MCP registry
server = create_mcp_server()  # returns JSONRPCServer
start_mcp_server()

# Discover and register all pipeline modules' tools on the global MCP
register_tools()  # populates mcp_instance
register_module_tools("gnn")  # named module only

# Query available tools and resources
tools = get_available_tools()  # same as list_available_tools()
tools_md = list_available_tools()
resources = list_available_resources()

Key Exports

  • MCP — core registry (tools, resources, modules, performance metrics).
  • MCPRegistry — alias of MCP, the core registry.
  • MCPServer — JSON-RPC 2.0 request handler bound to an MCP instance.
  • JSONRPCServer — JSON-RPC 2.0 request handler bound to an MCP instance.
  • MCPTool / MCPResource — dataclasses backing the registry.
  • create_mcp_server / start_mcp_server — construct and start a JSON-RPC server.
  • register_tools — discover and register all pipeline modules' tools on the global MCP.
  • register_module_tools — register a single named module.
  • initialize — check SDK + discover modules; exposes performance_mode, enable_caching, enable_rate_limiting, strict_validation, cache_ttl, tool_timeout, modules_allowlist, per_module_timeout, overall_timeout, force_refresh.
  • process_mcp — pipeline entry point (forwards overrides to initialize).
  • get_available_tools, list_available_tools, list_available_resources.
  • Error types: MCPToolNotFoundError, MCPValidationError, MCPModuleLoadError, MCPInvalidParamsError, MCPToolExecutionError, MCPSDKNotFoundError, MCPResourceNotFoundError, MCPPerformanceError.

Configuration

The MCP singleton honours these knobs, all propagated through initialize() and process_mcp(**kwargs):

Knob Type Default Purpose
performance_mode "low"/"high" "low" Bulk toggle for caching, rate limiting, strict validation
enable_caching bool from mode Enable result cache
enable_rate_limiting bool from mode Enable per-tool rate limiting
strict_validation bool from mode Enforce JSON-schema validation of params
cache_ttl float (sec) 300.0 Default TTL for result-cache entries (tools must register cacheable=True; a tool's own cache_ttl overrides this default)
tool_timeout float | None None Default timeout (seconds) for tools that did not register one; None leaves those tools un-timed
modules_allowlist list[str] None Only load these modules under src/
per_module_timeout float 30.0 Max seconds per module during discovery
overall_timeout float 120.0 Wall-clock budget for parallel discovery
force_refresh bool False Re-discover modules even if already loaded

Output

  • MCP configuration in output/21_mcp_output/
  • Tool registration manifests
  • Server configuration files

MCP Tools

This module registers tools with the GNN MCP server (see mcp.py):

  • None

References


Documentation

  • README: Module Overview
  • AGENTS: Agentic Workflows
  • SPEC: Architectural Specification
  • SKILL: Capability API
Полный SKILL.md на GitHub

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

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

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

Вложенные файлы

  • AGENTS.md
  • MCP_DOCUMENTATION.md
  • README.md
  • SPEC.md
  • __init__.py
  • _late_binding.py
  • audit_report.json
  • cli.py
  • discovery.py
  • exceptions.py
  • execution.py
  • gnn_root.py
  • introspection.py
  • jsonrpc.py
  • mcp.py
  • mcp_implementation_spec.md
  • meta_mcp.py
  • metrics.py
  • model_context_protocol.md
  • models.py
  • npx_inspector.py
  • processor.py
  • processors.py
  • registry.py
  • sdk/AGENTS.md
  • sdk/README.md
  • sdk/SPEC.md
  • sdk/__init__.py
  • sdk/capabilities.json
  • sdk/client.py
  • sdk/mcp.py
  • sdk/server.py
  • sdk/version.txt
  • server.py
  • server_core.py
  • server_http.py
  • server_stdio.py
  • sympy_mcp.py
  • sympy_mcp_client.py
  • validate_tools.py

FAQ

Что делает скилл gnn-mcp-protocol?

GNN Model Context Protocol processing and tool registration. Use when registering GNN operations as MCP tools, building MCP server configurations, or integrating GNN capabilities with LLM tool-use workflows.

Как установить скилл gnn-mcp-protocol?

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

Скилл gnn-mcp-protocol запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить gnn-mcp-protocol с