@o3r/mcp 13.5.0-prerelease.9 → 13.5.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/package.json +27 -27
- package/src/mcp-server.d.ts +2 -2
- package/src/mcp-server.d.ts.map +1 -1
- package/src/mcp-server.js +6 -7
- package/src/mcp-server.js.map +1 -1
package/README.md
CHANGED
|
@@ -23,12 +23,17 @@ To add the Otter MCP server, you should first activate mcp with `"chat.mcp.enabl
|
|
|
23
23
|
|
|
24
24
|
Then, in your `.vscode/mcp.json` add
|
|
25
25
|
|
|
26
|
-
```
|
|
26
|
+
```json5
|
|
27
27
|
{
|
|
28
28
|
"Otter": {
|
|
29
29
|
"type": "stdio",
|
|
30
30
|
"command": "npx",
|
|
31
|
-
"args": ["-y", "-p", "@o3r/mcp", "o3r-mcp-start"]
|
|
31
|
+
"args": ["-y", "-p", "@o3r/mcp", "o3r-mcp-start"],
|
|
32
|
+
"env": {
|
|
33
|
+
// Help us improve Otter by setting this to true.
|
|
34
|
+
// More details on our privacy policy: https://github.com/AmadeusITGroup/otter/blob/main/PRIVACY.md
|
|
35
|
+
"O3R_METRICS": true
|
|
36
|
+
}
|
|
32
37
|
}
|
|
33
38
|
}
|
|
34
39
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/mcp",
|
|
3
|
-
"version": "13.5.0-
|
|
3
|
+
"version": "13.5.0-rc.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -22,35 +22,38 @@
|
|
|
22
22
|
"compile": "tsc -b ./tsconfig.build.json && yarn copy:resources && yarn cpy package.json dist && patch-package-json-main"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ama-mcp/angular": "^13.5.0-
|
|
26
|
-
"@ama-mcp/core": "^13.5.0-
|
|
27
|
-
"@ama-mcp/github": "^13.5.0-
|
|
28
|
-
"@ama-mcp/otter": "^13.5.0-
|
|
29
|
-
"@modelcontextprotocol/sdk": "~1.
|
|
25
|
+
"@ama-mcp/angular": "^13.5.0-rc.0",
|
|
26
|
+
"@ama-mcp/core": "^13.5.0-rc.0",
|
|
27
|
+
"@ama-mcp/github": "^13.5.0-rc.0",
|
|
28
|
+
"@ama-mcp/otter": "^13.5.0-rc.0",
|
|
29
|
+
"@modelcontextprotocol/sdk": "~1.24.0",
|
|
30
|
+
"@o3r/telemetry": "~13.5.0-rc.0",
|
|
30
31
|
"@octokit/rest": "~22.0.0",
|
|
31
32
|
"tslib": "^2.6.2",
|
|
32
|
-
"zod": "~
|
|
33
|
+
"zod": "~4.1.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@angular/
|
|
36
|
-
"@angular/
|
|
37
|
-
"@angular/
|
|
38
|
-
"@angular/
|
|
39
|
-
"@angular/
|
|
40
|
-
"@angular/
|
|
36
|
+
"@angular-devkit/architect": "0.2003.13",
|
|
37
|
+
"@angular-devkit/schematics": "~20.3.13",
|
|
38
|
+
"@angular/common": "~20.3.15",
|
|
39
|
+
"@angular/compiler": "~20.3.15",
|
|
40
|
+
"@angular/compiler-cli": "~20.3.15",
|
|
41
|
+
"@angular/core": "~20.3.15",
|
|
42
|
+
"@angular/platform-browser": "~20.3.15",
|
|
43
|
+
"@angular/platform-browser-dynamic": "~20.3.15",
|
|
41
44
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
42
45
|
"@nx/eslint": "~21.6.0",
|
|
43
46
|
"@nx/eslint-plugin": "~21.6.0",
|
|
44
47
|
"@nx/jest": "~21.6.0",
|
|
45
48
|
"@nx/js": "~21.6.0",
|
|
46
|
-
"@o3r/build-helpers": "~13.5.0-
|
|
47
|
-
"@o3r/eslint-config": "~13.5.0-
|
|
48
|
-
"@o3r/eslint-plugin": "~13.5.0-
|
|
49
|
-
"@o3r/test-helpers": "~13.5.0-
|
|
49
|
+
"@o3r/build-helpers": "~13.5.0-rc.0",
|
|
50
|
+
"@o3r/eslint-config": "~13.5.0-rc.0",
|
|
51
|
+
"@o3r/eslint-plugin": "~13.5.0-rc.0",
|
|
52
|
+
"@o3r/test-helpers": "~13.5.0-rc.0",
|
|
50
53
|
"@stylistic/eslint-plugin": "~5.6.0",
|
|
51
|
-
"@types/jest": "~
|
|
52
|
-
"@types/node": "~
|
|
53
|
-
"@typescript-eslint/parser": "~8.
|
|
54
|
+
"@types/jest": "~30.0.0",
|
|
55
|
+
"@types/node": "~24.10.0",
|
|
56
|
+
"@typescript-eslint/parser": "~8.49.0",
|
|
54
57
|
"angular-eslint": "~20.6.0",
|
|
55
58
|
"cpy-cli": "^6.0.0",
|
|
56
59
|
"eslint": "~9.39.0",
|
|
@@ -58,25 +61,22 @@
|
|
|
58
61
|
"eslint-import-resolver-typescript": "~4.4.0",
|
|
59
62
|
"eslint-plugin-import": "~2.32.0",
|
|
60
63
|
"eslint-plugin-import-newlines": "~1.4.0",
|
|
61
|
-
"eslint-plugin-jest": "~29.
|
|
64
|
+
"eslint-plugin-jest": "~29.2.0",
|
|
62
65
|
"eslint-plugin-jsdoc": "~54.7.0",
|
|
63
66
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
|
64
67
|
"eslint-plugin-unicorn": "~60.0.0",
|
|
65
68
|
"eslint-plugin-unused-imports": "~4.3.0",
|
|
66
69
|
"globals": "^16.0.0",
|
|
67
|
-
"jest": "~
|
|
68
|
-
"jest-environment-jsdom": "~29.7.0",
|
|
70
|
+
"jest": "~30.2.0",
|
|
69
71
|
"jest-junit": "~16.0.0",
|
|
70
|
-
"jest-
|
|
71
|
-
"jest-util": "~29.7.0",
|
|
72
|
+
"jest-util": "~30.2.0",
|
|
72
73
|
"jsonc-eslint-parser": "~2.4.0",
|
|
73
74
|
"nx": "~21.6.0",
|
|
74
75
|
"rxjs": "^7.8.1",
|
|
75
76
|
"ts-jest": "~29.4.0",
|
|
76
|
-
"ts-node": "~10.9.2",
|
|
77
77
|
"type-fest": "^4.30.1",
|
|
78
78
|
"typescript": "~5.9.2",
|
|
79
|
-
"typescript-eslint": "~8.
|
|
79
|
+
"typescript-eslint": "~8.49.0",
|
|
80
80
|
"zone.js": "~0.15.0"
|
|
81
81
|
},
|
|
82
82
|
"engines": {
|
package/src/mcp-server.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { MCPLogger } from '@ama-mcp/core';
|
|
2
|
-
import {
|
|
2
|
+
import { AmaMcpServer } from '@ama-mcp/core';
|
|
3
3
|
/**
|
|
4
4
|
* Create an MCP server instance.
|
|
5
5
|
* @param logger
|
|
6
6
|
*/
|
|
7
|
-
export declare function createMcpServer(logger: MCPLogger): Promise<
|
|
7
|
+
export declare function createMcpServer(logger: MCPLogger): Promise<AmaMcpServer>;
|
|
8
8
|
//# sourceMappingURL=mcp-server.d.ts.map
|
package/src/mcp-server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../src/mcp-server.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,SAAS,EACV,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../src/mcp-server.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EACb,MAAM,eAAe,CAAC;AAuBvB;;;GAGG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,CAkD9E"}
|
package/src/mcp-server.js
CHANGED
|
@@ -4,9 +4,10 @@ exports.createMcpServer = createMcpServer;
|
|
|
4
4
|
const promises_1 = require("node:fs/promises");
|
|
5
5
|
const node_path_1 = require("node:path");
|
|
6
6
|
const angular_1 = require("@ama-mcp/angular");
|
|
7
|
+
const core_1 = require("@ama-mcp/core");
|
|
7
8
|
const github_1 = require("@ama-mcp/github");
|
|
8
9
|
const otter_1 = require("@ama-mcp/otter");
|
|
9
|
-
const
|
|
10
|
+
const telemetry_1 = require("@o3r/telemetry");
|
|
10
11
|
const best_practices_1 = require("./best-practices");
|
|
11
12
|
const create_monorepo_with_app_1 = require("./create-monorepo-with-app");
|
|
12
13
|
/**
|
|
@@ -15,17 +16,14 @@ const create_monorepo_with_app_1 = require("./create-monorepo-with-app");
|
|
|
15
16
|
*/
|
|
16
17
|
async function createMcpServer(logger) {
|
|
17
18
|
const { name, version } = JSON.parse(await (0, promises_1.readFile)((0, node_path_1.join)(__dirname, '..', 'package.json'), 'utf8'));
|
|
18
|
-
const server = new
|
|
19
|
+
const server = new core_1.AmaMcpServer(logger, {
|
|
19
20
|
name,
|
|
20
|
-
version
|
|
21
|
-
capabilities: {
|
|
22
|
-
resources: {},
|
|
23
|
-
tools: {}
|
|
24
|
-
}
|
|
21
|
+
version
|
|
25
22
|
});
|
|
26
23
|
const resourcesPath = (0, node_path_1.join)(__dirname, '..', 'resources');
|
|
27
24
|
const githubToken = process.env.O3R_MCP_GITHUB_TOKEN;
|
|
28
25
|
const cacheDirPath = process.env.O3R_MCP_CACHE_PATH || '.cache/@o3r/mcp';
|
|
26
|
+
void (0, telemetry_1.sendGenAIEventMetricsIfAuthorized)(name, 'registrationStart', { logger });
|
|
29
27
|
await Promise.allSettled([
|
|
30
28
|
(0, best_practices_1.registerBestPracticesToolAndResources)(server, resourcesPath),
|
|
31
29
|
(0, create_monorepo_with_app_1.registerCreateMonorepoWithAppTool)(server, resourcesPath),
|
|
@@ -57,6 +55,7 @@ async function createMcpServer(logger) {
|
|
|
57
55
|
() => logger.error('Missing O3R_MCP_GITHUB_TOKEN environment variable for github tools')
|
|
58
56
|
])
|
|
59
57
|
]);
|
|
58
|
+
void (0, telemetry_1.sendGenAIEventMetricsIfAuthorized)(name, 'registrationEnd', { logger });
|
|
60
59
|
return server;
|
|
61
60
|
}
|
|
62
61
|
//# sourceMappingURL=mcp-server.js.map
|
package/src/mcp-server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../../src/mcp-server.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../../src/mcp-server.ts"],"names":[],"mappings":";;AA0CA,0CAkDC;AA5FD,+CAE0B;AAC1B,yCAGmB;AACnB,8CAE0B;AAI1B,wCAEuB;AACvB,4CAIyB;AACzB,0CAMwB;AACxB,8CAEwB;AACxB,qDAE0B;AAC1B,yEAEoC;AAEpC;;;GAGG;AACI,KAAK,UAAU,eAAe,CAAC,MAAiB;IACrD,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,IAAA,mBAAQ,EAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CAAsC,CAAC;IACzI,MAAM,MAAM,GAAG,IAAI,mBAAY,CAC7B,MAAM,EACN;QACE,IAAI;QACJ,OAAO;KACR,CACF,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,gBAAI,EAAC,SAAS,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;IACzD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC;IACrD,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,iBAAiB,CAAC;IAEzE,KAAK,IAAA,6CAAiC,EAAC,IAAI,EAAE,mBAAmB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAE9E,MAAM,OAAO,CAAC,UAAU,CAAC;QACvB,IAAA,sDAAqC,EAAC,MAAM,EAAE,aAAa,CAAC;QAC5D,IAAA,4DAAiC,EAAC,MAAM,EAAE,aAAa,CAAC;QACxD,OAAO,CAAC,OAAO,CAAC,IAAA,uCAA6B,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