MCP Quickstart
GenKitKraft exposes all of its management APIs as MCP tools. This lets you manage agents, providers, prompts, tools, and even chat — directly from any MCP-compatible client (Claude Desktop, Cursor, custom agents, etc.).
Prerequisites
- GenKitKraft running (see Installation)
Endpoint
The MCP server is available at:
http://<host>:<port>/mcp
Default: http://localhost:8080/mcp
It uses the Streamable HTTP transport.
Authentication
- If
AUTH_CREDENTIALSis set, the MCP endpoint requires HTTP Basic Auth with the same username and password. - If
AUTH_CREDENTIALSis not set, the MCP endpoint is open (no auth).
Connecting from Claude Desktop
Add GenKitKraft to your Claude Desktop MCP config (claude_desktop_config.json):
{
"mcpServers": {
"genkitkraft": {
"url": "http://localhost:8080/mcp"
}
}
}
If authentication is enabled, add an Authorization header:
{
"mcpServers": {
"genkitkraft": {
"url": "http://localhost:8080/mcp",
"headers": {
"Authorization": "Basic <base64-encoded username:password>"
}
}
}
}
Generate the base64 value with: echo -n "admin:changeme" | base64
Connecting from Cursor
In Cursor settings, add an MCP server with:
- Type: Streamable HTTP
- URL:
http://localhost:8080/mcp
If auth is required, configure the Basic Auth header as above.
Available Tools
Once connected, your MCP client will discover all available tools automatically. Here's a summary:
Agents
| Tool | Description |
|---|---|
agents_list | List all agents with pagination |
agents_get | Get an agent by ID |
agents_create | Create a new agent |
agents_update | Update an agent |
agents_delete | Delete an agent |
Agent Tool Config
| Tool | Description |
|---|---|
agent_tools_get | Get which tools are assigned to an agent |
agent_tools_update | Update tool assignments for an agent |
Prompts
| Tool | Description |
|---|---|
prompts_list | List all system prompts |
prompts_get | Get a prompt by ID |
prompts_create | Create a new system prompt |
prompts_update | Update a prompt |
prompts_delete | Delete a prompt |
Providers
| Tool | Description |
|---|---|
providers_list | List all LLM providers |
providers_get | Get a provider by ID |
providers_create | Create a new provider |
providers_update | Update a provider |
providers_delete | Delete a provider |
providers_test | Test provider connectivity |
provider_types_list | List supported provider types |
HTTP Tools
| Tool | Description |
|---|---|
http_tools_list | List all HTTP tools |
http_tools_get | Get an HTTP tool by ID |
http_tools_create | Create a new HTTP tool |
http_tools_update | Update an HTTP tool |
http_tools_delete | Delete an HTTP tool |
MCP Servers
| Tool | Description |
|---|---|
mcp_servers_list | List all registered MCP servers |
mcp_servers_get | Get an MCP server by ID |
mcp_servers_create | Register a new MCP server |
mcp_servers_update | Update an MCP server |
mcp_servers_delete | Delete an MCP server |
mcp_servers_list_tools | Discover tools from an MCP server |
Playground
| Tool | Description |
|---|---|
playground_sessions_list | List chat sessions for an agent |
playground_sessions_create | Create a new chat session |
playground_sessions_delete | Delete a chat session |
playground_messages_list | List messages in a session |
playground_chat | Send a message and get a response |
Auth
| Tool | Description |
|---|---|
auth_login | Log in with username/password |
auth_logout | Log out (invalidate session) |
auth_get_me | Get current user info |
auth_get_status | Check if auth is required |
Health
| Tool | Description |
|---|---|
health_liveness | Liveness check |
health_readiness | Readiness check |
Example: Set up a new agent via MCP
Using any MCP client, you can create a fully configured agent in a few tool calls:
provider_types_list— see available provider typesproviders_create— configure an LLM provider (e.g., OpenAI with your API key)prompts_create— create a system promptagents_create— create an agent using the provider and promptplayground_sessions_create— start a chat sessionplayground_chat— chat with your agent
For a detailed walkthrough with examples and input schemas, see the Agent Creation Guide.
Built-in Prompts
The MCP server includes a create-agent prompt that provides the LLM with a comprehensive guide to all available tools and the correct workflow for creating agents. MCP clients that support server-side prompts (like Claude Desktop) can load this prompt automatically to give the LLM full context.
Troubleshooting
401 Unauthorized: AUTH_CREDENTIALS is set but your client isn't sending the correct Basic Auth header. Double-check the base64-encoded username:password.
Connection refused: Make sure GenKitKraft is running and the URL/port are correct. If running in Docker, ensure the port is mapped.
Empty tool list: The MCP client may not support the Streamable HTTP transport. Check your client's MCP transport support.