Skip to content

Toolbox Service auto-discovery shows “Skipped” but still logs 201 Created #103

@GHkrishna

Description

@GHkrishna

What

Following docs, I am unable to receive any response from the agent. I suspect this step [Cloudflare account with Workers enabled]. Since I didn't find any docs on where exactly we add it, or even whether it's necessary.

Also, I've changed the code a bit to create open-ai agent instead of the default anthropic.

The code I've changed:

.
.
.
case "openai":
			 provider = createOpenAI({ apiKey: env.AI_PROVIDER_API_KEY });
  			 model = provider.languageModel(env.MODEL_ID);
			 break;
.
.
.

Logs

[wrangler:info] Ready on http://localhost:8787
[agent] Initializing service ToolboxService {
  name: '@nullshot/agent/toolbox-service',
  env: {
    AI_PROVIDER: 'openai',
    MODEL_ID: 'gpt-4',
    AI_PROVIDER_API_KEY: 'my-key-here',
    MCP_SERVICE: Fetcher {},
    AGENT: DurableObjectNamespace {}
  },
  mcpManager: NullShotMCPClientManager {
    _name: 'agent-toolbox',
    _version: '1.0.0',
    mcpConnections: {},
    _callbackUrls: [],
    enhancedConnections: Map(0) {}
  },
  mcpConfig: { mcpServers: { 'mcp-template': [Object] } }
}
[agent] 🔧 Using static MCP configuration (imported mcp.json)
[agent] 🔍 Found 1 Fetcher service bindings to test: MCP_SERVICE
[agent] 🔧 Toolbox Service: Initializing with 1 configured servers and 1 Fetcher bindings to test
[agent] 🧪 Testing service binding "MCP_SERVICE" for MCP compatibility...
[mcp] Fetching sessionId: null with id: some-id
[agent] 🔍 MCP_SERVICE test results: status=200, SSE=true, cache=true, keepalive=true
[agent] 🎉 Auto-discovered MCP service: "MCP_SERVICE"
[agent] 🔗 Initializing auto-discovered MCP service "MCP_SERVICE"
[mcp] Fetching sessionId: null with id: some-id
[mcp] Fetching sessionId: some-id with id: some-id
[mcp] Fetching sessionId: some-id with id: some-id
[mcp] Fetching sessionId: some-id with id: some-id
[agent] ✅ Auto-discovered MCP service "MCP_SERVICE" initialized successfully
[agent] 
🎯 Toolbox Service Initialization Summary:
[agent] 📈 Total servers/bindings processed: 2
[agent] ✅ Successfully connected: 1
[agent] ❌ Failed to connect: 0
[agent] ⏭️  Skipped: 1
[agent] 
🔗 Active connections: 1
[agent] 🛠️  Total tools available: 1 (1 unique)
[agent] 📊 Tools by connection type: { 'service-binding': 1 }
[agent] 
📋 Active MCP Connections:
[agent]   • "MCP_SERVICE" (service-binding, 🔗 auto-discovered): 1 tools [ready]
[agent] 
🚀 Toolbox Service ready! Configured + Auto-discovery enabled.

[agent] ✨ All tool names are unique across MCP servers
[wrangler:info] POST /agent/chat 200 OK (105ms)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions