@microsoft/agents-a365-tooling-extensions-claude 0.1.0-preview.63 → 0.1.0-preview.83
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/LICENSE.md +21 -0
- package/dist/cjs/McpToolRegistrationService.d.ts +1 -0
- package/dist/cjs/McpToolRegistrationService.d.ts.map +1 -1
- package/dist/cjs/McpToolRegistrationService.js +4 -6
- package/dist/cjs/McpToolRegistrationService.js.map +1 -1
- package/dist/esm/McpToolRegistrationService.d.ts +1 -0
- package/dist/esm/McpToolRegistrationService.d.ts.map +1 -1
- package/dist/esm/McpToolRegistrationService.js +4 -6
- package/dist/esm/McpToolRegistrationService.js.map +1 -1
- package/package.json +32 -33
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Microsoft
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -6,6 +6,7 @@ import type { Options } from '@anthropic-ai/claude-agent-sdk';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class McpToolRegistrationService {
|
|
8
8
|
private readonly configService;
|
|
9
|
+
private readonly orchestratorName;
|
|
9
10
|
/**
|
|
10
11
|
* Registers MCP tool servers and updates agent options with discovered tools and server configs.
|
|
11
12
|
* Call this to enable dynamic Claude tool access.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpToolRegistrationService.d.ts","sourceRoot":"","sources":["../../src/McpToolRegistrationService.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAGvE,OAAO,KAAK,EAAmB,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE/E;;;GAGG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA8E;
|
|
1
|
+
{"version":3,"file":"McpToolRegistrationService.d.ts","sourceRoot":"","sources":["../../src/McpToolRegistrationService.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAGvE,OAAO,KAAK,EAAmB,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE/E;;;GAGG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA8E;IAC5G,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAoB;IAErD;;;;;;;;OAQG;IACG,qBAAqB,CACzB,YAAY,EAAE,OAAO,EACrB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC;CAoDjB"}
|
|
@@ -12,6 +12,7 @@ const agents_a365_runtime_1 = require("@microsoft/agents-a365-runtime");
|
|
|
12
12
|
class McpToolRegistrationService {
|
|
13
13
|
constructor() {
|
|
14
14
|
this.configService = new agents_a365_tooling_1.McpToolServerConfigurationService();
|
|
15
|
+
this.orchestratorName = "Claude";
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
* Registers MCP tool servers and updates agent options with discovered tools and server configs.
|
|
@@ -32,15 +33,12 @@ class McpToolRegistrationService {
|
|
|
32
33
|
// Validate the authentication token
|
|
33
34
|
agents_a365_tooling_1.Utility.ValidateAuthToken(authToken);
|
|
34
35
|
const agenticAppId = agents_a365_runtime_1.Utility.ResolveAgentIdentity(turnContext, authToken);
|
|
35
|
-
const
|
|
36
|
+
const options = { orchestratorName: this.orchestratorName };
|
|
37
|
+
const servers = await this.configService.listToolServers(agenticAppId, authToken, options);
|
|
36
38
|
const mcpServers = {};
|
|
37
39
|
const tools = [];
|
|
38
40
|
for (const server of servers) {
|
|
39
|
-
|
|
40
|
-
const headers = {};
|
|
41
|
-
if (authToken) {
|
|
42
|
-
headers['Authorization'] = `Bearer ${authToken}`;
|
|
43
|
-
}
|
|
41
|
+
const headers = agents_a365_tooling_1.Utility.GetToolRequestHeaders(authToken, turnContext, options);
|
|
44
42
|
// Add each server to the config object
|
|
45
43
|
mcpServers[server.mcpServerName] = {
|
|
46
44
|
type: 'http',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpToolRegistrationService.js","sourceRoot":"","sources":["../../src/McpToolRegistrationService.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,
|
|
1
|
+
{"version":3,"file":"McpToolRegistrationService.js","sourceRoot":"","sources":["../../src/McpToolRegistrationService.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wEAAyI;AACzI,wEAAyG;AAQzG;;;GAGG;AACH,MAAa,0BAA0B;IAA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,CAC1D,MAAM,CAAC,aAAa,EACpB;gBACE,GAAG,EAAE,MAAM,CAAC,GAAG;gBACf,OAAO,EAAE,OAAO;aACE,CACrB,CAAC;YAEF,sEAAsE;YACtE,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,IAAmB,EAAE,EAAE,CAAC,CAAC;gBACtD,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC,aAAa,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI;gBACvD,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;aAC9B,CAAC,CAAoB,CAAC;YAEvB,KAAK,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;QAC7B,CAAC;QAED,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC,YAAY,IAAI,EAAE,CAAC;QAC5D,YAAY,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAE1D,YAAY,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,UAAU,IAAI,EAAE,EAAE,UAAU,CAAC,CAAC;IACrF,CAAC;CACF;AAvED,gEAuEC"}
|
|
@@ -6,6 +6,7 @@ import type { Options } from '@anthropic-ai/claude-agent-sdk';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class McpToolRegistrationService {
|
|
8
8
|
private readonly configService;
|
|
9
|
+
private readonly orchestratorName;
|
|
9
10
|
/**
|
|
10
11
|
* Registers MCP tool servers and updates agent options with discovered tools and server configs.
|
|
11
12
|
* Call this to enable dynamic Claude tool access.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpToolRegistrationService.d.ts","sourceRoot":"","sources":["../../src/McpToolRegistrationService.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAGvE,OAAO,KAAK,EAAmB,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE/E;;;GAGG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA8E;
|
|
1
|
+
{"version":3,"file":"McpToolRegistrationService.d.ts","sourceRoot":"","sources":["../../src/McpToolRegistrationService.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAGvE,OAAO,KAAK,EAAmB,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE/E;;;GAGG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA8E;IAC5G,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAoB;IAErD;;;;;;;;OAQG;IACG,qBAAqB,CACzB,YAAY,EAAE,OAAO,EACrB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC;CAoDjB"}
|
|
@@ -9,6 +9,7 @@ import { AgenticAuthenticationService, Utility as RuntimeUtility } from '@micros
|
|
|
9
9
|
export class McpToolRegistrationService {
|
|
10
10
|
constructor() {
|
|
11
11
|
this.configService = new McpToolServerConfigurationService();
|
|
12
|
+
this.orchestratorName = "Claude";
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* Registers MCP tool servers and updates agent options with discovered tools and server configs.
|
|
@@ -29,15 +30,12 @@ export class McpToolRegistrationService {
|
|
|
29
30
|
// Validate the authentication token
|
|
30
31
|
Utility.ValidateAuthToken(authToken);
|
|
31
32
|
const agenticAppId = RuntimeUtility.ResolveAgentIdentity(turnContext, authToken);
|
|
32
|
-
const
|
|
33
|
+
const options = { orchestratorName: this.orchestratorName };
|
|
34
|
+
const servers = await this.configService.listToolServers(agenticAppId, authToken, options);
|
|
33
35
|
const mcpServers = {};
|
|
34
36
|
const tools = [];
|
|
35
37
|
for (const server of servers) {
|
|
36
|
-
|
|
37
|
-
const headers = {};
|
|
38
|
-
if (authToken) {
|
|
39
|
-
headers['Authorization'] = `Bearer ${authToken}`;
|
|
40
|
-
}
|
|
38
|
+
const headers = Utility.GetToolRequestHeaders(authToken, turnContext, options);
|
|
41
39
|
// Add each server to the config object
|
|
42
40
|
mcpServers[server.mcpServerName] = {
|
|
43
41
|
type: 'http',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpToolRegistrationService.js","sourceRoot":"","sources":["../../src/McpToolRegistrationService.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,iCAAiC,EAAiB,OAAO,
|
|
1
|
+
{"version":3,"file":"McpToolRegistrationService.js","sourceRoot":"","sources":["../../src/McpToolRegistrationService.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,iCAAiC,EAAiB,OAAO,EAAgC,MAAM,gCAAgC,CAAC;AACzI,OAAO,EAAE,4BAA4B,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAQzG;;;GAGG;AACH,MAAM,OAAO,0BAA0B;IAAvC;QACmB,kBAAa,GAAsC,IAAI,iCAAiC,EAAE,CAAC;QAC3F,qBAAgB,GAAW,QAAQ,CAAC;IAqEvD,CAAC;IAnEC;;;;;;;;OAQG;IACH,KAAK,CAAC,qBAAqB,CACzB,YAAqB,EACrB,aAA4B,EAC5B,eAAuB,EACvB,WAAwB,EACxB,SAAiB;QAGjB,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,SAAS,GAAG,MAAM,4BAA4B,CAAC,mBAAmB,CAAC,aAAa,EAAE,eAAe,EAAE,WAAW,CAAC,CAAC;QAClH,CAAC;QAED,oC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AY,CAAC,YAAY,GAAG,YAAY,CAAC,YAAY,IAAI,EAAE,CAAC;QAC5D,YAAY,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAE1D,YAAY,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,UAAU,IAAI,EAAE,EAAE,UAAU,CAAC,CAAC;IACrF,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,24 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/agents-a365-tooling-extensions-claude",
|
|
3
|
-
"version": "0.1.0-preview.
|
|
3
|
+
"version": "0.1.0-preview.83",
|
|
4
4
|
"description": "Agent 365 Tooling SDK for Claude for AI agents built with TypeScript/Node.js",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/esm/index.d.ts",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build:cjs": "npx tsc --project tsconfig.cjs.json",
|
|
10
|
-
"build:esm": "npx tsc --project tsconfig.esm.json",
|
|
11
|
-
"build": "npm run build:cjs && npm run build:esm",
|
|
12
|
-
"build:watch": "npx tsc --watch",
|
|
13
|
-
"clean": "npx rimraf dist",
|
|
14
|
-
"test": "jest --passWithNoTests",
|
|
15
|
-
"test:watch": "jest --watch",
|
|
16
|
-
"lint": "eslint src/**/*.ts",
|
|
17
|
-
"lint:fix": "eslint src/**/*.ts --fix",
|
|
18
|
-
"prepublishOnly": "npm run clean && npm run build",
|
|
19
|
-
"ci": "npm ci",
|
|
20
|
-
"pack": "node ../../copyFiles.js . && pnpm pack --pack-destination=../"
|
|
21
|
-
},
|
|
22
8
|
"keywords": [
|
|
23
9
|
"ai",
|
|
24
10
|
"agents",
|
|
@@ -34,24 +20,24 @@
|
|
|
34
20
|
"directory": "packages/agents-a365-tooling-extensions-claude"
|
|
35
21
|
},
|
|
36
22
|
"dependencies": {
|
|
37
|
-
"@anthropic-ai/claude-agent-sdk": "
|
|
38
|
-
"@microsoft/agents-a365-runtime": "0.1.0-preview.
|
|
39
|
-
"@microsoft/agents-a365-tooling": "0.1.0-preview.
|
|
40
|
-
"@microsoft/agents-hosting": "
|
|
41
|
-
"@modelcontextprotocol/sdk": "
|
|
23
|
+
"@anthropic-ai/claude-agent-sdk": "^0.1.30",
|
|
24
|
+
"@microsoft/agents-a365-runtime": "0.1.0-preview.83",
|
|
25
|
+
"@microsoft/agents-a365-tooling": "0.1.0-preview.83",
|
|
26
|
+
"@microsoft/agents-hosting": "^1.1.0-alpha.85",
|
|
27
|
+
"@modelcontextprotocol/sdk": "^1.25.2"
|
|
42
28
|
},
|
|
43
29
|
"devDependencies": {
|
|
44
|
-
"@eslint/js": "
|
|
45
|
-
"@types/jest": "
|
|
46
|
-
"@types/node": "
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "
|
|
48
|
-
"@typescript-eslint/parser": "
|
|
49
|
-
"eslint": "
|
|
50
|
-
"jest": "
|
|
51
|
-
"rimraf": "
|
|
52
|
-
"ts-jest": "
|
|
53
|
-
"typescript": "
|
|
54
|
-
"typescript-eslint": "
|
|
30
|
+
"@eslint/js": "^9.39.1",
|
|
31
|
+
"@types/jest": "^30.0.0",
|
|
32
|
+
"@types/node": "^20.17.0",
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "^8.47.0",
|
|
34
|
+
"@typescript-eslint/parser": "^8.47.0",
|
|
35
|
+
"eslint": "^9.39.1",
|
|
36
|
+
"jest": "^30.2.0",
|
|
37
|
+
"rimraf": "^6.0.0",
|
|
38
|
+
"ts-jest": "^29.4.5",
|
|
39
|
+
"typescript": "^5.9.3",
|
|
40
|
+
"typescript-eslint": "^8.47.0"
|
|
55
41
|
},
|
|
56
42
|
"engines": {
|
|
57
43
|
"node": ">=18.0.0"
|
|
@@ -61,5 +47,18 @@
|
|
|
61
47
|
"README.md",
|
|
62
48
|
"CHANGELOG.md",
|
|
63
49
|
"LICENSE.md"
|
|
64
|
-
]
|
|
65
|
-
|
|
50
|
+
],
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build:cjs": "npx tsc --project tsconfig.cjs.json",
|
|
53
|
+
"build:esm": "npx tsc --project tsconfig.esm.json",
|
|
54
|
+
"build": "npm run build:cjs && npm run build:esm",
|
|
55
|
+
"build:watch": "npx tsc --watch",
|
|
56
|
+
"clean": "npx rimraf dist",
|
|
57
|
+
"test": "jest --passWithNoTests",
|
|
58
|
+
"test:watch": "jest --watch",
|
|
59
|
+
"lint": "eslint src/**/*.ts",
|
|
60
|
+
"lint:fix": "eslint src/**/*.ts --fix",
|
|
61
|
+
"ci": "npm ci",
|
|
62
|
+
"pack": "node ../../copyFiles.js . && pnpm pack --pack-destination=../"
|
|
63
|
+
}
|
|
64
|
+
}
|