Refunc MCP Server
by refunc
Refunc MCP Server enables the creation of functions that can be triggered via MCP (Message Control Protocol) events. It allows defining tools within a function and exposing them through an SSE (Server-Sent Events) endpoint.
Last updated: N/A
What is Refunc MCP Server?
Refunc MCP Server is a component of the Refunc serverless platform that allows you to create functions triggered by MCP events. It provides a mechanism to define tools within a function, each with its own schema, and expose them through an SSE endpoint for real-time communication.
How to use Refunc MCP Server?
To use Refunc MCP Server, first deploy the Refunc components. Then, create a function using the refunc-cli, define an MCP event with the desired tools and their schemas in the function's configuration (lambda.yaml), and update the configuration. Finally, access the function's SSE endpoint to receive MCP events.
Key features of Refunc MCP Server
MCP event triggering
Tool definition with JSON Schema
SSE endpoint for real-time communication
Integration with refunc-cli
Flexible event mapping
Use cases of Refunc MCP Server
Real-time data processing
Event-driven applications
Integration with message queues
Building interactive services
Command and control systems
FAQ from Refunc MCP Server
What is MCP?
What is MCP?
MCP stands for Message Control Protocol. In the context of Refunc, it's a custom protocol used to trigger functions based on specific events.
How do I define the schema for a tool?
How do I define the schema for a tool?
The schema for a tool is defined using JSON Schema. This allows you to specify the expected data types and constraints for the tool's input parameters.
What is the format of the MCP SSE URL?
What is the format of the MCP SSE URL?
The format is /namespace/<token-secret-name>/<token>/<func-name>/sse
.
Can I define multiple tools within a single function?
Can I define multiple tools within a single function?
Yes, the tools
field in the MCP event configuration is a data structure that allows you to define multiple tools within a function.
What built-in parameters are added when calling a function?
What built-in parameters are added when calling a function?
Refunc adds two built-in parameters: _call_type
and _call_method
, where _call_method
is the name of the tool being called.