Skip to content

Accept annotations.title on the MCP tool reference page - #118

Merged
callumalpass merged 1 commit into
mainfrom
fix-mcp-tool-annotations-type
Nov 19, 2026
Merged

callumalpass merged 1 commit into
mainfrom
fix-mcp-tool-annotations-type

Conversation

@callumalpass

Copy link
Copy Markdown
Member

Since mdbase-dev/mdbase-connect#1528 (2026-11-14), the MCP server copies each tool's title into annotations.title. src/pages/apps/mcp/tools/index.astro typed behaviour()'s parameter as Record<string, boolean | undefined>, so astro check fails as soon as the Connect pin moves past v0.1.0-beta.208.

That is why Update Connect release has failed for every Connect release since 2026-11-15 (latest: v0.1.15, run 44339592545), and why mdbase.dev/downloads still links to v0.1.0-beta.208 (mdbase-dev/mdbase-connect#1712).

This change types the parameter as the three hints the page actually reads.

Verification: I regenerated src/data/mcp-tools.json from a v0.1.15 MCP build. The MCP tools page error is gone. The other astro check errors that remain locally are only from the missing generated contracts.json, which CI produces.

Site checks on this PR build at the current pin (beta.208), so they don't exercise the new annotation shape. After merging, re-run the release update for v0.1.15:

gh workflow run update-connect-release.yml -R mdbase-dev/mdbase.dev -f tag=v0.1.15

Connect #1528 mirrors each tool's title into annotations.title. The tool
reference typed annotations as Record<string, boolean | undefined>, so
astro check fails once the Connect pin moves past v0.1.0-beta.208, and the
Connect release update workflow has failed for every release since.
Type the parameter as the three hints the page reads.
@callumalpass
callumalpass merged commit 689dcfa into main Nov 19, 2026
1 check passed
@callumalpass
callumalpass deleted the fix-mcp-tool-annotations-type branch November 19, 2026 04:58
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.

1 participant