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 init go

Page as Markdown

Initialize a new Go MCP server project.

Initialize a new MCP server project using the mcp-go framework.

This command will create a new directory with a basic mcp-go project structure, including a go.mod file, a main.go file, and an example tool.

You must provide a valid Go module name for the project.

kagent mcp init go [project-name] [flags]

Flags:

  • --go-module-name string - The Go module name for the project (e.g., github.com/my-org/my-project)
  • -h, --help - help for go

Global Flags:

  • --api-url string - KAgent control-plane API URL (default “http://localhost:8083”)
  • --author string - Author name for the project
  • --ca-file string - CA certificate file for KAgent endpoints
  • --description string - Description for the project
  • --email string - Author email for the project
  • --force - Overwrite existing directory
  • --gateway-url string - KAgent A2A and MCP gateway URL (default “http://localhost:8083”)
  • --namespace string - Default namespace for project resources (default “default”)
  • --no-git - Skip git initialization
  • --non-interactive - Run in non-interactive mode
  • -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