File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import type {
1919 ToolCallInvocation ,
2020} from "./types.js" ;
2121import { getServerType as getServerTypeFromConfig } from "./config.js" ;
22+ import corePackageJson from "../package.json" with { type : "json" } ;
2223import type {
2324 CreateTransport ,
2425 CreateTransportOptions ,
@@ -523,8 +524,8 @@ export class InspectorClient extends InspectorClientEventTarget {
523524 this . appRendererClientProxy = null ;
524525 this . client = new Client (
525526 options . clientIdentity ?? {
526- name : "@modelcontextprotocol/inspector" ,
527- version : "0.18.0" ,
527+ name : corePackageJson . name . split ( "/" ) [ 1 ] ?? corePackageJson . name ,
528+ version : corePackageJson . version ,
528529 } ,
529530 Object . keys ( clientOptions ) . length > 0 ? clientOptions : undefined ,
530531 ) ;
Original file line number Diff line number Diff line change 2929 " build"
3030 ],
3131 "scripts" : {
32- "build" : " tsc" ,
32+ "build" : " tsc && cp package.json build/package.json " ,
3333 "test" : " vitest run" ,
3434 "test:watch" : " vitest"
3535 },
Original file line number Diff line number Diff line change 2323 " json/**/*.ts" ,
2424 " auth/**/*.ts" ,
2525 " storage/**/*.ts" ,
26- " logging/**/*.ts"
26+ " logging/**/*.ts" ,
27+ " package.json"
2728 ],
2829 "exclude" : [" node_modules" , " build" ]
2930}
You can’t perform that action at this time.
0 commit comments