Using MCP as tools
AgentKit supports configuring MCP servers viaStreamable HTTP
, SSE
or WS
transports:
mcpServers
reference
The mcpServers
parameter allows you to configure Model Context Protocol servers that provide tools for your agent. AgentKit automatically fetches the list of available tools from these servers and makes them available to your agent.
An array of MCP server configurations.
MCP.Server
A short name for the MCP server (e.g., “github”, “neon”). This name is used to
namespace tools for each MCP server. Tools from this server will be prefixed
with this name (e.g., “neon-createBranch”).
The transport configuration for connecting to the MCP server.
TransportSSE
Specifies that the transport is Server-Sent Events.
The URL of the SSE endpoint.
Optional configuration for the EventSource.
Optional request configuration.
TransportWebsocket
Specifies that the transport is WebSocket.
The WebSocket URL of the MCP server.
Examples
Neon Assistant Agent (using MCP)
This examples shows how to use the Neon MCP Smithery Server to build a Neon Assistant Agent that can help you manage your Neon databases.
AgentsToolsNetworkIntegrations
Code-based Router
AgentsToolsNetworkIntegrations
Code-based Router