wiki-formant 0.112.0 → 0.112.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mcp.d.ts CHANGED
@@ -82,6 +82,8 @@ export type ToolSchema = {
82
82
  * calls has no way to tell a lookup from one that reaches a payment processor.
83
83
  */
84
84
  export type ToolAnnotations = {
85
+ /** The pre-2025-06-18 home of the label; `toolCard` mirrors `McpTool.title` here. */
86
+ title?: string;
85
87
  /** Does not modify anything. */
86
88
  readOnlyHint?: boolean;
87
89
  /** May destroy or overwrite state (only meaningful when not read-only). */
@@ -134,6 +136,10 @@ export interface McpTool {
134
136
  * One projection because the two copies drifted: the manifest's had no
135
137
  * `outputSchema`, so a descriptor said a tool answers with prose while
136
138
  * `tools/list` said it answers with `structuredContent`.
139
+ *
140
+ * The title goes out twice, top level and in `annotations`: clients and the
141
+ * Claude connectors directory that read only `annotations.title` otherwise
142
+ * report every tool untitled.
137
143
  */
138
144
  export declare function toolCard(tool: {
139
145
  name: string;
package/dist/mcp.js CHANGED
@@ -75,6 +75,10 @@ import { clientKey, rateLimit, rateLimitHeaders, withRateLimit } from './rate-li
75
75
  * One projection because the two copies drifted: the manifest's had no
76
76
  * `outputSchema`, so a descriptor said a tool answers with prose while
77
77
  * `tools/list` said it answers with `structuredContent`.
78
+ *
79
+ * The title goes out twice, top level and in `annotations`: clients and the
80
+ * Claude connectors directory that read only `annotations.title` otherwise
81
+ * report every tool untitled.
78
82
  */
79
83
  export function toolCard(tool) {
80
84
  return {
@@ -83,7 +87,9 @@ export function toolCard(tool) {
83
87
  description: tool.description,
84
88
  inputSchema: tool.inputSchema,
85
89
  ...(tool.outputSchema ? { outputSchema: tool.outputSchema } : {}),
86
- ...(tool.annotations ? { annotations: tool.annotations } : {}),
90
+ ...(tool.annotations || tool.title
91
+ ? { annotations: { ...(tool.title ? { title: tool.title } : {}), ...tool.annotations } }
92
+ : {}),
87
93
  };
88
94
  }
89
95
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wiki-formant",
3
- "version": "0.112.0",
3
+ "version": "0.112.1",
4
4
  "description": "The portable half of a wiki: derived taxonomy and facet controls, a version-negotiating MCP transport, markdown twins, block rendering, a rich-text editor engine, conditional-GET plumbing, and the headers and CSP every origin sends.",
5
5
  "type": "module",
6
6
  "license": "MIT",