MCP Tools Reference
CodeFire’s MCP server exposes 60+ tools organized into seven categories. This page provides an overview of each tool. For detailed parameter schemas, use your AI agent’s built-in tool listing.Most tools that operate on a specific project accept an optional
project_id parameter. If omitted, the MCP server uses the auto-detected project based on your current working directory.Use get_current_project to see which project was detected.Projects
get_current_project
Get the auto-detected project for the current session based on the working directory.
Parameters: None
Returns: Project name, ID, and working directory. Explains that project_id can be omitted from subsequent tool calls.
Example Use Case:
list_projects
List all projects tracked by CodeFire.
Parameters: None
Returns: Array of projects with ID, name, and path.
Example Use Case:
Tasks
list_tasks
List tasks for a project or globally.
Parameters:
project_id(string, optional): Project ID (auto-detected if omitted)status(string, optional): Filter by status:todo,in_progress, ordoneglobal(boolean, optional): Settrueto list global planner tasks
get_task
Get full details of a specific task, including notes and attachments.
Parameters:
task_id(integer, required): Task ID
create_task
Create a new task in a project or the global planner.
Parameters:
title(string, required): Task titleproject_id(string, optional): Project ID (auto-detected if omitted)description(string, optional): Task descriptionpriority(integer, optional): Priority level:0=none,1=low,2=medium,3=high,4=urgentlabels(array of strings, optional): Labels like["bug", "frontend"]global(boolean, optional): Settrueto create a global planner task
update_task
Update a task’s status, priority, title, description, or labels.
Parameters:
task_id(integer, required): Task IDstatus(string, optional): New status:todo,in_progress, ordonepriority(integer, optional): New priority (0-4)title(string, optional): New titledescription(string, optional): New descriptionlabels(array of strings, optional): New labels array
add_task_note
Add a note or comment to a task. Use this to log progress, decisions, or context.
Parameters:
task_id(integer, required): Task IDcontent(string, required): Note contentsession_id(string, optional): Claude session ID (auto-detected if omitted)
list_task_notes
List all notes for a specific task.
Parameters:
task_id(integer, required): Task ID
Notes
list_notes
List all project-level notes. Notes are rich documents (title + content) for capturing project context, decisions, patterns, and reference material.
Parameters:
project_id(string, optional): Project ID (auto-detected if omitted)pinned_only(boolean, optional): Iftrue, only return pinned notesglobal(boolean, optional): Settrueto list global planner notes
get_note
Get the full content of a specific note.
Parameters:
note_id(integer, required): Note ID
create_note
Create a new project-level note. Use for architectural decisions, discovered patterns, session learnings, or any context that should persist.
Parameters:
title(string, required): Note titleproject_id(string, optional): Project ID (auto-detected if omitted)content(string, optional): Note content (supports Markdown)pinned(boolean, optional): Pin to the top (default:false)session_id(string, optional): Session ID that created this noteglobal(boolean, optional): Settrueto create a global planner note
update_note
Update a note’s title, content, or pinned status.
Parameters:
note_id(integer, required): Note IDtitle(string, optional): New titlecontent(string, optional): New contentpinned(boolean, optional): Pin or unpin the note
delete_note
Delete a note by ID.
Parameters:
note_id(integer, required): Note ID
search_notes
Full-text search across all project notes (titles and content).
Parameters:
query(string, required): Search queryproject_id(string, optional): Project ID (auto-detected if omitted)global(boolean, optional): Settrueto search global notes
Browser
CodeFire includes a full-featured browser controller. All browser tools require CodeFire to be running.Navigation & Inspection
browser_navigate: Navigate to a URLbrowser_snapshot: Get the accessibility tree (page structure)browser_extract: Extract text from an element using CSS selectorbrowser_list_tabs: List all open tabsbrowser_console_logs: Get console log entries (log, warn, error, info)browser_screenshot: Take a PNG screenshot
Tab Management
browser_tab_open: Open a new tabbrowser_tab_close: Close a tab by IDbrowser_tab_switch: Switch to a different tab
Interaction
browser_click: Click an element by ref from browser_snapshotbrowser_type: Type text into an input fieldbrowser_select: Select an option from a dropdownbrowser_scroll: Scroll the page or scroll an element into viewbrowser_wait: Wait for an element to appearbrowser_press: Press a key or key combinationbrowser_hover: Hover over an element
Advanced
browser_eval: Execute JavaScript and return the resultbrowser_upload: Set a file on an <input type="file">browser_drag: Drag and drop elementsbrowser_iframe: Switch context to an iframe
Session & Storage
browser_clear_session: Clear cookies, cache, localStoragebrowser_get_cookies: Get cookies for the current pagebrowser_get_storage: Read localStorage or sessionStoragebrowser_set_cookie: Set a cookie
Network Inspection
get_network_requests: Get captured network requestsget_request_detail: Get full details of a specific requestclear_network_log: Clear all captured network requests
Example Use Cases:
Browser tools use element refs from
browser_snapshot. Always call browser_snapshot first to get refs, then use those refs in interaction tools like browser_click and browser_type.Git
Manage git operations directly from your AI agent. All git tools run against the project’s repository.git_status
Get the current git status: branch, staged files, unstaged changes, and untracked files.
Parameters:
project_id(string, optional): Project ID (auto-detected if omitted)
branch, staged, unstaged, untracked arrays, and counts.
Example Use Case:
git_diff
Get git diff output for unstaged or staged changes.
Parameters:
file_path(string, optional): Specific file to diff (relative to project root)staged(boolean, optional): Show staged changes instead of unstaged (default:false)project_id(string, optional): Project ID (auto-detected if omitted)
git_log
Get recent git commit history.
Parameters:
count(integer, optional): Number of commits to show (default: 15, max: 50)file_path(string, optional): Show only commits affecting this fileproject_id(string, optional): Project ID (auto-detected if omitted)
git_stage
Stage files for commit.
Parameters:
file_path(string, optional): File to stage (relative to project root). Omit to stage all changes.project_id(string, optional): Project ID (auto-detected if omitted)
git_unstage
Unstage files from the staging area.
Parameters:
file_path(string, optional): File to unstage. Omit to unstage all.project_id(string, optional): Project ID (auto-detected if omitted)
git_commit
Create a git commit with the currently staged changes.
Parameters:
message(string, required): Commit messageproject_id(string, optional): Project ID (auto-detected if omitted)
Clients
Clients are groups used to organize projects in the CodeFire sidebar.list_clients
List all clients.
Parameters: None
Returns: Client ID, name, and color.
Example Use Case:
create_client
Create a new client for grouping projects.
Parameters:
name(string, required): Client namecolor(string, optional): Hex color (e.g.#3B82F6). Defaults to blue.
Images
Generate and manage AI-generated images for your project.generate_image
Generate an image from a text prompt using AI (Gemini 3.1 Flash). Saves to assets/generated/ in the project.
Parameters:
prompt(string, required): Text description of the imageaspect_ratio(string, optional):1:1,16:9,9:16,4:3, or3:2(default:1:1)size(string, optional):1K,2K, or4K(default:1K)project_id(string, optional): Project ID (auto-detected if omitted)
edit_image
Edit an existing image with text instructions.
Parameters:
image_path(string, required): Absolute file path of the image to editprompt(string, required): Editing instructions (e.g., “make the background blue”)project_id(string, optional): Project ID (auto-detected if omitted)
list_images
List generated images for a project, ordered by most recent first.
Parameters:
project_id(string, optional): Project ID (auto-detected if omitted)limit(integer, optional): Max results (default: 20)offset(integer, optional): Skip first N results (default: 0)
get_image
Get details of a specific generated image by ID.
Parameters:
image_id(integer, required): Image ID
Environment & Services
detect_services
Detect cloud services and deployment platforms configured in the project (Firebase, Supabase, Vercel, Netlify, Docker, Railway, AWS Amplify).
Parameters:
project_id(string, optional): Project ID (auto-detected if omitted)
list_env_files
List environment files (.env, .env.local, etc.) in the project with variable counts.
Parameters:
project_id(string, optional): Project ID (auto-detected if omitted)
get_env_variables
Parse and return variables from a specific environment file. Values are masked by default for security.
Parameters:
file_name(string, required): Environment file name (e.g.,.env)show_values(boolean, optional): Show actual values instead of masked (default:false)project_id(string, optional): Project ID (auto-detected if omitted)
Code Search
context_search
Semantic code search across the current project. Finds functions, classes, documentation, and git history using hybrid vector similarity + keyword search.
Parameters:
query(string, required): Natural language description of what you’re looking forlimit(integer, optional): Max results (default: 10, max: 30)types(array of strings, optional): Filter by chunk type:function,class,block,doc,commit
Code search requires the project to be indexed in CodeFire. Check the “Index” status in the CodeFire GUI.
Next Steps
Integration Guide
Learn how to use these tools effectively in your workflow
API Reference
Detailed API schemas and examples
