[Bug Fix] MCP: point install instructions at canonical www host
Related to #481 (second sub-problem, not the Host-header rejection itself — that's PR #491).
Problem
https://rubyui.com/mcp 301-redirects to https://www.rubyui.com/mcp. A redirect mid-handshake trips some MCP clients. Every place we hand people (or agents) the endpoint to copy-paste pointed at the bare, redirecting domain:
docs/app/views/docs/mcp.rb— the Claude Codeclaude mcp addsnippet, and the Cursor/Claude Desktop/Windsurf/Zed JSON config snippets.mcp/lib/ruby_ui/mcp/tools/get_project_registries.rb— theurltheget_project_registriesMCP tool itself hands back to a connected agent at runtime.mcp/README.md— the "Hosted endpoint" line.
Fix
Point all of the above at https://www.rubyui.com/mcp directly — the actual final destination — so copying any of these no longer round-trips through a redirect. Left alone the general "visit the site" links (e.g. mcp/README.md's intro link and its "see docs" link, root CLAUDE.md/README.md), since those are normal browser navigations where a 301 is harmless.
Test plan
cd mcp && bundle exec rake test— 24 runs, 59 assertions, 0 failures (no test asserts the literal URL string, so nothing needed updating there).bundle exec standardrbon the changed Ruby files — clean.- Confirmed
mcp/data/registry.json(the static build artifact) doesn't embed this URL, so no rebuild needed. - Grepped the repo for any remaining
rubyui.com/mcp(bare, non-www) references — none left.
Summary by cubic
Point MCP install and config instructions to the canonical host to avoid mid-handshake redirects that break some clients. All endpoints now use https://www.rubyui.com/mcp.
- Bug Fixes
- Updated docs snippets (Claude Code, Cursor, Zed) to use https://www.rubyui.com/mcp.
- Updated
get_project_registriestool to return https://www.rubyui.com/mcp. - Updated
mcp/README.mdhosted endpoint.