Skip to content

feat(mcp): add callable docs tools#8

Merged
crup merged 1 commit intomainfrom
next
Apr 7, 2026
Merged

feat(mcp): add callable docs tools#8
crup merged 1 commit intomainfrom
next

Conversation

@crup
Copy link
Copy Markdown
Owner

@crup crup commented Apr 7, 2026

Adds MCP tools in addition to resources so editors and agents can call docs actions directly.

Changes:

  • Adds tools/list and tools/call handling to the MCP server.
  • Adds get_api_docs, get_recipe, and search_docs tools.
  • Extends the MCP smoke test to call the tools.
  • Updates README and AI docs to list the callable MCP tools.
  • Updates the MCP docs server size row after the tool additions.

On package layout:

  • Keeping the executable in dist is intentional. It is generated, minified, and covered by the package build. Publishing a root-level mcp/server.js would either ship source or require generated files outside the build output.

Validation run locally:

  • pnpm typecheck
  • pnpm test
  • pnpm build
  • pnpm docs:build
  • pnpm readme:check
  • pnpm mcp:check
  • pnpm size
  • pnpm pack --dry-run
  • git diff --check

Release note:

  • npm latest is already 0.0.4, so this should publish as 0.0.5 after merge.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

Bundle size report

Entry Files Raw Gzip Brotli Raw delta Gzip delta Brotli delta
core 2 4.44 kB 1.52 kB 1.40 kB 0 B 0 B 0 B
timer group add-on 3 10.93 kB 3.83 kB 3.50 kB 0 B 0 B 0 B
schedules add-on 3 8.62 kB 3.02 kB 2.78 kB 0 B 0 B 0 B
duration helper 1 318 B 224 B 192 B 0 B 0 B 0 B
diagnostics helper 1 105 B 115 B 90 B 0 B 0 B 0 B
MCP docs server 1 6.69 kB 2.60 kB 2.25 kB +2.89 kB +990 B +863 B
core CJS 1 4.71 kB 1.63 kB 1.50 kB 0 B 0 B 0 B
timer group CJS 1 11.02 kB 3.86 kB 3.54 kB 0 B 0 B 0 B
schedules CJS 1 8.71 kB 3.04 kB 2.81 kB 0 B 0 B 0 B
duration CJS 1 808 B 475 B 424 B 0 B 0 B 0 B
diagnostics CJS 1 605 B 367 B 326 B 0 B 0 B 0 B

@crup crup merged commit 748d585 into main Apr 7, 2026
2 checks passed
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