1.3.47 • Published 9 months ago
@skynetxbt/flow-mcp-agent
Licence
—
Version
1.3.47
Deps
4
Size
91 kB
Vulns
0
Weekly
0
MCP Agent Flow
A SkynetXBT flow for executing complex multi-step operations using the Model Context Protocol (MCP). This flow enables automated interactions with various MCP transports for browser automation, data fetching, and DeFi analysis.
Features
- Multi-transport MCP integration
- Browser automation capabilities
- Data fetching and analysis
- DeFi protocol interaction
- Automated step execution
- Intelligent request analysis
Installation
npm install @skynetxbt/flow-mcp-agent
# or
yarn add @skynetxbt/flow-mcp-agent
Dependencies
- @skynetxbt/core
- @skynetxbt/plugin-mcp-client
- @skynetxbt/agent
Usage
import { MCPAgentFlow } from '@skynetxbt/flow-mcp-agent';
// Initialize the flow with custom transports
const flow = new MCPAgentFlow({
transports: [
{
id: "browser-mcp",
url: "https://server.smithery.ai/@goswamig/browser-mcp",
mcpkeyval: {},
description: "Browser automation MCP"
},
{
id: "fetch-mcp",
url: "https://server.smithery.ai/@goswamig/fetch-mcp",
mcpkeyval: {},
description: "Data fetching MCP"
}
]
});
// Execute MCP operations
await flow.execute({
message: "go to geckoterminal fetch best token"
});
Configuration Options
interface MCPConfig {
transports: {
id: string;
url: string;
mcpkeyval: Record<string, any>;
description: string;
}[];
}
Supported Operations
The flow supports various operations through natural language commands:
analyze- Perform analysis on tokens or protocolsfind token- Search for specific tokenscheck vault- Retrieve vault statisticsgo to- Navigate to specific platformsfetch- Retrieve data from sources
Capabilities
- Natural language command processing
- Multi-step operation execution
- Browser automation
- Data fetching and analysis
- DeFi protocol interaction
- Automated error recovery
- Transport management