agent-passport-system-mcp 8.1.0 → 8.1.1

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 CHANGED
@@ -12,7 +12,7 @@ Enforcement and accountability layer for AI agents. Bring your own identity. 154
12
12
  npx agent-passport-system-mcp
13
13
  ```
14
14
 
15
- agent-passport-system-mcp 8.1.0, 8.0.0 and 7.0.0 target SDK 8.x. The 6.x line targets SDK 6.x, and 5.0.2 targets SDK 5.x.
15
+ agent-passport-system-mcp 8.1.1, 8.1.0, 8.0.0 and 7.0.0 target SDK 8.x. The 6.x line targets SDK 6.x, and 5.0.2 targets SDK 5.x.
16
16
 
17
17
  The default profile is `full`, all 154 tools. Set `APS_PROFILE=essential` for a 28-tool slim profile covering the primitives most integrations need (identity, delegation, enforcement, commerce, reputation). The count is what `tools/list` returns and includes `list_profiles`, which every profile exposes.
18
18
 
package/build/index.js CHANGED
@@ -758,11 +758,14 @@ export const TOOL_SCOPE_MAP = {
758
758
  // TOOL: list_profiles
759
759
  // ═══════════════════════════════════════
760
760
  server.registerTool("list_profiles", { description: "Show available tool profiles. Set APS_PROFILE env var to limit exposed tools (e.g. APS_PROFILE=data).", inputSchema: z.object({}) }, async () => {
761
- const lines = Object.entries(TOOL_PROFILES).map(([name, tools]) => `• ${name} (${tools.size} tools): ${Array.from(tools).slice(0, 6).join(', ')}${tools.size > 6 ? '...' : ''}`);
762
- const essentialSize = TOOL_PROFILES.essential.size;
761
+ // list_profiles is exposed under every profile (see the filter above), so a
762
+ // profile that does not name it still presents it.
763
+ const exposed = (tools) => tools.size + (tools.has('list_profiles') ? 0 : 1);
764
+ const lines = Object.entries(TOOL_PROFILES).map(([name, tools]) => `• ${name} (${exposed(tools)} tools): ${Array.from(tools).slice(0, 6).join(', ')}${tools.size > 6 ? '...' : ''}`);
765
+ const essentialSize = exposed(TOOL_PROFILES.essential);
763
766
  // Generated count, never a literal. See src/toolManifest.ts.
764
767
  const total = toolCount(REGISTERED_TOOL_NAMES.length);
765
- return { content: [{ type: "text", text: `📋 Tool Profiles (set APS_PROFILE env var):\n\nActive: ${activeProfile} (${activeProfile === 'full' ? total : profileFilter?.size || total} tools)\n\nRecommended: essential (${essentialSize} tools) - identity, delegation, enforcement, commerce, reputation.\n\n${lines.join('\n')}\n\n• full (${total} tools): All tools exposed (default)` }] };
768
+ return { content: [{ type: "text", text: `📋 Tool Profiles (set APS_PROFILE env var):\n\nActive: ${activeProfile} (${activeProfile === 'full' || !profileFilter ? total : exposed(profileFilter)} tools)\n\nRecommended: essential (${essentialSize} tools) - identity, delegation, enforcement, commerce, reputation.\n\n${lines.join('\n')}\n\n• full (${total} tools): All tools exposed (default)` }] };
766
769
  });
767
770
  // ═══════════════════════════════════════
768
771
  // TOOL: list_tools_for_scope (Primitive #9: Tool Pool Assembly)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-passport-system-mcp",
3
- "version": "8.1.0",
3
+ "version": "8.1.1",
4
4
  "mcpName": "io.github.agent-passport-system/agent-passport-mcp",
5
5
  "description": "MCP server for the Agent Passport System, protocol-layer tools only. Identity, delegation, reputation, attestation, coordination, commerce, charter amendment lifecycle, attribution. Counts and the SDK version it tracks live in the README.",
6
6
  "type": "module",
@@ -51,9 +51,9 @@
51
51
  },
52
52
  "homepage": "https://github.com/agent-passport-system/agent-passport-mcp",
53
53
  "dependencies": {
54
- "@modelcontextprotocol/server": "2.0.0",
54
+ "@modelcontextprotocol/server": "2.3.1",
55
55
  "agent-passport-system": "^8.0.0",
56
- "zod": "^4.2.0"
56
+ "zod": "^4.6.6"
57
57
  },
58
58
  "overrides": {
59
59
  "fast-uri": ">=3.1.2",