MCP Server
Enable external AI tools to access Bifrost via Model Context Protocol
The Model Context Protocol (MCP) allows external AI tools to interact with Bifrost, enabling them to execute workflows, manage forms, and access platform features.
What is MCP?
Section titled “What is MCP?”MCP is an open protocol that standardizes how AI assistants connect to external tools and data sources. When enabled, Bifrost exposes an MCP server that external clients can connect to.
Enabling MCP
Section titled “Enabling MCP”-
Navigate to Settings > Platform
-
Enable the MCP Server toggle
-
The MCP endpoint URL will be displayed
Connecting External Clients
Section titled “Connecting External Clients”External AI tools like Claude Desktop can connect to the Bifrost MCP server:
- Configure your client with the Bifrost MCP endpoint URL
- Authenticate using your API credentials
- The client will discover available tools automatically
Tool Availability
Section titled “Tool Availability”Tools available through MCP are determined by:
- Agent configuration: Tools assigned to agents are exposed via MCP
- Workflow tools: Workflows marked with
is_tool=Trueappear as callable tools - System tools: Platform capabilities like file operations and execution management
Only tools that the authenticated user has permission to access will be available.
Available MCP Tools
Section titled “Available MCP Tools”Discovery Tools
Section titled “Discovery Tools”| Tool | Description |
|---|---|
list_workflows | List all registered workflows |
get_workflow | Get detailed metadata for a specific workflow |
get_workflow_schema | Documentation about workflow decorators and structure |
list_data_providers | List available data providers |
get_data_provider_schema | Documentation about data provider format |
list_forms | List all forms with URLs |
get_form_schema | Documentation about form structure and field types |
list_apps | List App Builder applications |
get_app | Get detailed app definition |
get_app_schema | Documentation about app structure and components |
list_integrations | Show available integrations and auth status |
search_knowledge | Search the Bifrost knowledge base |
Creation Tools (Auto-Validating)
Section titled “Creation Tools (Auto-Validating)”| Tool | Description |
|---|---|
register_workflow | Register a decorated Python function as a workflow (with optional organization_id) |
create_form | Create a form with automatic schema validation |
App Builder Tools (Granular)
Section titled “App Builder Tools (Granular)”Apps are managed at three levels:
App Level:
list_apps,get_app,update_app,publish_app
Page Level:
create_page,get_page,update_page,delete_page
Component Level:
list_components,create_component,get_component,update_component,delete_component,move_component
Precision Editing Tools (Code Files)
Section titled “Precision Editing Tools (Code Files)”For editing code stored in the database (workflows, app files, modules), use precision editing tools:
Entity Types: app_file (TSX/TypeScript), workflow (Python), module (Python helpers)
| Tool | Description |
|---|---|
list_content | List files by entity type |
search_content | Regex search with context lines |
read_content_lines | Read specific line range |
get_content | Get entire file content |
patch_content | Surgical string replacement |
replace_content | Full content replacement or create new |
delete_content | Delete a file |
Workflow: Search → Read Range → Patch (for surgical edits)
Workspace File Tools (Non-Code Files)
Section titled “Workspace File Tools (Non-Code Files)”For non-code files (data, configuration):
| Tool | Description |
|---|---|
list_files | List files and directories in workspace |
read_file | Read a file from workspace |
write_file | Write content to a file |
delete_file | Delete a file or directory |
search_files | Search for text patterns across files |
create_folder | Create a new folder |
Execution Tools
Section titled “Execution Tools”| Tool | Description |
|---|---|
execute_workflow | Execute a workflow by ID |
list_executions | List recent executions |
get_execution | Get execution details and logs |
Coding Agent Features
Section titled “Coding Agent Features”When using the Coding Agent (Bifrost’s in-app AI assistant), additional features are available:
Precision Editing Workflow
Section titled “Precision Editing Workflow”The coding agent uses a search → read → patch workflow for surgical code changes:
- Search - Use
search_contentwith regex to find code patterns - Read Range - Use
read_content_linesto see context around matches - Patch - Use
patch_contentfor targeted string replacement
This approach minimizes context usage and reduces errors compared to full file replacement.
Testing Workflow
Section titled “Testing Workflow”The coding agent follows a mandatory testing workflow:
- Create artifacts using creation tools (auto-validates)
- Verify artifacts appear in list tools
- Execute with sample data
- Verify results match expectations
See Also
Section titled “See Also”- Agents and Chat - Agent configuration
- AI Tools - Making workflows callable as tools