@kya-os/mcp-i-core 1.3.16 → 1.3.18

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.
@@ -116,6 +116,7 @@ export declare class MCPIRuntimeBase {
116
116
  * - session_id (not sessionId)
117
117
  * - agent_did (not agentDid)
118
118
  * - resume_token (not resumeToken)
119
+ * - agent_name (human-readable agent name for dashboard display)
119
120
  *
120
121
  * @param toolName - Tool that requires delegation
121
122
  * @param scopes - Required scopes for the tool
@@ -621,6 +621,7 @@ class MCPIRuntimeBase {
621
621
  * - session_id (not sessionId)
622
622
  * - agent_did (not agentDid)
623
623
  * - resume_token (not resumeToken)
624
+ * - agent_name (human-readable agent name for dashboard display)
624
625
  *
625
626
  * @param toolName - Tool that requires delegation
626
627
  * @param scopes - Required scopes for the tool
@@ -640,6 +641,12 @@ class MCPIRuntimeBase {
640
641
  session_id: session?.id || "",
641
642
  agent_did: session?.agentDid || "",
642
643
  });
644
+ // Add agent_name for AgentShield dashboard display
645
+ // Priority: session.agentName > "Unknown Agent"
646
+ const agentName = session?.agentName;
647
+ if (agentName) {
648
+ params.set("agent_name", agentName);
649
+ }
643
650
  // Add project_id if provided (required for AgentShield consent endpoint)
644
651
  if (projectId) {
645
652
  params.set("project_id", projectId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/mcp-i-core",
3
- "version": "1.3.16",
3
+ "version": "1.3.18",
4
4
  "description": "Core runtime and types for MCP-I framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "prepublishOnly": "npm run build && node ../create-mcpi-app/scripts/validate-no-workspace.js"
29
29
  },
30
30
  "dependencies": {
31
- "@kya-os/contracts": "^1.6.9",
31
+ "@kya-os/contracts": "^1.6.12",
32
32
  "jose": "^5.6.3",
33
33
  "json-canonicalize": "^2.0.0",
34
34
  "zod": "^3.25.76"