Skip to content

Commit ca1220a

Browse files
committed
Standardize version reporting across MCP servers #7873
1 parent 2254dbc commit ca1220a

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

ai/mcp/server/github-workflow/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,10 @@ components:
966966
type: string
967967
format: date-time
968968
description: The ISO 8601 timestamp of when the health check was performed.
969+
version:
970+
type: string
971+
description: The version of the MCP server.
972+
example: "1.0.0"
969973
githubCli:
970974
type: object
971975
properties:

ai/mcp/server/github-workflow/services/HealthService.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ class HealthService extends Base {
293293
const payload = {
294294
status : 'healthy',
295295
timestamp: new Date().toISOString(),
296+
version : process.env.npm_package_version || '1.0.0',
296297
githubCli: {
297298
installed : false,
298299
authenticated: false,

ai/mcp/server/knowledge-base/services/HealthService.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class HealthService extends Base {
183183
embedding: false
184184
},
185185
details: [],
186-
version: '1.0.0',
186+
version: process.env.npm_package_version || '1.0.0',
187187
uptime : process.uptime()
188188
};
189189

ai/mcp/server/memory-core/services/HealthService.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class HealthService extends Base {
225225
summarizationDetails: this.#startupSummarizationDetails
226226
},
227227
details: [],
228-
version: '1.0.0',
228+
version: process.env.npm_package_version || '1.0.0',
229229
uptime : process.uptime()
230230
};
231231

0 commit comments

Comments
 (0)