Documentation
kagent mcp#
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 projectbuild- Build a Docker image for your MCP serverdeploy- Deploy your MCP server to a Kubernetes clusteradd-tool- Generate an MCP tool boilerplaterun- Run an MCP server locallysecrets- 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:
- kagent mcp init - Create a scaffold for your MCP server
- kagent mcp build - Build a Docker image
- kagent mcp deploy - Deploy to Kubernetes
- kagent mcp add-tool - Generate tool boilerplate
- kagent mcp run - Run locally
- kagent mcp secrets - Manage secrets
Kagent Lab: Discover kagent and kmcp
Free, on‑demand lab: build custom AI agents with kagent and integrate tools via kmcp on Kubernetes.