Skip to content

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

kmcp init

Page as Markdown

kmcp init command

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