CoolFace
Apppublic

ghh1125/graph-theory

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes
App README

graph-theory MCP Service

This deployment packages graph-theory behind a FastMCP service.

Available MCP Tools

  • health_check
  • list_modules
  • list_symbols
  • call_function
  • create_instance
  • shortest_path
  • breadth_first_search
  • maximum_flow

Local stdio usage (Claude Desktop / CLI)

bash
cd graph-theory/mcp_output/mcp_plugin
python main.py

or

bash
python graph-theory/mcp_output/start_mcp.py

(default transport is stdio)

HTTP usage (Docker / HF Spaces)

The Docker entry point starts FastMCP directly in HTTP mode and serves MCP at /mcp.

bash
MCP_TRANSPORT=http MCP_PORT=7860 python graph-theory/mcp_output/start_mcp.py

Client MCP endpoint:

  • https://<your-host>/mcp

Files

  • graph-theory/mcp_output/mcp_plugin/mcp_service.py: MCP tool definitions
  • graph-theory/mcp_output/mcp_plugin/adapter.py: dynamic module adapter
  • graph-theory/mcp_output/start_mcp.py: transport-aware launcher
  • app.py: supplementary FastAPI info app (not Docker entrypoint)