Skip to content

[Bug]: Respect GATEWAY_TOOL_NAME_SEPARATOR for gateway slug #387

@madhav165

Description

@madhav165

🐞 Bug Summary

Utilize GATEWAY_TOOL_NAME_SEPARATOR to separate words in slug of gateway_name instead of defaulting to -

🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • mcpgateway - UI (admin panel)
  • mcpgateway.wrapper - stdio wrapper
  • Federation or Transports
  • CLI, Makefiles, or shell scripts
  • Container setup (Docker/Podman/Compose)
  • [x ] Other (explain below)
    • How slug in stored in database will change

🔁 Steps to Reproduce

  1. Run MCP Gateway and add a gateway with a name such as test gateway. Let's say it has tool get_time. The tool name would be displayed as test-gateway-get-time
  2. Change GATEWAY_TOOL_NAME_SEPARATOR to _ and restart MCP Gateway.
  3. Tool name changes to test-gateway_get-time

🤔 Expected Behavior

Tool name should have been test_gateway_get_time


Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageIssues / Features awaiting triage

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions