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.
Metadata
Release files for gfa-mcp 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gfa_mcp-0.3.0.tar.gz | 37.9 kB | Without provenance | Details for gfa_mcp-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gfa_mcp-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for gfa_mcp-0.3.0-py3-none-any.whl |
Total release size: 79.8 kB
Release files / gfa_mcp-0.3.0.tar.gz
| Download URL | gfa_mcp-0.3.0.tar.gz |
|---|---|
| Size | 37.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8540276b098639454aef18166189a35e72cb9da05f31918bc372c758b53aae71
|
|
BLAKE2b-256 checksum How to use checksums |
e5474b517d0abb3cccc2fa8446319d62dae0155ec4de8e02fe087fb8cd78d1f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / gfa_mcp-0.3.0-py3-none-any.whl
| Download URL | gfa_mcp-0.3.0-py3-none-any.whl |
|---|---|
| Size | 41.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
172837b390db2fe24f5000ba292aacb73cb1ec7b4637977bae3d225e4b9b58c7
|
|
BLAKE2b-256 checksum How to use checksums |
97cb6b0db616c34cf69e10cc381c75ac6056c848188cc63d2e22aa73faa0dfa5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for gfa-mcp 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.