[GH-ISSUE #46] BUG: MCP server runs, but Claude does not detect/load it #33

Closed
opened 2026-02-27 07:17:34 +03:00 by kerem · 3 comments
Owner

Originally created by @myheisenberg on GitHub (Jan 19, 2026).
Original GitHub issue: https://github.com/jwadow/kiro-gateway/issues/46

Kiro Gateway Version

v2.0

What happened?

My MCP server runs successfully when started manually, but Claude does not detect it / does not show it in the tools list (or shows it as disconnected).

Image

Debug Logs

kiro_request_body.json
request_body.json
app_logs.txt
response_stream_raw.txt

Originally created by @myheisenberg on GitHub (Jan 19, 2026). Original GitHub issue: https://github.com/jwadow/kiro-gateway/issues/46 ### Kiro Gateway Version v2.0 ### What happened? My MCP server runs successfully when started manually, but Claude does not detect it / does not show it in the tools list (or shows it as disconnected). <img width="1908" height="685" alt="Image" src="https://github.com/user-attachments/assets/9d0176c8-e8fc-41c3-833a-977e89bd19e9" /> ### Debug Logs [kiro_request_body.json](https://github.com/user-attachments/files/24719589/kiro_request_body.json) [request_body.json](https://github.com/user-attachments/files/24719590/request_body.json) [app_logs.txt](https://github.com/user-attachments/files/24719591/app_logs.txt) [response_stream_raw.txt](https://github.com/user-attachments/files/24719592/response_stream_raw.txt)
kerem 2026-02-27 07:17:34 +03:00
  • closed this issue
  • added the
    bug
    fixed
    labels
Author
Owner

@jwadow commented on GitHub (Jan 20, 2026):

@myheisenberg I checked your logs. Your Kiro Gateway works fine - I see 'tools=48' in the request. That means 48 tools were sent from Claude Code to the gateway. This suggests your MCP servers might already be working.

The 404 errors on '//api/event_logging/batch' are just telemetry - harmless, not related to MCP.

Important: Kiro Gateway doesn't manage MCP servers. It only passes tools from Claude Code to Kiro API. MCP servers connect directly to Claude Code.

Questions:

  1. Which specific MCP server are you trying to connect?
  2. How do you check that it's not working?
  3. Do you see any tools available when using Claude Code?

If you see 48 tools in the request, some MCP servers are working. Maybe the one you're trying to add is already connected, or there's a configuration issue in Claude Code (not in Kiro Gateway).

<!-- gh-comment-id:3772323154 --> @jwadow commented on GitHub (Jan 20, 2026): @myheisenberg I checked your logs. Your Kiro Gateway works fine - I see 'tools=48' in the request. That means 48 tools were sent from Claude Code to the gateway. This suggests your MCP servers might already be working. The 404 errors on '//api/event_logging/batch' are just telemetry - harmless, not related to MCP. Important: Kiro Gateway doesn't manage MCP servers. It only passes tools from Claude Code to Kiro API. MCP servers connect directly to Claude Code. Questions: 1. Which specific MCP server are you trying to connect? 2. How do you check that it's not working? 3. Do you see any tools available when using Claude Code? If you see 48 tools in the request, some MCP servers are working. Maybe the one you're trying to add is already connected, or there's a configuration issue in Claude Code (not in Kiro Gateway).
Author
Owner

@bhaskoro-muthohar commented on GitHub (Jan 21, 2026):

Apologies for not checking existing issues before creating #50 - this may be related.

The user here reported MCP tools not working, but you confirmed 48 tools were sent (MCP was connected). I found a bug in extract_text_content() where Pydantic models (TextContentBlock) aren't handled, causing all MCP tool results to become "(empty result)".

This could explain why MCP appears connected but returns no useful data. See #50 for details and fix.

<!-- gh-comment-id:3778933804 --> @bhaskoro-muthohar commented on GitHub (Jan 21, 2026): Apologies for not checking existing issues before creating #50 - this may be related. The user here reported MCP tools not working, but you confirmed 48 tools were sent (MCP was connected). I found a bug in `extract_text_content()` where Pydantic models (`TextContentBlock`) aren't handled, causing all MCP tool results to become `"(empty result)"`. This could explain why MCP appears connected but returns no useful data. See #50 for details and fix.
Author
Owner

@jwadow commented on GitHub (Jan 23, 2026):

@myheisenberg Your MCP server was working (48 tools in request). The bug was in extract_text_content() - it didn't handle Pydantic models, so tool results returned "(empty result)".

Fixed now. Credit to @bhaskoro-muthohar for finding the root cause in #50

Please test and confirm

<!-- gh-comment-id:3788751213 --> @jwadow commented on GitHub (Jan 23, 2026): @myheisenberg Your MCP server was working (48 tools in request). The bug was in `extract_text_content()` - it didn't handle Pydantic models, so tool results returned "(empty result)". Fixed now. Credit to @bhaskoro-muthohar for finding the root cause in #50 Please test and confirm
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/kiro-gateway-jwadow#33
No description provided.