File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @deco/mcp" ,
3
- "version" : " 0.3.1 " ,
3
+ "version" : " 0.3.2 " ,
4
4
"exports" : " ./mod.ts" ,
5
5
"tasks" : {
6
6
"check" : " deno fmt && deno lint && deno check mod.ts"
Original file line number Diff line number Diff line change @@ -162,7 +162,8 @@ export const getTools = <TManifest extends AppManifest>(
162
162
163
163
// Handle tool name slugification and clashes
164
164
let toolName = ( funcDefinition as { name ?: string } ) ?. name ??
165
- ( inputSchema as { name ?: string } ) ?. name ?? slugify ( resolveType ) ;
165
+ ( inputSchema as { name ?: string } ) ?. name ??
166
+ slugify ( funcDefinition . title ?? resolveType ) ;
166
167
let idx = 1 ;
167
168
168
169
while (
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ export function dereferenceSchema(
27
27
}
28
28
visited . add ( refId ) ;
29
29
const referencedSchema = definitions [ refId ] ;
30
-
30
+
31
31
// Save the original schema metadata (excluding $ref)
32
32
const { $ref, ...originalMetadata } = schema ;
33
-
33
+
34
34
// Merge the original metadata with the dereferenced schema
35
35
return {
36
36
...originalMetadata ,
You can’t perform that action at this time.
0 commit comments