What is FlowMCP?
FlowMCP is a schema-based framework that bridges existing web APIs (REST or GraphQL) with AI systems by standardizing interaction through the Model Context Protocol (MCP). It abstracts complex APIs into clean, structured schema definitions, enabling seamless AI-driven communication with external services.
How to use FlowMCP?
Create a schema in a .mjs file exporting a const schema = {} object with keys like namespace, routes, and handlers, then use FlowMCP.activateServerTools({ server, schema, serverParams }) to connect to an MCP server via a StdioServerTransport. Parameters are defined inline with Zod validation, and modifiers allow pre/post/execute-phase logic injection.
Key features of FlowMCP
- Schema-based integration with structured route definitions
- Modifier system for pre-, post-, and execute-phase handlers
- Inline parameters with Zod type enforcement
- Embedded test cases to verify real-world API interactions
- Text-based, human-readable output
- Activation via standard MCP server tools
Use cases of FlowMCP
- Integrate APIs like Chainlink, CoinGecko, or Etherscan with AI agents
- Test API interactions before deployment using built-in test cases
- Generate valid schemas automatically using an AI-based schema generator
- Bridge existing REST/GraphQL endpoints into the Model Context Protocol
评论