@inkeep/agents-run-api 0.0.0-dev-20250911192304 → 0.0.0-dev-20250911195722
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/index.cjs +12 -3
- package/dist/index.js +12 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5516,6 +5516,11 @@ var Agent = class {
|
|
|
5516
5516
|
}
|
|
5517
5517
|
async getMcpTool(tool4) {
|
|
5518
5518
|
const credentialReferenceId = tool4.credentialReferenceId;
|
|
5519
|
+
const toolsForAgent = await agentsCore.getToolsForAgent(dbClient_default)({
|
|
5520
|
+
scopes: { tenantId: this.config.tenantId, projectId: this.config.projectId },
|
|
5521
|
+
agentId: this.config.id
|
|
5522
|
+
});
|
|
5523
|
+
const selectedTools = toolsForAgent.data.find((t) => t.toolId === tool4.id)?.selectedTools || void 0;
|
|
5519
5524
|
let serverConfig;
|
|
5520
5525
|
if (credentialReferenceId && this.credentialStuffer) {
|
|
5521
5526
|
const credentialReference = await agentsCore.getCredentialReference(dbClient_default)({
|
|
@@ -5540,7 +5545,8 @@ var Agent = class {
|
|
|
5540
5545
|
conversationId: this.conversationId || void 0
|
|
5541
5546
|
},
|
|
5542
5547
|
this.convertToMCPToolConfig(tool4),
|
|
5543
|
-
storeReference
|
|
5548
|
+
storeReference,
|
|
5549
|
+
selectedTools
|
|
5544
5550
|
);
|
|
5545
5551
|
} else if (tool4.headers && this.credentialStuffer) {
|
|
5546
5552
|
serverConfig = await this.credentialStuffer.buildMcpServerConfig(
|
|
@@ -5550,13 +5556,16 @@ var Agent = class {
|
|
|
5550
5556
|
contextConfigId: this.config.contextConfigId || void 0,
|
|
5551
5557
|
conversationId: this.conversationId || void 0
|
|
5552
5558
|
},
|
|
5553
|
-
this.convertToMCPToolConfig(tool4)
|
|
5559
|
+
this.convertToMCPToolConfig(tool4),
|
|
5560
|
+
void 0,
|
|
5561
|
+
selectedTools
|
|
5554
5562
|
);
|
|
5555
5563
|
} else {
|
|
5556
5564
|
serverConfig = {
|
|
5557
5565
|
type: tool4.config.mcp.transport?.type || agentsCore.MCPTransportType.streamableHttp,
|
|
5558
5566
|
url: tool4.config.mcp.server.url,
|
|
5559
|
-
activeTools: tool4.config.mcp.activeTools
|
|
5567
|
+
activeTools: tool4.config.mcp.activeTools,
|
|
5568
|
+
selectedTools
|
|
5560
5569
|
};
|
|
5561
5570
|
}
|
|
5562
5571
|
logger16.info(
|
package/dist/index.js
CHANGED
|
@@ -5110,6 +5110,11 @@ var Agent = class {
|
|
|
5110
5110
|
}
|
|
5111
5111
|
async getMcpTool(tool4) {
|
|
5112
5112
|
const credentialReferenceId = tool4.credentialReferenceId;
|
|
5113
|
+
const toolsForAgent = await getToolsForAgent(dbClient_default)({
|
|
5114
|
+
scopes: { tenantId: this.config.tenantId, projectId: this.config.projectId },
|
|
5115
|
+
agentId: this.config.id
|
|
5116
|
+
});
|
|
5117
|
+
const selectedTools = toolsForAgent.data.find((t) => t.toolId === tool4.id)?.selectedTools || void 0;
|
|
5113
5118
|
let serverConfig;
|
|
5114
5119
|
if (credentialReferenceId && this.credentialStuffer) {
|
|
5115
5120
|
const credentialReference = await getCredentialReference(dbClient_default)({
|
|
@@ -5134,7 +5139,8 @@ var Agent = class {
|
|
|
5134
5139
|
conversationId: this.conversationId || void 0
|
|
5135
5140
|
},
|
|
5136
5141
|
this.convertToMCPToolConfig(tool4),
|
|
5137
|
-
storeReference
|
|
5142
|
+
storeReference,
|
|
5143
|
+
selectedTools
|
|
5138
5144
|
);
|
|
5139
5145
|
} else if (tool4.headers && this.credentialStuffer) {
|
|
5140
5146
|
serverConfig = await this.credentialStuffer.buildMcpServerConfig(
|
|
@@ -5144,13 +5150,16 @@ var Agent = class {
|
|
|
5144
5150
|
contextConfigId: this.config.contextConfigId || void 0,
|
|
5145
5151
|
conversationId: this.conversationId || void 0
|
|
5146
5152
|
},
|
|
5147
|
-
this.convertToMCPToolConfig(tool4)
|
|
5153
|
+
this.convertToMCPToolConfig(tool4),
|
|
5154
|
+
void 0,
|
|
5155
|
+
selectedTools
|
|
5148
5156
|
);
|
|
5149
5157
|
} else {
|
|
5150
5158
|
serverConfig = {
|
|
5151
5159
|
type: tool4.config.mcp.transport?.type || MCPTransportType.streamableHttp,
|
|
5152
5160
|
url: tool4.config.mcp.server.url,
|
|
5153
|
-
activeTools: tool4.config.mcp.activeTools
|
|
5161
|
+
activeTools: tool4.config.mcp.activeTools,
|
|
5162
|
+
selectedTools
|
|
5154
5163
|
};
|
|
5155
5164
|
}
|
|
5156
5165
|
logger16.info(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-run-api",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20250911195722",
|
|
4
4
|
"description": "Execution API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"traverse": "^0.6.11",
|
|
45
45
|
"ts-pattern": "^5.7.1",
|
|
46
46
|
"zod": "^4.1.5",
|
|
47
|
-
"@inkeep/agents-core": "^0.0.0-dev-
|
|
47
|
+
"@inkeep/agents-core": "^0.0.0-dev-20250911195722"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@hono/vite-dev-server": "^0.20.1",
|