Skip to content

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.

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.

  1. Navigate to Settings > Platform

  2. Enable the MCP Server toggle

  3. The MCP endpoint URL will be displayed

External AI tools like Claude Desktop can connect to the Bifrost MCP server:

  1. Configure your client with the Bifrost MCP endpoint URL
  2. Authenticate using your API credentials
  3. The client will discover available tools automatically

Tools available through MCP are determined by:

  • Agent configuration: Tools assigned to agents are exposed via MCP
  • Workflow tools: Workflows marked with is_tool=True appear 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.

ToolDescription
list_workflowsList all registered workflows
get_workflowGet detailed metadata for a specific workflow
get_workflow_schemaDocumentation about workflow decorators and structure
list_data_providersList available data providers
get_data_provider_schemaDocumentation about data provider format
list_formsList all forms with URLs
get_form_schemaDocumentation about form structure and field types
list_appsList App Builder applications
get_appGet detailed app definition
get_app_schemaDocumentation about app structure and components
list_integrationsShow available integrations and auth status
search_knowledgeSearch the Bifrost knowledge base
ToolDescription
register_workflowRegister a decorated Python function as a workflow (with optional organization_id)
create_formCreate a form with automatic schema validation

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

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)

ToolDescription
list_contentList files by entity type
search_contentRegex search with context lines
read_content_linesRead specific line range
get_contentGet entire file content
patch_contentSurgical string replacement
replace_contentFull content replacement or create new
delete_contentDelete a file

Workflow: Search → Read Range → Patch (for surgical edits)

For non-code files (data, configuration):

ToolDescription
list_filesList files and directories in workspace
read_fileRead a file from workspace
write_fileWrite content to a file
delete_fileDelete a file or directory
search_filesSearch for text patterns across files
create_folderCreate a new folder
ToolDescription
execute_workflowExecute a workflow by ID
list_executionsList recent executions
get_executionGet execution details and logs

When using the Coding Agent (Bifrost’s in-app AI assistant), additional features are available:

The coding agent uses a search → read → patch workflow for surgical code changes:

  1. Search - Use search_content with regex to find code patterns
  2. Read Range - Use read_content_lines to see context around matches
  3. Patch - Use patch_content for targeted string replacement

This approach minimizes context usage and reduces errors compared to full file replacement.

The coding agent follows a mandatory testing workflow:

  1. Create artifacts using creation tools (auto-validates)
  2. Verify artifacts appear in list tools
  3. Execute with sample data
  4. Verify results match expectations