Skip to content
This documentation covers the kagent 1.0 alpha. For the latest 0.x release, see the 0.x docs.

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

kagent mcp run

Page as Markdown

Run MCP server locally.

Run an MCP server locally using the Model Context Protocol inspector.

By default, this command will:

  1. Load the manifest.yaml configuration from the project directory
  2. Determine the framework type and create the appropriate mcp inspector configuration
  3. Launch the MCP inspector and select STDIO as the transport type, the server will start when you click “Connect”

If you want to run the server directly without the inspector, use the –no-inspector flag. This will execute the server directly using the appropriate framework command.

Supported frameworks:

  • fastmcp-python: Requires uv to be installed
  • mcp-go: Requires Go to be installed
kagent mcp run [flags]

Flags:

  • -h, --help - help for run
  • --no-inspector - Run the server directly without launching the MCP inspector
  • -d, --project-dir string - Project directory to use (default: current directory)
  • --transport string - Transport mode (stdio or http) (default “stdio”)

Global Flags:

  • --api-url string - KAgent control-plane API URL (default “http://localhost:8083”)
  • --ca-file string - CA certificate file for KAgent endpoints
  • --gateway-url string - KAgent A2A and MCP gateway URL (default “http://localhost:8083”)
  • -n, --namespace string - Namespace (default “kagent”)
  • -o, --output-format string - Output format (default “table”)
  • --server-name string - TLS server name for KAgent endpoints
  • --timeout duration - Timeout (default 5m0s)
  • --user-id string - Caller identity used to select the server-side data partition (default “admin@kagent.dev”)
  • -v, --verbose - Verbose output

Example

kagent run mcp --project-dir ./my-project     # Run with inspector (default)
kagent run mcp --no-inspector                 # Run server directly without inspector
kagent run mcp --transport http               # Run with HTTP transport