Skip to content

Fix remaining Registry API paths that miss /registry prefix#745

Merged
rdimitrov merged 1 commit intomainfrom
fix-registry-api-path-drift
Apr 21, 2026
Merged

Fix remaining Registry API paths that miss /registry prefix#745
rdimitrov merged 1 commit intomainfrom
fix-registry-api-path-drift

Conversation

@rdimitrov
Copy link
Copy Markdown
Member

Summary

Follow-up to the #364 stack that closes the remaining pre-existing instances where client-facing Registry Server URLs were missing the `/registry` mount prefix.

The Registry Server mounts v0.1 routes under `/registry` (verified against `toolhive-registry-server@main` `internal/api/server.go` at `r.Mount("/registry", v01.Router(svc))` and the swagger spec under `docs/thv-registry-api/swagger.yaml`). So the correct client path is `/registry/{registryName}/v0.1/...`, not `/{registryName}/v0.1/...`.

Fixed in this PR:

  • `docs/toolhive/guides-registry/authentication.mdx`: two curl examples in the "Testing authentication" section. The `kubectl`-token example also had a malformed `/registry/v0.1/servers` URL missing the registry name entirely; normalized to `/registry/default/v0.1/servers` to match the adjacent bearer-token example.
  • `docs/toolhive/guides-registry/authorization.mdx`: the claims-gating example now reads `GET /registry/platform/v0.1/servers`.
  • `docs/toolhive/concepts/skills.mdx`: the skills extensions-API path description now includes the `/registry/` prefix.

Not in scope for this PR:

Test plan

  • `npm run build` - site builds cleanly (only the pre-existing broken-anchor warning on /guides-ui/mcp-optimizer)
  • `npm run start` visual spot-check that the three changed lines render as expected

🤖 Generated with Claude Code

The Registry Server mounts v0.1 routes under /registry, so the correct
client-facing path is /registry/{registryName}/v0.1/..., not
/{registryName}/v0.1/.... Three pre-existing mentions still used the
old form and returned 404 when copy-pasted:

- authentication.mdx: two curl examples in "Testing authentication"
  (bearer-token and kubectl-service-account paths). The service-account
  example also had a malformed /registry/v0.1/servers URL missing the
  registry name entirely; replaced with /registry/default/v0.1/servers
  to match the adjacent example.
- authorization.mdx: the GET /platform/v0.1/servers claims-gating
  example now reads GET /registry/platform/v0.1/servers.
- concepts/skills.mdx: the skills extensions-API path mention now
  includes the /registry/ prefix to match the actual route.

Verified against toolhive-registry-server@main internal/api/server.go
(r.Mount("/registry", v01.Router(svc))) and the swagger.yaml under
docs/thv-registry-api/.

The matching instances inside the #364 PR stack (quickstart, intro,
skills guide, configuration, publishing) were fixed as part of those
PRs. telemetry-metrics.mdx line 130 is intentionally left alone: the
/v0.1/servers/{name} string is the chi route pattern the instrument-
ation records, which does not include the outer /registry mount.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 21, 2026 09:33
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-website Ready Ready Preview, Comment Apr 21, 2026 9:34am

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR corrects remaining ToolHive Registry Server documentation examples that were missing the required /registry mount prefix in client-facing API paths, aligning the docs with the server’s mounted routing and OpenAPI spec.

Changes:

  • Update an authorization example to use GET /registry/{registryName}/v0.1/servers.
  • Fix authentication curl examples to include /registry/{registryName} and normalize the kubectl token example to default.
  • Update the skills “extensions API path” description to include the /registry/ prefix.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
docs/toolhive/guides-registry/authorization.mdx Fixes registry consumer API example path to include /registry/platform/....
docs/toolhive/guides-registry/authentication.mdx Fixes curl examples to use /registry/default/... (including the kubectl token example).
docs/toolhive/concepts/skills.mdx Fixes the documented skills extensions API path to include /registry/{registryName}/....

@rdimitrov rdimitrov merged commit 1608a72 into main Apr 21, 2026
8 checks passed
@rdimitrov rdimitrov deleted the fix-registry-api-path-drift branch April 21, 2026 11: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.

3 participants