mcp

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package mcp implements a Model Context Protocol server that exposes Supermodel graph analysis as tools to AI coding agents (Claude Code, Hermes, Codex, and any other MCP-compatible host).

Start with: supermodel mcp

The server communicates via stdio using JSON-RPC 2.0 and implements the MCP specification at https://spec.modelcontextprotocol.io/

Exposed tools:

analyze        — upload the current repo and run the full analysis pipeline
dead_code      — list functions with no callers
blast_radius   — list files affected by a change to a given file
get_graph      — return a filtered slice of the dependency/call graph

This is a vertical slice. It must not import any other slice package. It may import from the shared kernel: internal/api, internal/cache, internal/config, internal/ui, internal/build.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, cfg *config.Config, repoDir string) error

Serve starts the MCP stdio server. It reads JSON-RPC 2.0 messages from stdin and writes responses to stdout until the context is cancelled or stdin closes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL