Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p0dcasters",
"version": "0.7.0",
"version": "0.7.1",
"private": true,
"type": "module",
"scripts": {
Expand Down
10 changes: 9 additions & 1 deletion src/lib/mcp/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,5 +413,13 @@ export const TOOLS_BY_NAME = new Map(TOOLS.map((t) => [t.name, t]));

/** A tool as tools/list describes it: everything but run. */
export function describe(tool: Tool) {
return { name: tool.name, title: tool.title, description: tool.description, inputSchema: tool.inputSchema, annotations: tool.annotations };
// annotations.title too: the claude.ai directory reads the listing name from
// the annotations and flags every tool that lacks one (2026-11-11).
return {
name: tool.name,
title: tool.title,
description: tool.description,
inputSchema: tool.inputSchema,
annotations: { title: tool.title, ...tool.annotations },
};
}
9 changes: 9 additions & 0 deletions test/review-mcp.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ test('the review tools are listed and refuse a caller without a submissions:revi
}
assert.equal(TOOLS_BY_NAME.get('accept_submissions').annotations.readOnlyHint, false);
});

test('every listed tool carries its title in annotations too', async () => {
const { TOOLS, describe } = await import('../src/lib/mcp/tools.ts');
for (const t of TOOLS) {
const d = describe(t);
assert.ok(d.annotations.title, `${t.name} has annotations.title`);
assert.equal(d.annotations.title, d.title);
}
});
Loading