Provide your Agents with MCP Servers as tools
Streamable HTTP
, SSE
or WS
transports:
import { createAgent } from "@inngest/agent-kit";
const neonAgent = createAgent({
name: "neon-agent",
system: `You are a helpful assistant that help manage a Neon account.
`,
mcpServers: [
{
name: "neon",
transport: {
type: "ws",
url: "ws://localhost:8080",
},
},
],
});
mcpServers
referencemcpServers
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.