setup_project
Register and initialize a new project, creating a local directory and optionally cloning a git knowledge repo, then indexing and binding your session to the project.
Instructions
Register and initialise a new project in Flaiwheel.
Side effects: creates a project directory under MCP_DOCS_PATH, optionally
clones the git knowledge repo, runs an initial index, and binds this
session to the new project. Idempotent — safe to call again if the
project already exists (just rebinds the session).
Call once per project. Use set_project() to switch between already
registered projects. Use list_projects() to see what exists.
Args:
name: Short project identifier, no spaces (e.g. "my-app")
git_repo_url: HTTPS URL of the knowledge git repo (optional,
can be added later via the Web UI)
git_branch: Branch to track for git sync (default: "main")
display_name: Human-readable label shown in the Web UI (optional)
git_auto_push: Auto-commit and push write_*() docs to git (default: True)
git_sync_interval: Background git pull interval in seconds (default: 300)
Returns:
Project name, chunk count, active-project confirmation, and next steps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| git_repo_url | No | ||
| git_branch | No | main | |
| display_name | No | ||
| git_auto_push | No | ||
| git_sync_interval | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |