Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

✨ feat: Add agentic-payments MCP integration to init process

rUv8473e8b5a104
diff --git a/src/cli/simple-commands/init/index.js b/src/cli/simple-commands/init/index.js
index 58404d9994..8f07cb930b 100644
--- a/src/cli/simple-commands/init/index.js
+++ b/src/cli/simple-commands/init/index.js
@@ -115,6 +115,11 @@ async function setupMcpServers(dryRun = false) {
command: 'npx flow-nexus@latest mcp start',
description: 'Flow Nexus Complete MCP server for advanced AI orchestration',
},
+ {
+ name: 'agentic-payments',
+ command: 'npx agentic-payments@latest mcp',
+ description: 'Agentic Payments MCP server for autonomous agent payment authorization',
+ },
];
for (const server of servers) {
@@ -540,6 +545,7 @@ export async function initCommand(subArgs, flags) {
console.log(' claude mcp add claude-flow npx claude-flow@alpha mcp start');
console.log(' claude mcp add ruv-swarm npx ruv-swarm mcp start');
console.log(' claude mcp add flow-nexus npx flow-nexus@latest mcp start');
+ console.log(' claude mcp add agentic-payments npx agentic-payments@latest mcp');
}
}
} catch (err) {
@@ -1203,6 +1209,11 @@ async function enhancedClaudeFlowInit(flags, subArgs = []) {
args: ['flow-nexus@latest', 'mcp', 'start'],
type: 'stdio',
},
+ 'agentic-payments': {
+ command: 'npx',
+ args: ['agentic-payments@latest', 'mcp'],
+ type: 'stdio',
+ },
},
};
@@ -1414,6 +1425,7 @@ ${commands.map((cmd) => `- [${cmd}](./${cmd}.md)`).join('\n')}
console.log(' claude mcp add claude-flow npx claude-flow@alpha mcp start');
console.log(' claude mcp add ruv-swarm npx ruv-swarm@latest mcp start');
console.log(' claude mcp add flow-nexus npx flow-nexus@latest mcp start');
+ console.log(' claude mcp add agentic-payments npx agentic-payments@latest mcp');
console.log('\n 💡 MCP servers are defined in .mcp.json (project scope)');
}
} else if (!dryRun && !isClaudeCodeInstalled()) {
@@ -1424,6 +1436,7 @@ ${commands.map((cmd) => `- [${cmd}](./${cmd}.md)`).join('\n')}
console.log(' claude mcp add claude-flow@alpha npx claude-flow@alpha mcp start');
console.log(' claude mcp add ruv-swarm npx ruv-swarm@latest mcp start');
console.log(' claude mcp add flow-nexus npx flow-nexus@latest mcp start');
+ console.log(' claude mcp add agentic-payments npx agentic-payments@latest mcp');
console.log('\n 💡 MCP servers are defined in .mcp.json (project scope)');
}
diff --git a/src/core/MCPIntegrator.ts b/src/core/MCPIntegrator.ts
index 7ce4e5cce1..106a3aa2ac 100644
--- a/src/core/MCPIntegrator.ts
+++ b/src/core/MCPIntegrator.ts
@@ -149,6 +149,57 @@ export class MCPIntegrator {
],
status: 'disconnected'
});
+
+ // Agentic Payments MCP tools (optional)
+ this.tools.set('agentic-payments', {
+ name: 'agentic-payments',
+ server: 'npx agentic-payments@latest mcp',
+ functions: [
+ {
+ name: 'create_active_mandate',
+ description: 'Create Active Mandate for autonomous payment authorization',
+ parameters: { agent: 'string', holder: 'string', amount: 'number', currency: 'string', period: 'string', kind: 'string' },
+ required: ['agent', 'holder', 'amount', 'currency', 'period', 'kind']
+ },
+ {
+ name: 'sign_mandate',
+ description: 'Sign mandate with Ed25519 cryptographic proof',
+ parameters: { mandate: 'object', private_key: 'string' },
+ required: ['mandate', 'private_key']
+ },
+ {
+ name: 'verify_mandate',
+ description: 'Verify mandate signature and execution guards',
+ parameters: { signed_mandate: 'object', check_guards: 'boolean' },
+ required: ['signed_mandate']
+ },
+ {
+ name: 'revoke_mandate',
+ description: 'Revoke mandate by ID',
+ parameters: { mandate_id: 'string', reason: 'string' },
+ required: ['mandate_id']
+ },
+ {
+ name: 'generate_agent_identity',
+ description: 'Generate Ed25519 keypair for agent',
+ parameters: { include_private_key: 'boolean' },
+ required: []
+ },
+ {
+ name: 'create_intent_mandate',
+ description: 'Create intent-based payment mandate',
+ parameters: { merchant_id: 'string', customer_id: 'string', intent: 'string', max_amount: 'number' },
+ required: ['merchant_id', 'customer_id', 'intent', 'max_amount']
+ },
+ {
+ name: 'create_cart_mandate',
+ description: 'Create cart-based payment mandate',
+ parameters: { merchant_id: 'string', customer_id: 'string', items: 'array' },
+ required: ['merchant_id', 'customer_id', 'items']
+ }
+ ],
+ status: 'disconnected'
+ });
}
/**