UNPKG

n8n-nodes-a2a-protocol

Version:

Agent2Agent (A2A) Protocol nodes for n8n - Enable agent interoperability, communication, and MCP integration

26 lines (24 loc) 850 B
const { A2AClientTool, toolDefinition: a2aToolDef } = require('./dist/nodes/A2AClientTool/A2AClientTool.node.js'); module.exports = { credentials: [ require('./dist/credentials/A2AApi.credentials.js').A2AApi, ], nodes: [ require('./dist/nodes/A2AAgentRegistry/A2AAgentRegistry.node.js').A2AAgentRegistry, require('./dist/nodes/A2AClientAgent/A2AClientAgent.node.js').A2AClientAgent, require('./dist/nodes/A2ARemoteAgent/A2ARemoteAgent.node.js').A2ARemoteAgent, require('./dist/nodes/A2ACallback/A2ACallback.node.js').A2ACallback, A2AClientTool, ], // ✅ MCP Tool Registration for Server Trigger Discovery loadTools() { return [ { type: 'tool', name: a2aToolDef.name, tool: new A2AClientTool(), definition: a2aToolDef, }, ]; }, };