Usage
MCP servers are defined and implemented using the following structure and patterns.
Structure
MCP servers in Compozy follow a standardized structure that includes server configuration and implementation patterns:
Basic Usage
MCP servers can be used in two main ways:
Each server can be configured using the config
property, environment variables, and execution commands:
Best Practices
Server Configuration
Define server settings and credentials using the config schema
File Structure
Organize server implementation in separate files with clear configuration
Context Management
Implement proper context and memory handling through schema definitions
Memory System
Use the built-in memory system for state persistence
Task Integration
Integrate servers with tasks using mcp() function
Using MCP Servers in Tasks
MCP servers can be used directly in tasks using the mcp()
function: