Skip to main content

get_current_project

Get the auto-detected project for this session based on the working directory. Call this first to confirm which project you’re working with.

Parameters

No parameters required.

Returns

project_id
string
The unique identifier for the current project
project_name
string
The display name of the project
working_directory
string
The current working directory path

Example

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_current_project",
    "arguments": {}
  }
}
Response:
Current project: MyApp
Project ID: abc123
Working directory: /Users/dev/projects/myapp

You can omit project_id from tool calls — it will default to this project.

list_projects

List all projects tracked by CodeFire.

Parameters

No parameters required.

Returns

Returns a formatted list of all projects with their IDs, names, and paths.
projects
array
Array of project objects
id
string
Project unique identifier
name
string
Project name
path
string
Absolute path to the project directory

Example

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "list_projects",
    "arguments": {}
  }
}
Response:
Projects (3):
  [abc123] MyApp — /Users/dev/projects/myapp
  [def456] WebService — /Users/dev/projects/webservice
  [ghi789] MobileApp — /Users/dev/projects/mobileapp

Notes

  • Most tools that require a project_id parameter will auto-detect the current project from the working directory
  • If auto-detection fails, you can explicitly pass project_id from the list_projects output
  • Projects are created and managed through the CodeFire GUI application

Build docs developers (and LLMs) love