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.

kagent mcp

Page as Markdown

kagent mcp command

Model Context Protocol (MCP) server management commands for creating and managing MCP servers with dynamic tool loading.

kagent mcp [subcommand] [flags]

Subcommands:

  • init - Initialize a new MCP server project
  • build - Build a Docker image for your MCP server
  • deploy - Deploy your MCP server to a Kubernetes cluster
  • add-tool - Generate an MCP tool boilerplate
  • run - Run an MCP server locally
  • secrets - Manage secrets for MCP server projects

Global Flags:

  • --kagent-url - kagent URL (default: “http://localhost:8083”)
  • --namespace, -n - Namespace (default: “kagent”)
  • --output-format, -o - Output format (default: “table”)
  • --timeout - Timeout duration (default: 300s)
  • --verbose, -v - Verbose output

About kagent mcp

The kagent mcp command provides a set of subcommands for managing MCP servers. This is useful for creating and managing tools that can be used by kagent agents.

Example

See the kagent mcp documentation for detailed examples of each subcommand: