mix beamscope.mcp (Beamscope v0.1.1)

Copy Markdown View Source

Starts the Beamscope MCP server over HTTP.

mix beamscope.mcp
mix beamscope.mcp --port 9877

Exposes get_callers, get_callees, find_call_path, search_code as MCP tools at http://localhost:<port>/mcp, routed through Beamscope.Repo (backed by Beamscope.Callgraph.Store/Beamscope.Search.Store). Each tool call takes an explicit repo_path; the graph/search index for that path is built once (on the first call that needs it) and cached across calls within this server process's lifetime.

Built directly on Plug + Bandit + Jason (Beamscope.MCP.Protocol/ Beamscope.MCP.Router), not an MCP protocol library — connect an MCP client to the URL above as a remote HTTP server rather than spawning this as a stdio subprocess.