Skip to content

Commit b733470

Browse files
committed
docs
1 parent 2dbba41 commit b733470

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/migration-SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ tool.update({ paramsSchema: { name: z.string() }, callback: handler });
227227
tool.update({ inputSchema: { name: z.string() }, handler: handler });
228228
```
229229

230+
**Note:** In v1, `paramsSchema` inconsistently differed from `inputSchema` used in `registerTool()`. Fixed in v2.
231+
232+
**New:** `RegisteredTool` now supports `icons` field (parity with protocol `Tool` type).
233+
230234
New getter methods on `McpServer`:
231235

232236
| Getter | Returns |

docs/migration.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,14 @@ tool.update({
268268
});
269269
```
270270

271+
**Note:** In v1, `RegisteredTool.update()` used `paramsSchema` which inconsistently differed from the `inputSchema` field used in `registerTool()`. This has been fixed in v2.
272+
273+
**New:** `RegisteredTool` now supports the `icons` field for parity with the protocol `Tool` type:
274+
275+
```typescript
276+
tool.update({ icons: [{ type: 'base64', mediaType: 'image/png', data: '...' }] });
277+
```
278+
271279
New getter methods are available on `McpServer` to access all registered items:
272280

273281
```typescript

0 commit comments

Comments
 (0)