@agledger/mcp-server 1.2.0
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 +34 -0
- package/README.md +81 -0
- package/dist/enums.d.ts +108 -0
- package/dist/enums.d.ts.map +1 -0
- package/dist/enums.js +42 -0
- package/dist/enums.js.map +1 -0
- package/dist/errors.d.ts +5 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +42 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +91 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/contract-types.d.ts +5 -0
- package/dist/resources/contract-types.d.ts.map +1 -0
- package/dist/resources/contract-types.js +107 -0
- package/dist/resources/contract-types.js.map +1 -0
- package/dist/server.d.ts +21 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +116 -0
- package/dist/server.js.map +1 -0
- package/dist/tool-scopes.d.ts +23 -0
- package/dist/tool-scopes.d.ts.map +1 -0
- package/dist/tool-scopes.js +173 -0
- package/dist/tool-scopes.js.map +1 -0
- package/dist/tools/a2a.d.ts +9 -0
- package/dist/tools/a2a.d.ts.map +1 -0
- package/dist/tools/a2a.js +492 -0
- package/dist/tools/a2a.js.map +1 -0
- package/dist/tools/agent-mandates.d.ts +5 -0
- package/dist/tools/agent-mandates.d.ts.map +1 -0
- package/dist/tools/agent-mandates.js +296 -0
- package/dist/tools/agent-mandates.js.map +1 -0
- package/dist/tools/agents-refs.d.ts +5 -0
- package/dist/tools/agents-refs.d.ts.map +1 -0
- package/dist/tools/agents-refs.js +255 -0
- package/dist/tools/agents-refs.js.map +1 -0
- package/dist/tools/capabilities.d.ts +5 -0
- package/dist/tools/capabilities.d.ts.map +1 -0
- package/dist/tools/capabilities.js +69 -0
- package/dist/tools/capabilities.js.map +1 -0
- package/dist/tools/code-mode.d.ts +5 -0
- package/dist/tools/code-mode.d.ts.map +1 -0
- package/dist/tools/code-mode.js +426 -0
- package/dist/tools/code-mode.js.map +1 -0
- package/dist/tools/compliance.d.ts +5 -0
- package/dist/tools/compliance.d.ts.map +1 -0
- package/dist/tools/compliance.js +73 -0
- package/dist/tools/compliance.js.map +1 -0
- package/dist/tools/dashboard.d.ts +5 -0
- package/dist/tools/dashboard.d.ts.map +1 -0
- package/dist/tools/dashboard.js +67 -0
- package/dist/tools/dashboard.js.map +1 -0
- package/dist/tools/disputes.d.ts +5 -0
- package/dist/tools/disputes.d.ts.map +1 -0
- package/dist/tools/disputes.js +140 -0
- package/dist/tools/disputes.js.map +1 -0
- package/dist/tools/enterprises.d.ts +5 -0
- package/dist/tools/enterprises.d.ts.map +1 -0
- package/dist/tools/enterprises.js +212 -0
- package/dist/tools/enterprises.js.map +1 -0
- package/dist/tools/events.d.ts +5 -0
- package/dist/tools/events.d.ts.map +1 -0
- package/dist/tools/events.js +48 -0
- package/dist/tools/events.js.map +1 -0
- package/dist/tools/federation-admin.d.ts +5 -0
- package/dist/tools/federation-admin.d.ts.map +1 -0
- package/dist/tools/federation-admin.js +824 -0
- package/dist/tools/federation-admin.js.map +1 -0
- package/dist/tools/federation.d.ts +5 -0
- package/dist/tools/federation.d.ts.map +1 -0
- package/dist/tools/federation.js +703 -0
- package/dist/tools/federation.js.map +1 -0
- package/dist/tools/health.d.ts +5 -0
- package/dist/tools/health.d.ts.map +1 -0
- package/dist/tools/health.js +39 -0
- package/dist/tools/health.js.map +1 -0
- package/dist/tools/mandates.d.ts +5 -0
- package/dist/tools/mandates.d.ts.map +1 -0
- package/dist/tools/mandates.js +350 -0
- package/dist/tools/mandates.js.map +1 -0
- package/dist/tools/openclaw.d.ts +9 -0
- package/dist/tools/openclaw.d.ts.map +1 -0
- package/dist/tools/openclaw.js +142 -0
- package/dist/tools/openclaw.js.map +1 -0
- package/dist/tools/receipts.d.ts +5 -0
- package/dist/tools/receipts.d.ts.map +1 -0
- package/dist/tools/receipts.js +166 -0
- package/dist/tools/receipts.js.map +1 -0
- package/dist/tools/reputation.d.ts +5 -0
- package/dist/tools/reputation.d.ts.map +1 -0
- package/dist/tools/reputation.js +72 -0
- package/dist/tools/reputation.js.map +1 -0
- package/dist/tools/schemas.d.ts +5 -0
- package/dist/tools/schemas.d.ts.map +1 -0
- package/dist/tools/schemas.js +595 -0
- package/dist/tools/schemas.js.map +1 -0
- package/dist/tools/verification.d.ts +5 -0
- package/dist/tools/verification.d.ts.map +1 -0
- package/dist/tools/verification.js +77 -0
- package/dist/tools/verification.js.map +1 -0
- package/package.json +54 -0
package/dist/server.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/** AGLedger™ — MCP Server wrapping the AGLedger API for agent consumption. Patent Pending. Copyright 2026 AGLedger LLC. All rights reserved. */
|
|
2
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
+
import { AgledgerClient } from '@agledger/sdk';
|
|
4
|
+
import { registerMandateTools } from './tools/mandates.js';
|
|
5
|
+
import { registerAgentMandateTools } from './tools/agent-mandates.js';
|
|
6
|
+
import { registerReceiptTools } from './tools/receipts.js';
|
|
7
|
+
import { registerVerificationTools } from './tools/verification.js';
|
|
8
|
+
import { registerDisputeTools } from './tools/disputes.js';
|
|
9
|
+
import { registerReputationTools } from './tools/reputation.js';
|
|
10
|
+
import { registerEventTools } from './tools/events.js';
|
|
11
|
+
import { registerSchemaTools } from './tools/schemas.js';
|
|
12
|
+
import { registerHealthTools } from './tools/health.js';
|
|
13
|
+
import { registerCapabilityTools } from './tools/capabilities.js';
|
|
14
|
+
import { registerA2aTools } from './tools/a2a.js';
|
|
15
|
+
import { registerOpenClawTools } from './tools/openclaw.js';
|
|
16
|
+
import { registerEnterpriseTools } from './tools/enterprises.js';
|
|
17
|
+
import { registerDashboardTools } from './tools/dashboard.js';
|
|
18
|
+
import { registerComplianceTools } from './tools/compliance.js';
|
|
19
|
+
import { registerFederationTools } from './tools/federation.js';
|
|
20
|
+
import { registerFederationAdminTools } from './tools/federation-admin.js';
|
|
21
|
+
import { registerAgentsRefsTools } from './tools/agents-refs.js';
|
|
22
|
+
import { registerCodeModeTools } from './tools/code-mode.js';
|
|
23
|
+
import { registerContractTypeResources } from './resources/contract-types.js';
|
|
24
|
+
export class AgledgerMcpServer {
|
|
25
|
+
mcp;
|
|
26
|
+
client;
|
|
27
|
+
profile;
|
|
28
|
+
enterpriseId;
|
|
29
|
+
constructor(options) {
|
|
30
|
+
this.profile = options.profile ?? 'full';
|
|
31
|
+
this.enterpriseId = options.enterpriseId;
|
|
32
|
+
this.mcp = new McpServer({
|
|
33
|
+
name: 'agledger-mcp-server',
|
|
34
|
+
version: '1.2.0',
|
|
35
|
+
}, {
|
|
36
|
+
capabilities: {
|
|
37
|
+
tools: {},
|
|
38
|
+
resources: {},
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
this.client = new AgledgerClient({
|
|
42
|
+
apiKey: options.apiKey,
|
|
43
|
+
baseUrl: options.apiUrl ?? 'https://api.agledger.ai',
|
|
44
|
+
});
|
|
45
|
+
this.registerTools();
|
|
46
|
+
}
|
|
47
|
+
registerTools() {
|
|
48
|
+
if (this.profile === 'code') {
|
|
49
|
+
// Code mode: 2 tools — SDK code execution + documentation (replaces full)
|
|
50
|
+
registerCodeModeTools(this.mcp, this.client);
|
|
51
|
+
}
|
|
52
|
+
else if (this.profile === 'openclaw') {
|
|
53
|
+
// OpenClaw profile: 5 thin notarization tools (<500 tokens total schema)
|
|
54
|
+
registerOpenClawTools(this.mcp, this.client);
|
|
55
|
+
}
|
|
56
|
+
else if (this.profile === 'a2a') {
|
|
57
|
+
// Focused A2A profile: agent-to-agent tools + agent identity + references
|
|
58
|
+
registerA2aTools(this.mcp, this.client, { enterpriseId: this.enterpriseId });
|
|
59
|
+
registerAgentsRefsTools(this.mcp, this.client);
|
|
60
|
+
}
|
|
61
|
+
else if (this.profile === 'schema-dev') {
|
|
62
|
+
// Schema development profile: schema tools + health check
|
|
63
|
+
registerSchemaTools(this.mcp, this.client);
|
|
64
|
+
registerHealthTools(this.mcp, this.client);
|
|
65
|
+
}
|
|
66
|
+
else if (this.profile === 'admin') {
|
|
67
|
+
// Admin profile: enterprise + agent management + references + federation admin
|
|
68
|
+
registerEnterpriseTools(this.mcp, this.client);
|
|
69
|
+
registerCapabilityTools(this.mcp, this.client);
|
|
70
|
+
registerReputationTools(this.mcp, this.client);
|
|
71
|
+
registerAgentsRefsTools(this.mcp, this.client);
|
|
72
|
+
registerFederationAdminTools(this.mcp, this.client);
|
|
73
|
+
registerHealthTools(this.mcp, this.client);
|
|
74
|
+
}
|
|
75
|
+
else if (this.profile === 'federation') {
|
|
76
|
+
// Federation profile: gateway ops + admin ops + agent identity + health
|
|
77
|
+
registerFederationTools(this.mcp, this.client);
|
|
78
|
+
registerFederationAdminTools(this.mcp, this.client);
|
|
79
|
+
registerAgentsRefsTools(this.mcp, this.client);
|
|
80
|
+
registerHealthTools(this.mcp, this.client);
|
|
81
|
+
}
|
|
82
|
+
else if (this.profile === 'audit') {
|
|
83
|
+
// Audit profile: read-only compliance monitoring + dashboard + agent lookup
|
|
84
|
+
registerEventTools(this.mcp, this.client);
|
|
85
|
+
registerVerificationTools(this.mcp, this.client);
|
|
86
|
+
registerDisputeTools(this.mcp, this.client);
|
|
87
|
+
registerReputationTools(this.mcp, this.client);
|
|
88
|
+
registerDashboardTools(this.mcp, this.client);
|
|
89
|
+
registerComplianceTools(this.mcp, this.client);
|
|
90
|
+
registerAgentsRefsTools(this.mcp, this.client);
|
|
91
|
+
registerHealthTools(this.mcp, this.client);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
// Full profile (legacy): all individual tools
|
|
95
|
+
registerMandateTools(this.mcp, this.client);
|
|
96
|
+
registerAgentMandateTools(this.mcp, this.client);
|
|
97
|
+
registerReceiptTools(this.mcp, this.client);
|
|
98
|
+
registerVerificationTools(this.mcp, this.client);
|
|
99
|
+
registerDisputeTools(this.mcp, this.client);
|
|
100
|
+
registerReputationTools(this.mcp, this.client);
|
|
101
|
+
registerEventTools(this.mcp, this.client);
|
|
102
|
+
registerSchemaTools(this.mcp, this.client);
|
|
103
|
+
registerHealthTools(this.mcp, this.client);
|
|
104
|
+
registerCapabilityTools(this.mcp, this.client);
|
|
105
|
+
registerEnterpriseTools(this.mcp, this.client);
|
|
106
|
+
registerDashboardTools(this.mcp, this.client);
|
|
107
|
+
registerComplianceTools(this.mcp, this.client);
|
|
108
|
+
registerFederationTools(this.mcp, this.client);
|
|
109
|
+
registerFederationAdminTools(this.mcp, this.client);
|
|
110
|
+
registerAgentsRefsTools(this.mcp, this.client);
|
|
111
|
+
}
|
|
112
|
+
// Resources are always available
|
|
113
|
+
registerContractTypeResources(this.mcp, this.client);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,gJAAgJ;AAEhJ,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE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CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACvD,CAAC;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AGLedger™ — Tool-level scope annotations (SEP-1880 early adoption).
|
|
3
|
+
* Patent Pending. Copyright 2026 AGLedger LLC. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Maps each MCP tool to the API scopes it requires. Exposed via `_meta.requiredScopes`
|
|
6
|
+
* on each tool definition so MCP clients can pre-filter tools the session can't use.
|
|
7
|
+
*
|
|
8
|
+
* Uses `_meta` (MCP spec vendor metadata) with the `requiredScopes` key.
|
|
9
|
+
* When SEP-1880 is accepted, migrate to the standard annotation key.
|
|
10
|
+
*
|
|
11
|
+
* @see https://github.com/modelcontextprotocol/modelcontextprotocol/issues/1880
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Required scopes for each tool, keyed by tool name.
|
|
15
|
+
* Read scopes grant access; write scopes imply read.
|
|
16
|
+
*/
|
|
17
|
+
export declare const TOOL_SCOPES: Record<string, string[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Build `_meta` object for a tool, including `requiredScopes`.
|
|
20
|
+
* Returns undefined if no scopes are mapped (passthrough).
|
|
21
|
+
*/
|
|
22
|
+
export declare function toolMeta(toolName: string): Record<string, unknown> | undefined;
|
|
23
|
+
//# sourceMappingURL=tool-scopes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-scopes.d.ts","sourceRoot":"","sources":["../src/tool-scopes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAkKhD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAI9E"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AGLedger™ — Tool-level scope annotations (SEP-1880 early adoption).
|
|
3
|
+
* Patent Pending. Copyright 2026 AGLedger LLC. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Maps each MCP tool to the API scopes it requires. Exposed via `_meta.requiredScopes`
|
|
6
|
+
* on each tool definition so MCP clients can pre-filter tools the session can't use.
|
|
7
|
+
*
|
|
8
|
+
* Uses `_meta` (MCP spec vendor metadata) with the `requiredScopes` key.
|
|
9
|
+
* When SEP-1880 is accepted, migrate to the standard annotation key.
|
|
10
|
+
*
|
|
11
|
+
* @see https://github.com/modelcontextprotocol/modelcontextprotocol/issues/1880
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Required scopes for each tool, keyed by tool name.
|
|
15
|
+
* Read scopes grant access; write scopes imply read.
|
|
16
|
+
*/
|
|
17
|
+
export const TOOL_SCOPES = {
|
|
18
|
+
// --- Mandates (enterprise) ---
|
|
19
|
+
create_mandate: ['mandates:write'],
|
|
20
|
+
get_mandate: ['mandates:read'],
|
|
21
|
+
search_mandates: ['mandates:read'],
|
|
22
|
+
update_mandate: ['mandates:write'],
|
|
23
|
+
activate_mandate: ['mandates:write'],
|
|
24
|
+
cancel_mandate: ['mandates:write'],
|
|
25
|
+
settle_mandate: ['mandates:write'],
|
|
26
|
+
request_revision: ['mandates:write'],
|
|
27
|
+
delegate_mandate: ['mandates:write'],
|
|
28
|
+
get_mandate_graph: ['mandates:read'],
|
|
29
|
+
get_mandate_summary: ['mandates:read'],
|
|
30
|
+
get_sub_mandates: ['mandates:read'],
|
|
31
|
+
get_delegation_chain: ['mandates:read'],
|
|
32
|
+
report_outcome: ['mandates:write'],
|
|
33
|
+
// --- Mandates (agent) ---
|
|
34
|
+
propose_mandate: ['mandates:write'],
|
|
35
|
+
propose_agent_mandate: ['mandates:write'],
|
|
36
|
+
accept_proposal: ['mandates:write'],
|
|
37
|
+
reject_proposal: ['mandates:write'],
|
|
38
|
+
counter_proposal: ['mandates:write'],
|
|
39
|
+
check_proposals: ['mandates:read'],
|
|
40
|
+
list_my_proposals: ['mandates:read'],
|
|
41
|
+
list_principal_mandates: ['mandates:read'],
|
|
42
|
+
// --- A2A ---
|
|
43
|
+
accept_mandate: ['mandates:write'],
|
|
44
|
+
my_mandates: ['mandates:read'],
|
|
45
|
+
// --- Receipts ---
|
|
46
|
+
submit_receipt: ['receipts:write'],
|
|
47
|
+
get_receipt: ['receipts:read'],
|
|
48
|
+
list_receipts: ['receipts:read'],
|
|
49
|
+
validate_receipt_schema: ['receipts:read', 'schemas:read'],
|
|
50
|
+
// --- Verification ---
|
|
51
|
+
verify_mandate: ['mandates:write'],
|
|
52
|
+
get_verification_status: ['mandates:read'],
|
|
53
|
+
// --- Disputes ---
|
|
54
|
+
create_dispute: ['disputes:manage'],
|
|
55
|
+
get_dispute: ['disputes:read'],
|
|
56
|
+
escalate_dispute: ['disputes:manage'],
|
|
57
|
+
submit_dispute_evidence: ['disputes:manage'],
|
|
58
|
+
// --- Events / Audit ---
|
|
59
|
+
get_audit_trail: ['audit:read'],
|
|
60
|
+
// --- Schemas ---
|
|
61
|
+
list_contract_schemas: ['schemas:read'],
|
|
62
|
+
get_contract_schema: ['schemas:read'],
|
|
63
|
+
get_schema_rules: ['schemas:read'],
|
|
64
|
+
get_schema_versions: ['schemas:read'],
|
|
65
|
+
get_schema_version: ['schemas:read'],
|
|
66
|
+
diff_schema_versions: ['schemas:read'],
|
|
67
|
+
get_meta_schema: ['schemas:read'],
|
|
68
|
+
get_blank_schema_template: ['schemas:read'],
|
|
69
|
+
get_schema_template: ['schemas:read'],
|
|
70
|
+
preview_schema: ['schemas:read'],
|
|
71
|
+
check_schema_compatibility: ['schemas:read'],
|
|
72
|
+
register_schema: ['schemas:write'],
|
|
73
|
+
delete_schema: ['schemas:write'],
|
|
74
|
+
export_schema: ['schemas:read'],
|
|
75
|
+
import_schema: ['schemas:write'],
|
|
76
|
+
validate_receipt_against_schema: ['schemas:read'],
|
|
77
|
+
// --- Enterprise management ---
|
|
78
|
+
approve_enterprise_agent: ['agents:manage'],
|
|
79
|
+
revoke_enterprise_agent: ['agents:manage'],
|
|
80
|
+
list_enterprise_agents: ['agents:read'],
|
|
81
|
+
create_enterprise: ['admin:trust'],
|
|
82
|
+
create_agent: ['admin:trust'],
|
|
83
|
+
set_enterprise_config: ['admin:trust'],
|
|
84
|
+
// --- Agents & References ---
|
|
85
|
+
get_agent: ['agents:read'],
|
|
86
|
+
update_agent: ['agents:manage'],
|
|
87
|
+
add_agent_references: ['agents:manage'],
|
|
88
|
+
get_agent_references: ['agents:read'],
|
|
89
|
+
lookup_reference: ['agents:read'],
|
|
90
|
+
add_mandate_references: ['mandates:write'],
|
|
91
|
+
get_mandate_references: ['mandates:read'],
|
|
92
|
+
// --- Capabilities ---
|
|
93
|
+
get_agent_capabilities: ['agents:read'],
|
|
94
|
+
declare_capabilities: ['agents:manage'],
|
|
95
|
+
// --- Reputation ---
|
|
96
|
+
get_agent_reputation: ['reputation:read'],
|
|
97
|
+
get_reputation_by_type: ['reputation:read'],
|
|
98
|
+
get_agent_history: ['reputation:read'],
|
|
99
|
+
check_reputation: ['reputation:read'],
|
|
100
|
+
// --- Dashboard ---
|
|
101
|
+
get_dashboard_summary: ['dashboard:read'],
|
|
102
|
+
get_dashboard_metrics: ['dashboard:read'],
|
|
103
|
+
get_dashboard_alerts: ['dashboard:read'],
|
|
104
|
+
// --- Compliance ---
|
|
105
|
+
create_compliance_record: ['compliance:write'],
|
|
106
|
+
list_compliance_records: ['compliance:read'],
|
|
107
|
+
get_eu_ai_act_report: ['compliance:read'],
|
|
108
|
+
// --- Health ---
|
|
109
|
+
check_api_health: [],
|
|
110
|
+
// --- Federation Gateway ---
|
|
111
|
+
federation_register: [],
|
|
112
|
+
federation_heartbeat: [],
|
|
113
|
+
federation_register_agent: [],
|
|
114
|
+
federation_list_agents: [],
|
|
115
|
+
federation_submit_transition: [],
|
|
116
|
+
federation_relay_signal: [],
|
|
117
|
+
federation_rotate_key: [],
|
|
118
|
+
federation_revoke: [],
|
|
119
|
+
federation_catch_up: [],
|
|
120
|
+
federation_stream: [],
|
|
121
|
+
federation_publish_schema: [],
|
|
122
|
+
federation_confirm_schema_publish: [],
|
|
123
|
+
federation_list_contract_types: [],
|
|
124
|
+
federation_get_contract_type: [],
|
|
125
|
+
federation_get_mandate_criteria: [],
|
|
126
|
+
federation_submit_mandate_criteria: [],
|
|
127
|
+
federation_contribute_reputation: [],
|
|
128
|
+
federation_get_agent_reputation: [],
|
|
129
|
+
federation_broadcast_revocations: [],
|
|
130
|
+
federation_sync_agent_directory: [],
|
|
131
|
+
// --- Federation Admin ---
|
|
132
|
+
federation_create_token: ['admin:system'],
|
|
133
|
+
federation_list_gateways: ['admin:system'],
|
|
134
|
+
federation_admin_revoke: ['admin:system'],
|
|
135
|
+
federation_query_mandates: ['admin:system'],
|
|
136
|
+
federation_audit_log: ['admin:system'],
|
|
137
|
+
federation_health: ['admin:system'],
|
|
138
|
+
federation_reset_sequence: ['admin:system'],
|
|
139
|
+
federation_list_dlq: ['admin:system'],
|
|
140
|
+
federation_retry_dlq: ['admin:system'],
|
|
141
|
+
federation_delete_dlq: ['admin:system'],
|
|
142
|
+
federation_rotate_hub_key: ['admin:system'],
|
|
143
|
+
federation_list_hub_keys: ['admin:system'],
|
|
144
|
+
federation_activate_hub_key: ['admin:system'],
|
|
145
|
+
federation_expire_hub_key: ['admin:system'],
|
|
146
|
+
federation_register_peer: ['admin:system'],
|
|
147
|
+
federation_list_peers: ['admin:system'],
|
|
148
|
+
federation_get_peer: ['admin:system'],
|
|
149
|
+
federation_revoke_peer: ['admin:system'],
|
|
150
|
+
federation_resync_peer: ['admin:system'],
|
|
151
|
+
federation_create_peering_token: ['admin:system'],
|
|
152
|
+
federation_delete_schema_version: ['admin:system'],
|
|
153
|
+
federation_list_reputation_contributions: ['admin:system'],
|
|
154
|
+
federation_reset_reputation: ['admin:system'],
|
|
155
|
+
federation_get_mandate_criteria_status: ['admin:system'],
|
|
156
|
+
// --- OpenClaw ---
|
|
157
|
+
agledger_notarize: ['mandates:write', 'receipts:write'],
|
|
158
|
+
agledger_receipt: ['receipts:write'],
|
|
159
|
+
agledger_status: ['mandates:read'],
|
|
160
|
+
agledger_accept: ['mandates:write'],
|
|
161
|
+
agledger_verdict: ['mandates:write'],
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Build `_meta` object for a tool, including `requiredScopes`.
|
|
165
|
+
* Returns undefined if no scopes are mapped (passthrough).
|
|
166
|
+
*/
|
|
167
|
+
export function toolMeta(toolName) {
|
|
168
|
+
const scopes = TOOL_SCOPES[toolName];
|
|
169
|
+
if (!scopes || scopes.length === 0)
|
|
170
|
+
return undefined;
|
|
171
|
+
return { requiredScopes: scopes };
|
|
172
|
+
}
|
|
173
|
+
//# sourceMappingURL=tool-scopes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-scopes.js","sourceRoot":"","sources":["../src/tool-scopes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAA6B;IACnD,gCAAgC;IAChC,cAAc,EAAE,CAAC,gBAAgB,CAAC;IAClC,WAAW,EAAE,CAAC,eAAe,CAAC;IAC9B,eAAe,EAAE,CAAC,eAAe,CAAC;IAClC,cAAc,EAAE,CAAC,gBAAgB,CAAC;IAClC,gBAAgB,EAAE,CAAC,gBAAgB,CAAC;IACpC,cAAc,EAAE,CAAC,gBAAgB,CAAC;IAClC,cAAc,EAAE,CAAC,gBAAgB,CAAC;IAClC,gBAAgB,EAAE,CAAC,gBAAgB,CAAC;IACpC,gBAAgB,EAAE,CAAC,gBAAgB,CAAC;IACpC,iBAAiB,EAAE,CAAC,eAAe,CAAC;IACpC,mBAAmB,EAAE,CAAC,eAAe,CAAC;IACtC,gBAAgB,EAAE,CAAC,eAAe,CAAC;IACn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AyB,EAAE,CAAC,cAAc,CAAC;IAC3C,wBAAwB,EAAE,CAAC,cAAc,CAAC;IAC1C,2BAA2B,EAAE,CAAC,cAAc,CAAC;IAC7C,yBAAyB,EAAE,CAAC,cAAc,CAAC;IAC3C,wBAAwB,EAAE,CAAC,cAAc,CAAC;IAC1C,qBAAqB,EAAE,CAAC,cAAc,CAAC;IACvC,mBAAmB,EAAE,CAAC,cAAc,CAAC;IACrC,sBAAsB,EAAE,CAAC,cAAc,CAAC;IACxC,sBAAsB,EAAE,CAAC,cAAc,CAAC;IACxC,+BAA+B,EAAE,CAAC,cAAc,CAAC;IACjD,gCAAgC,EAAE,CAAC,cAAc,CAAC;IAClD,wCAAwC,EAAE,CAAC,cAAc,CAAC;IAC1D,2BAA2B,EAAE,CAAC,cAAc,CAAC;IAC7C,sCAAsC,EAAE,CAAC,cAAc,CAAC;IAExD,mBAAmB;IACnB,iBAAiB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACvD,gBAAgB,EAAE,CAAC,gBAAgB,CAAC;IACpC,eAAe,EAAE,CAAC,eAAe,CAAC;IAClC,eAAe,EAAE,CAAC,gBAAgB,CAAC;IACnC,gBAAgB,EAAE,CAAC,gBAAgB,CAAC;CACrC,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,QAAgB;IACvC,MAAM,MAAM,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;IACrC,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACrD,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC;AACpC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** AGLedger™ — Focused A2A tool profile (10 tools with closure prompting). Patent Pending. Copyright 2026 AGLedger LLC. All rights reserved. */
|
|
2
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
+
import type { AgledgerClient } from '@agledger/sdk';
|
|
4
|
+
export interface A2aToolsConfig {
|
|
5
|
+
/** Enterprise ID for search queries. Falls back to AGLEDGER_ENTERPRISE_ID env var. */
|
|
6
|
+
enterpriseId?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function registerA2aTools(mcp: McpServer, client: AgledgerClient, config?: A2aToolsConfig): void;
|
|
9
|
+
//# sourceMappingURL=a2a.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"a2a.d.ts","sourceRoot":"","sources":["../../src/tools/a2a.ts"],"names":[],"mappings":"AAAA,gJAAgJ;AAGhJ,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAKpD,MAAM,WAAW,cAAc;IAC7B,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAuCD,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAE,cAAmB,GAAG,IAAI,CAmf1G"}
|