File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import type {
99 ChatCompletionInputTool ,
1010 ChatCompletionOutput ,
1111} from "@huggingface/tasks/src/tasks/chat-completion/inference" ;
12+ import { version as packageVersion } from "../package.json" ;
1213
1314type ToolName = string ;
1415
@@ -31,7 +32,7 @@ export class McpClient {
3132 args,
3233 env : { ...env , PATH : process . env . PATH ?? "" } ,
3334 } ) ;
34- const mcp = new Client ( { name : "@huggingface/mcp-client" , version : "1.0.0" } ) ;
35+ const mcp = new Client ( { name : "@huggingface/mcp-client" , version : packageVersion } ) ;
3536 await mcp . connect ( transport ) ;
3637
3738 const toolsResult = await mcp . listTools ( ) ;
Original file line number Diff line number Diff line change 1313 "noImplicitOverride" : true ,
1414 "outDir" : " ./dist" ,
1515 "declaration" : true ,
16- "declarationMap" : true
16+ "declarationMap" : true ,
17+ "resolveJsonModule" : true
1718 },
18- "include" : [" src" ],
19+ "include" : [" src" , " test " ],
1920 "exclude" : [" dist" ]
2021}
You can’t perform that action at this time.
0 commit comments