portgraph
v0.1.0
Published
Local port topology TUI and MCP server for dev stacks, Docker, and local LLM servers
Maintainers
Readme
portgraph
One line: npx portgraph (or bunx portgraph): live local port topology (Docker + Ollama/LM Studio/vLLM) as a terminal TUI and stdio MCP server.
Install
bunx portgraph
npx portgraph
# or install in your project / globally
bun add -d portgraph
npm i -D portgraphJSR:
bunx jsr add @kanchingyg/portgraph
npx jsr add @kanchingyg/portgraphcargo install --git https://github.com/kanchingyg/portgraphThe scan engine and MCP stdio server are written in Rust (src/lib.rs, src/main.rs, src/mcp.rs). TypeScript under src/*.ts is included for npx / bunx / JSR usage and MCP bridge helpers when no native binary is present.
CLI
npx portgraph
bunx portgraph
npx portgraph who :3000
npx portgraph kill :3000 --allow-write
npx portgraph --mcp
npx portgraph --mcp --allow-write
npx portgraph --mcp --dry-run # blocks mutating tools onlyMCP tools
| Tool | Purpose |
| --- | --- |
| get_local_topology | Active listening ports, PIDs, Docker mappings, and local LLM signature tags |
| who_owns_port | Owning process and command line for a specific listening port |
| kill_port_owner | Terminate port owner (confirm: true; requires --allow-write, blocked under --dry-run) |
