@@ -211,24 +211,22 @@ After refreshing the page, you should see the `query-documentation` tool being d
211211
212212### Option 2: Using YAML CRDs
213213
214- Create a ` toolserver .yaml` file:
214+ Create a ` remote-mcpserver .yaml` file:
215215
216216``` yaml
217- # Kagent ToolServer Configuration
218- # This connects agents to the MCP documentation query server
219- apiVersion : kagent.dev/v1alpha1
220- kind : ToolServer
217+ apiVersion : kagent.dev/v1alpha2
218+ kind : RemoteMCPServer
221219metadata :
222- name : sqlite-vec # Name referenced by agents (in toolServer field)
223- namespace : kagent # Must match your Kagent installation namespace
220+ name : live-demo
221+ namespace : kagent
222+ status :
224223spec :
225- config :
226- streamableHttp : # Configuration for HTTP-based MCP connection
227- sseReadTimeout : 5m0s # Timeout for server-sent events
228- timeout : 5s # General connection timeout
229- url : http://mcp-sqlite-vec.kagent:3001/mcp # MCP server endpoint
230- type : ' ' # Auto-detected based on config
231- description : ' SQLite vector search MCP server for documentation queries'
224+ description : ' '
225+ protocol : STREAMABLE_HTTP
226+ sseReadTimeout : 5m0s
227+ terminateOnClose : true
228+ timeout : 5s
229+ url : http://mcp-sqlite-vec.kagent:3001/mcp
232230` ` `
233231
234232Apply the ToolServer:
@@ -260,24 +258,27 @@ Create an `agent.yaml` file:
260258``` yaml
261259# Kagent Agent Configuration
262260# This defines an AI agent that can answer questions about MCP documentation
263- apiVersion : kagent.dev/v1alpha1
261+ apiVersion : kagent.dev/v1alpha2
264262kind : Agent
265263metadata :
266- name : oswaldo # Agent name - change to your preference
267- namespace : kagent # Must match your Kagent installation namespace
264+ name : sqlite-vec
265+ namespace : kagent
268266spec :
269- description : >-
267+ declarative :
268+ modelConfig : default-model-config
269+ stream : true
270+ systemMessage : ' Use your tool to answer any question about the Model Context Protocol (MCP). Use mcp for the product and latest for the version'
271+ tools :
272+ - mcpServer :
273+ apiGroup : kagent.dev
274+ kind : RemoteMCPServer
275+ name : live-demo
276+ toolNames :
277+ - query_documentation
278+ type : McpServer
279+ description : |
270280 The MCP agent is answering questions about MCP, using the MCP documentation
271- modelConfig : default-model-config # References a ModelConfig resource for AI model settings
272- systemMessage : >-
273- Use your tool to answer any question about the Model Context Protocol (MCP).
274- Use mcp for the product and latest for the version.
275- tools :
276- - mcpServer :
277- toolNames :
278- - query_documentation # The specific tool from the MCP server to use
279- toolServer : kagent/sqlite-vec # References the ToolServer resource (namespace/name)
280- type : McpServer # Indicates this is an MCP-based tool
281+ type : Declarative
281282` ` `
282283
283284Apply the Agent:
0 commit comments