File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ import crypto from 'crypto'
12
12
import fs , { readFile } from 'fs/promises'
13
13
import path from 'path'
14
14
import os from 'os'
15
- import { createRequire } from 'node:module'
16
- const require = createRequire ( import . meta. url )
15
+ import { version as MCP_REMOTE_VERSION } from '../../package.json'
17
16
18
17
// Global type declaration for typescript
19
18
declare global {
@@ -26,9 +25,7 @@ export const REASON_TRANSPORT_FALLBACK = 'falling-back-to-alternate-transport'
26
25
27
26
// Transport strategy types
28
27
export type TransportStrategy = 'sse-only' | 'http-only' | 'sse-first' | 'http-first'
29
-
30
- // Package version from package.json
31
- export const MCP_REMOTE_VERSION = require ( '../../package.json' ) . version
28
+ export { MCP_REMOTE_VERSION }
32
29
33
30
const pid = process . pid
34
31
// Global debug flag
You can’t perform that action at this time.
0 commit comments