Applications are the foundation for integrating with external services and platforms (like GitHub, Google, Slack, etc.) in the Universal MCP system. They expose a set of Actions and Triggers for AI agents to use, enabling seamless automation and real-world interaction.
What is an Application?
An Application represents an integration with an external service or platform. Applications provide a structured way to:- Manage authentication and credentials
- Handle API communication
- Define available actions (tools)
- Process responses and errors
Base Classes for Applications
The system provides three main base classes for building applications:BaseApplication: The abstract base class that defines the common interfaceAPIApplication: For applications that communicate via HTTP APIsGraphQLApplication: For applications that use GraphQL APIs
See also: Actions and Triggers | Integration and Connection
Implementation Example: Building an API Application
Here’s an example of building a simple API Application that fetches a random quote:How to Create a New Application
To create a new application, follow these steps:- Create a new package following the naming convention:
universal_mcp_<app_name> - Implement your application class inheriting from one of the base classes
- Name your class following the convention:
<AppName>App - Define your actions as methods and register them in
list_tools()
Best Practices
- Use clear, descriptive names for your application and actions.
- Keep authentication and credential management secure and up-to-date.
- Document each action and its expected input/output.
- Handle errors gracefully and provide meaningful error messages.
- Regularly review and update your application to support new features and maintain compatibility.
Next Steps & Related Links
Need help? Contact support or check the full documentation.