upsert_project
Create or update a project registry entry with metadata such as title, workspace path, repository, energy level, and parent project. Use it to persist local hub project configuration and nesting depth.
Instructions
Create or update a project registry entry and its explicit metadata.
Use when setting title, workspace path, repository, energy, parent, or forge
targeting. parent_slug nests under any project (unlimited depth; cycles rejected).
This persists local Hub project configuration; it does not by itself create,
rename, or delete a remote forge repository.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>"
},
"name": "upsert_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Project identifier, normalized to a slug; null derives it from title. Reuse the existing slug to update. | |
| title | Yes | Required project display title; replaces the existing title when updating. | |
| energy | No | Project default energy: low, medium, high or unknown; defaults to unknown and replaces the existing default. | unknown |
| repo_url | No | Complete HTTP(S) repository URL; null clears an existing URL. Never include credentials. | |
| forge_repo | No | Forge repository name; null preserves existing configuration. Used with forge_owner for sync targeting. | |
| description | No | Optional project description; null preserves an existing description. | |
| forge_owner | No | Forge repository owner or organization; null preserves existing configuration. | |
| parent_slug | No | Existing parent project slug; null preserves nesting, empty string clears it. Cycles and missing parents are rejected. | |
| workspace_path | No | Optional client workspace folder path to add to the project mapping; existing paths are retained. | |
| forge_wiki_path | No | Optional wiki checkout path used by forge sync; null preserves existing configuration. | |
| forge_project_id | No | Optional forge project-board identifier as a string; null preserves existing configuration. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||