diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-11 22:43:50 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-11 22:43:50 +0200 |
| commit | 45fb483bbc1809e2386059602e214570300a48cc (patch) | |
| tree | 743a62d40bf6a632f865622cd88ab1ef8006632f /docs/coverage.html | |
| parent | 73a1d18ac9bb212ea8ee5367a96a9137b4c572bf (diff) | |
feat: add MCP Tools support for prompt management
Implements tools/list and tools/call endpoints to expose prompt management
operations (create, update, delete) as callable MCP tools. This enables Claude
to use the meta-prompts (save_prompt, update_prompt) to actually create and
modify prompts.
Key changes:
- Add Tool type definitions (Tool, ListToolsRequest, CallToolRequest, etc.)
- Implement handleToolsList() returning 3 tools with JSON Schemas
- Implement handleToolsCall() with tool wrappers for create/update/delete
- Add 17 comprehensive unit tests (82.8% coverage maintained)
- Update meta-prompts to reference tools instead of JSON-RPC methods
- Enable listChanged notifications for immediate prompt availability
- Refactor large functions into helpers to stay under 50-line limit
Tools advertised alongside Prompts capability. All functions under 50 lines.
Backward compatible - existing prompts/* JSON-RPC methods unchanged.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/coverage.html')
0 files changed, 0 insertions, 0 deletions
