This guide provides a quick overview of how to set up and run KAgent tools using AgentGateway.
For more detaled information on KAgent tools, please refer to the KAgent Tools Documentation.
To learn more about agentgateway, see AgentGateway
- Download tools binary and install it.
- Download tools configuration file for agentgateway.
- Download the agentgateway binary and install it.
- Run the agentgateway with the configuration file.
- open http://localhost:15000/ui
curl -sL https://raw.githubusercontent.com/kagent-dev/tools/refs/heads/main/scripts/install.sh | bash
curl -sL https://raw.githubusercontent.com/kagent-dev/tools/refs/heads/main/scripts/agentgateway-config-tools.yaml
curl -sL https://raw.githubusercontent.com/agentgateway/agentgateway/refs/heads/main/common/scripts/get-agentproxy | bash
export PATH=$PATH:$HOME/.local/bin/
agentgateway -f agentgateway-config-tools.yamlagentgateway-config-tools.yaml:
binds:
- port: 30805
listeners:
- routes:
- policies:
cors:
allowOrigins:
- "*"
allowHeaders:
- mcp-protocol-version
- content-type
backends:
- mcp:
name: default
targets:
- name: kagent-tools
stdio:
cmd: kagent-tools
args: ["--stdio", "--kubeconfig", "~/.kube/config"]Afterwards, you can run it with make command
make run-agentgateway- Download the agentgateway binary and install it.
curl -sL https://raw.githubusercontent.com/kagent-dev/tools/refs/heads/main/scripts/install.sh | bash
- Create
.cursor/mcp.json
{
"mcpServers": {
"kagent-tools": {
"command": "kagent-tools",
"args": ["--stdio", "--kubeconfig", "~/.kube/config"]
}
}
}