Skip to content

ci: Check the README table of hosted tools against a snapshot of the tool list (#152) - #153

Draft
johnxie wants to merge 1 commit into
mainfrom
feat/hosted-tool-list-sync
Draft

johnxie wants to merge 1 commit into
mainfrom
feat/hosted-tool-list-sync

Conversation

@johnxie

@johnxie johnxie commented Nov 25, 2026

Copy link
Copy Markdown
Member

Summary

  • hosted-tools.json is a new snapshot of the tool list of the hosted server https://www.taskade.com/mcp. The first snapshot comes from the hosted tool table of README.md on main: 58 names, and the read-only or write column of each. The README states no title and no other hint, so the snapshot leaves those fields out.
  • Two HTML comment markers now enclose the table in the section "Hosted tools". No visible row changes.
  • yarn hosted-tools:check fails when the table and the snapshot do not hold the same tools, when the counts differ, or when a tool is in the wrong column. It uses no network. A new CI step runs it after yarn test.
  • yarn hosted-tools:sync fetches the public tool list file https://www.taskade.com/.well-known/mcp/tools.json, writes the snapshot, and writes the table from it. The table keeps its rows and the text after each name. A new tool goes to the row "Other". Today the file answers 404, so the script stops and changes nothing.
  • CONTRIBUTING.md tells how to run both commands, and how to edit the two files by hand until the public file is available.
  • The script is TypeScript in packages/server/scripts/, like the other scripts of this repository. It adds no dependency.

How to test

yarn install --frozen-lockfile
yarn hosted-tools:check   # The hosted tool table matches hosted-tools.json (58 tools).
yarn test                 # includes packages/server/scripts/hosted-tools.test.ts
yarn lint
yarn hosted-tools:sync    # exits 1 today: the file answers 404. No file changes.

To see a failure, add `list_everything` to a row of the table and run yarn hosted-tools:check. It names the tool and the two counts.

What a merge triggers

  • The workflow CI runs on main.
  • The workflow Release runs on main. This pull request has no changeset, so changesets opens no version pull request. Its publish step finds @taskade/mcp-server 0.2.1 and @taskade/mcp-openapi-codegen 0.0.8 on npm already, so it publishes nothing and pushes no tag.
  • The workflow "Publish to MCP Registry" runs only on a release tag, so it does not run.
  • No version bump, no release and no tag.

Closes #152

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are identified, and the change includes automated validation and CI enforcement for keeping the hosted-tool snapshot and README table synchronized.

No open issues 🎉

What changed in this PR

Adds a checked-in snapshot and automated validation workflow to keep the README’s hosted MCP tool table synchronized with the hosted tool list.

Changes:

  • Adds the 58-tool hosted-tools.json snapshot with read-only/write classifications.
  • Adds TypeScript parsing, validation, rendering, synchronization logic, and tests.
  • Adds package scripts, contributor documentation, and CI enforcement.
File Description
README.md Adds markers around the hosted tools table for automated parsing and validation.
packages/​server/​scripts/​hosted-tools.ts Implements hosted-tool snapshot validation, README parsing and rendering, consistency checking, and remote synchronization.
packages/​server/​scripts/​hosted-tools.test.ts Tests snapshot normalization, table parsing and rendering, synchronization behavior, mismatch detection, and malformed input handling.
package.json Adds hosted-tools:check and hosted-tools:sync scripts.
hosted-tools.json Stores the initial 58-tool hosted-server snapshot and read-only/write metadata.
CONTRIBUTING.md Documents hosted-tool table maintenance and synchronization commands.
.github/​workflows/​ci.yml Runs the hosted-tool consistency check in CI.

Review effort: Lite

@johnxie

johnxie commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

@deanzaka impact and QA notes for this PR.
The PR is open. These notes describe the current head (735998a).

Impact

Area Who sees it What changes Risk
CI, .github/workflows/ci.yml Contributors A new step "Check the hosted tool table" runs yarn hosted-tools:check after yarn test. Medium-low. A pull request that edits the hosted tool table and not hosted-tools.json (or the reverse) now fails CI.
hosted-tools.json (new) Maintainers A snapshot of 58 hosted tool names, each with its read-only or write mark. It comes from the README table on main, not from the server. Low. Until a public tool list exists, the check proves only that the table and the snapshot agree.
yarn hosted-tools:sync (new) Maintainers Fetches https://www.taskade.com/.well-known/mcp/tools.json and writes the snapshot and the table None today. The URL answers 404, so the script stops and changes nothing.
README.md, section "Hosted tools" Readers Two HTML comment markers around the table None. No visible row changes.
CONTRIBUTING.md Contributors A new section "Hosted tool table" tells how to run both commands None

Release: no changeset. The PR states that the Release workflow finds @taskade/mcp-server 0.2.1 and @taskade/mcp-openapi-codegen 0.0.8 on npm and publishes nothing. npm shows these two versions as latest today.

Before and after

No visible change for users.

Before: CI job "Verify"
yarn install -> yarn build -> git diff --exit-code -> yarn lint -> yarn test
  -> smoke test of the codegen package
README hosted tool table: no check. A wrong or missing tool name passes CI.
After: CI job "Verify"
yarn install -> yarn build -> git diff --exit-code -> yarn lint -> yarn test
  -> yarn hosted-tools:check   (no network)
       table == hosted-tools.json ?  yes -> pass
                                     no  -> fail, names the tool and the two counts
  -> smoke test of the codegen package

How to QA

# Step Expected result
1 Run gh pr checkout 153 -R taskade/mcp, then yarn install --frozen-lockfile The install passes
2 Run yarn hosted-tools:check It passes and names 58 tools
3 Add `list_everything` to one row of the hosted tool table in README.md, then run yarn hosted-tools:check It fails. The message names list_everything and the two counts (59 and 58). Undo the edit after.
4 Run curl -s -o /dev/null -w '%{http_code}\n' https://www.taskade.com/.well-known/mcp/tools.json, then yarn hosted-tools:sync, then git status --short 404. The sync exits with code 1. git status shows no changed file.
5 Run yarn test Each test passes, packages/server/scripts/hosted-tools.test.ts included
6 Open the checks of the PR "Verify (Node 20)" and "Verify (Node 24)" are green, and each run shows the step "Check the hosted tool table"

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.

The hosted tool table in the README has no check

2 participants