MCP Server Overview
CodeFire includes a companion Model Context Protocol (MCP) server that exposes your project data to AI coding assistants like Claude Code, Gemini CLI, Codex CLI, and OpenCode.What is the MCP Server?
The CodeFire MCP server (CodeFireMCP) is a standalone executable that implements the Model Context Protocol, allowing AI agents to interact with your CodeFire projects through a standardized interface.
Instead of your AI agent starting each session from scratch, it can:
- See what tasks are in progress
- Read project notes and context
- Create and update tasks programmatically
- Search your codebase semantically
- Control your browser for testing and debugging
- Generate images for your project
- Inspect git status and manage commits
The Feedback Loop
CodeFire creates a powerful feedback loop between you, your projects, and your AI agent:Architecture
Communication Protocol
The MCP server communicates via stdio (standard input/output) using JSON-RPC 2.0. Your AI CLI tool spawns theCodeFireMCP executable as a subprocess and exchanges messages over stdin/stdout.
Shared Database
Both the CodeFire GUI app and the MCP server read from and write to the same SQLite database:Project Auto-Detection
When the MCP server starts, it automatically detects which CodeFire project you’re working on by:- Reading the current working directory (where your AI agent was launched)
- Querying the database for projects matching that path
- Falling back to parent directory matching (so
/path/to/project/srcmatches/path/to/project)
project_id parameter from most tool calls — it will default to the auto-detected project.
To check which project was detected:
Connection Status
The MCP server writes a connection status file to:- Which project the AI agent is working on
- The working directory
- Process ID of the MCP server
Supported CLI Tools
CodeFire’s MCP server works with any tool that supports the Model Context Protocol:| CLI Tool | Language | Developer |
|---|---|---|
| Claude Code | JavaScript/Kotlin | Anthropic |
| Gemini CLI | JavaScript | |
| Codex CLI | Python | OpenAI |
| OpenCode | JavaScript | SST |
Tool Categories
The MCP server exposes tools organized into seven categories:Projects
Discover and identify which CodeFire project you’re working with.Tasks
Create, read, update, and manage project tasks and global planner tasks. Add notes to track progress.Notes
Read and write project-level notes for capturing context, architectural decisions, and reference material.Browser
Control CodeFire’s built-in browser: navigate, take snapshots, interact with elements, inspect network requests.Git
Check status, view diffs, stage changes, and create commits directly from your AI agent.Clients
Manage client groups for organizing projects in the sidebar.Images
Generate and edit images using AI, saved directly to your project. See the full list of tools in the Tools Reference.Next Steps
Setup Guide
Configure the MCP server for your AI CLI tool
Tools Reference
Browse all available MCP tools and their parameters
Integration Guide
Learn how to use MCP tools effectively in your workflow
