Skip to main content

MCP server wrapping the gfa Python SDK; exposes 14 tools to MCP-aware agents.

Project description

gfa-mcp

Model Context Protocol server wrapping the gfa Python SDK.

gfa-mcp is a sidecar that exposes 14 gfa primitives as MCP tools so off-the-shelf agent platforms (Claude Code, Cursor, Codex Agent, Cline, Continue.dev) can call them without bespoke per-platform integration.

The MCP server is a thin adapter — every tool maps 1:1 to an SDK method. Routing, caching, and threshold heuristics live in the SDK (gfa-sdk), not here. See docs/architecture/sdk-mcp.md in the gfa repo for the full design.

Install

pip install gfa-mcp

Quickstart

# Stdio (agent platform spawns gfa-mcp as a subprocess)
gfa-mcp --stdio --endpoint https://gfa.example.com --token "$GFA_JWT"

# HTTP (long-running, multiple agents on the same host)
gfa-mcp --port 8765 --endpoint https://gfa.example.com --key ~/.gfa/agent.pem

# Inspect the tool list without running the server
gfa-mcp --print-tools

Claude Code wiring

~/.claude-code/mcp.json:

{
  "mcpServers": {
    "gfa": {
      "command": "gfa-mcp",
      "args": [
        "--stdio",
        "--endpoint", "https://gfa.example.com",
        "--key", "/home/user/.gfa/agent.pem"
      ]
    }
  }
}

Cursor and Codex Agent use a similar shape per their respective docs.

Auth

--token JWT for pre-minted JWTs (simple, doesn't auto-rotate). --key PATH for ECDSA private keys (auto-rotates short-lived tokens via the SDK's FileKeyTokenProvider). Use --key for any session expected to live longer than the JWT's TTL.

Customer docs

The full agent integration guide — AGENTS.md template, system-prompt snippets, per-platform config — is M-055-CUSTOMER-DOCS in the gfa project backlog and ships separately from this package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gfa_mcp-0.1.0.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gfa_mcp-0.1.0-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file gfa_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: gfa_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for gfa_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9b556b2d9c339de6794e8b3a143add52f81de1a23cfaad0742d3e69a4fb8391a
MD5 cab051ce2f0ad85e68d790502661d08a
BLAKE2b-256 eceae3ba8bbd1dc8f531255dd72175997736782314e90ab27bb18eef81305670

See more details on using hashes here.

File details

Details for the file gfa_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gfa_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 39.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for gfa_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50c6e073ce8994ca2c3e146d400a9e7cfb44ec3cb86f41d1cded4a6be2cc1cfc
MD5 70f05b39a3a4b506e28e563b8c71a02f
BLAKE2b-256 4ebe858fcae65ac504f4f3abf71f05dd4a5f088729840957cc1e3e292bc83478

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page