Spanly Docs

CLI

Monitor any MCP server with the Spanly CLI, no code changes required.

The Spanly CLI instruments MCP servers written in any language. Run your server under spanly run, or sit spanly proxy in front of a remote server, and every JSON-RPC packet streams to your dashboard. Nothing in your server code changes.

npx -y @spanly/spanly run -- <your-mcp-command>
# 1. Set your API key (region auto-detected from the prefix)export SPANLY_API_KEY=spanly_us_xxxxxxxxxxxx# 2. Wrap your MCP server. stdio:npx -y @spanly/spanly run -- node ./server.js# Or HTTP. The wrapper takes your port; the child gets a random one:npx -y @spanly/spanly run --port 3000 -- node ./server.js

In this section

  • Installation covers npm, Homebrew, and the curl | sh installer.
  • spanly run wraps a server you launch yourself.
  • spanly proxy sits in front of a server you connect to.
  • Flags lists every option for both commands.
  • Production covers running the CLI in a deployed environment.

On this page