Skip to content

🐛 Bug: LangGraphHttpAgent with MCPAppsMiddleware failing to register tools in LangGraph FastAPI endpoint #4149

@rinkesh2010rpp

Description

@rinkesh2010rpp

♻️ Reproduction Steps

  1. Backend Setup: Run a LangGraph agent using add_langgraph_fastapi_endpoint (Python) on localhost:8123.
  2. MCP Setup: Any MCP server which has APPs I am using an example called "budget-allocator" tool.
  3. Initialize LangGraphHttpAgent pointing to the Python backend.
  4. Attach MCPAppsMiddleware to the agent instance with the HTTP URL of the MCP server.
  5. Add this agent to copilotRuntimeNextJSAppRouterEndpoint
  6. Point this agent URL to the chatbar
    ...

✅ Expected Behavior

When the tool run the budget allocator tool or any other tool which has MCP apps, it should render the UI.

❌ Actual Behavior

LLM is not detecting the tools added in the adaptor.

Screenshots

No response

𝌚 CopilotKit Version

|── @copilotkit/react-core@1.54.0
├── @copilotkit/react-ui@1.54.0
├── @copilotkit/runtime@1.54.0

📄 Logs (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions