🎉 Join us at the kagent Community Party at KubeCon Atlanta on Nov 12
Documentation

kmcp init#

Create a scaffold for a new FastMCP or MCP Go server project.

kmcp init [subcommand] [project-name] [flags]

Subcommands:

  • python [project-name] - Initialize a Python MCP server project using fastmcp-python
  • go [project-name] - Initialize a Go MCP server project using mcp-go

Flags:

  • --author - Set project author
  • --description - Set project description
  • --email - Set author email
  • --force - Overwrite existing directory
  • -h, --help - Help for the command
  • --namespace - Default namespace for project resources (default: "default")
  • --no-git - Skip git initialization
  • --non-interactive - Use defaults without prompts

Go-specific Flags:

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

Global Flags:

  • --verbose, -v - Show detailed output

Example#

FastMCP:

kmcp init python my-mcp-server

MCP Go:

kmcp init go my-mcp-server --go-module-name my-mcp-server
Kagent Lab: Discover kagent and kmcp
Free, on‑demand lab: build custom AI agents with kagent and integrate tools via kmcp on Kubernetes.