Skip to content

user-friendly genie-space server names displayed#127

Merged
asujithan merged 1 commit into
mainfrom
genie-space-mcp-names
May 29, 2026
Merged

user-friendly genie-space server names displayed#127
asujithan merged 1 commit into
mainfrom
genie-space-mcp-names

Conversation

@asujithan
Copy link
Copy Markdown
Collaborator

Summary

Make Genie MCP server names readable instead of opaque space IDs. databricks-genie-01f0b... becomes databricks-genie-bakehouse-genie-space in /mcp inside Claude, Codex, Gemini, OpenCode, and Copilot.

genie_mcp_servers() now derives the name from the Genie space title (normalized to lowercase + hyphens), with a fallback to the raw space_id when there is no title or two titles collide in the same discovery pass. The MCP URL still carries the real space_id, so Genie routing is unchanged.

_resolve_mcp_selection() gained an available_genie_servers parameter and looks up the canonical URL by name (mirrors the existing apps pattern); configure_mcp_command() threads the discovered list through. A legacy fallback preserves the old space_id-in-selection path.

Test plan

  • uv run pytest tests/test_mcp.py (39/39 pass; new test covers slug collision + empty-title fallback)
  • uv run ruff check .
  • On a real workspace: ucode configure mcp then claude /mcp shows friendly names.

@asujithan asujithan requested a review from AarushiShah-db May 29, 2026 15:58
Copy link
Copy Markdown
Collaborator

@AarushiShah-db AarushiShah-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty for the fix!

@asujithan asujithan merged commit 86ba9da into main May 29, 2026
2 checks passed
@asujithan asujithan deleted the genie-space-mcp-names branch May 29, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants