tmcp 1.10.1 → 1.10.2
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/README.md +0 -28
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -333,34 +333,6 @@ server.resource(
|
|
|
333
333
|
server.changed('resource', 'file://watched/file.txt');
|
|
334
334
|
```
|
|
335
335
|
|
|
336
|
-
### Multiple Schema Libraries
|
|
337
|
-
|
|
338
|
-
```javascript
|
|
339
|
-
// Use different schemas for different tools
|
|
340
|
-
import { z } from 'zod';
|
|
341
|
-
import * as v from 'valibot';
|
|
342
|
-
|
|
343
|
-
server.tool(
|
|
344
|
-
{
|
|
345
|
-
name: 'zod-tool',
|
|
346
|
-
schema: z.object({ name: z.string() }),
|
|
347
|
-
},
|
|
348
|
-
async ({ name }) => ({
|
|
349
|
-
content: [{ type: 'text', text: `Hello ${name}` }],
|
|
350
|
-
}),
|
|
351
|
-
);
|
|
352
|
-
|
|
353
|
-
server.tool(
|
|
354
|
-
{
|
|
355
|
-
name: 'valibot-tool',
|
|
356
|
-
schema: v.object({ age: v.number() }),
|
|
357
|
-
},
|
|
358
|
-
async ({ age }) => ({
|
|
359
|
-
content: [{ type: 'text', text: `Age: ${age}` }],
|
|
360
|
-
}),
|
|
361
|
-
);
|
|
362
|
-
```
|
|
363
|
-
|
|
364
336
|
### Completion API
|
|
365
337
|
|
|
366
338
|
The completion API allows you to provide auto-completion suggestions for prompt and template parameters. Completion functions return an object with `completion` containing `values`, `total`, and `hasMore` properties.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tmcp",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "The main tmcp library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@standard-schema/spec": "^1.0.0",
|
|
32
32
|
"json-rpc-2.0": "^1.7.1",
|
|
33
33
|
"sqids": "^0.3.0",
|
|
34
|
-
"uri-template-matcher": "^1.1.
|
|
34
|
+
"uri-template-matcher": "^1.1.1",
|
|
35
35
|
"valibot": "^1.1.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|