Skip to content

bug: Connection between agent and weather tool does not work when the agent and tool are in different namespaces. #148

Closed

Description

@msteinder

Describe the bug

I deploy weather-tool and weather-service in different namespaces, tools and agents, respectively. Agent is deployed with two environment variables from the drop down menu: weather-tool and ollama. kubectl describe shows agent deployed with environment variable:
MCP_URL: http://weather-tool:8000/mcp
But this does not work when the tool is in a different namespace.

There is no issue when the agent and tool are in the same namespace. And the problem can be easily worked around by defining MCP_URL explicitly at the time of agent import.

The simplest fix is to add a warning in the example description to explicitly configure this variable in multi-namespace cases, as the problem will be eliminated once we use mcp-gateway as a part of the platform.

Steps To Reproduce

Follow regular deployment steps with weather tool and agent in different namespaces.

Expected Behavior

As explained above.

Additional Context

No response

Activity

  1. pdettori commented on Aug 27, 2025

    @pdettori
    Member

    @msteinder you are correct, the initial assumption was that agent and tool are deployed in the same namespace but beyond a simple demo we can expect tools in different namespace. As you suggest for the time being we can just allow editing the MCP_URL. Once we have MCP Gateway as single point of control, we could even enforce (with network policies) going always through the gateway and not direct access to each service.

  2. added
    documentation
    enhancement
    on Sep 2, 2025
  3. rubambiza commented on Dec 15, 2025

    @rubambiza
    Contributor

    Possible solution: Use MCP Gateway as a forcing function.

  4. changed the title [-]bug: Connection between agent and weather tool does not work when the agent and tool are in diferent namespaces.[/-] [+]bug: Connection between agent and weather tool does not work when the agent and tool are in different namespaces.[/+] on Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationenhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions