@microsoft/agents-a365-tooling-extensions-claude 0.1.0-preview.64 → 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/dist/cjs/McpToolRegistrationService.d.ts +1 -0
- package/dist/cjs/McpToolRegistrationService.d.ts.map +1 -1
- package/dist/cjs/McpToolRegistrationService.js +4 -2
- 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 -2
- package/dist/esm/McpToolRegistrationService.js.map +1 -1
- package/package.json +4 -4
|
@@ -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,11 +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
|
-
const headers = agents_a365_tooling_1.Utility.GetToolRequestHeaders(authToken, turnContext);
|
|
41
|
+
const headers = agents_a365_tooling_1.Utility.GetToolRequestHeaders(authToken, turnContext, options);
|
|
40
42
|
// Add each server to the config object
|
|
41
43
|
mcpServers[server.mcpServerName] = {
|
|
42
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;IAAvC;QACmB,kBAAa,GAAsC,IAAI,uDAAiC,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,kDAA4B,CAAC,mBAAmB,CAAC,aAAa,EAAE,eAAe,EAAE,WAAW,CAAC,CAAC;QAClH,CAAC;QAED,oCAAoC;QACpC,6BAAO,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;QAErC,MAAM,YAAY,GAAG,6BAAc,CAAC,oBAAoB,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QACjF,MAAM,OAAO,GAAgB,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACzE,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC3F,MAAM,UAAU,GAAoC,EAAE,CAAC;QACvD,MAAM,KAAK,GAAoB,EAAE,CAAC;QAElC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,MAAM,OAAO,GAA2B,6BAAO,CAAC,qBAAqB,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YAEvG,uCAAuC;YACvC,UAAU,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG;gBACjC,IAAI,EAAE,MAAM;gBACZ,GAAG,EAAE,MAAM,CAAC,GAAG;gBACf,OAAO,EAAE,OAAO;aACE,CAAC;YAErB,IAAI,WAAW,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,iBAAiB,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,11 +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
|
-
const headers = Utility.GetToolRequestHeaders(authToken, turnContext);
|
|
38
|
+
const headers = Utility.GetToolRequestHeaders(authToken, turnContext, options);
|
|
37
39
|
// Add each server to the config object
|
|
38
40
|
mcpServers[server.mcpServerName] = {
|
|
39
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,I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G,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@anthropic-ai/claude-agent-sdk": "^0.1.30",
|
|
24
|
-
"@microsoft/agents-a365-runtime": "0.1.0-preview.
|
|
25
|
-
"@microsoft/agents-a365-tooling": "0.1.0-preview.
|
|
24
|
+
"@microsoft/agents-a365-runtime": "0.1.0-preview.83",
|
|
25
|
+
"@microsoft/agents-a365-tooling": "0.1.0-preview.83",
|
|
26
26
|
"@microsoft/agents-hosting": "^1.1.0-alpha.85",
|
|
27
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
27
|
+
"@modelcontextprotocol/sdk": "^1.25.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@eslint/js": "^9.39.1",
|