Project Config & Activity — Per-Repository Settings and Collaboration Awareness

2026-03-24

apisdk-tssdk-pymcp

Project Config & Activity

What We Built

Two new sub-resource endpoints on the existing /v1/projects/:id resource:

  1. POST /v1/projects/:id/config — Per-project configuration: default model, daily budget, routing strategy, guardrails, conventions, protected paths, team members, and cost center
  2. GET /v1/projects/:id/activity — Collaboration awareness: active sessions on a project within a time window, showing who is working, what they're doing, and cost so far

Additionally:

  • GET /v1/projects/:id/config — Retrieve saved config
  • POST /v1/projects/:id/activity — Report session activity to a project

Why It Matters

When multiple brainstorm instances work on the same project, they need:

  • Consistent configuration — team-wide model selection, budget limits, and guardrails synced through BR
  • Collaboration awareness — see what other instances are doing to avoid conflicts and coordinate

This is the foundation for team-level brainstorm orchestration.

Lockstep Traceability

SurfaceStatusFiles
APIImplementedsrc/api/routes/projects.ts
SDK-TSImplementedpackages/sdk-ts/src/resources/projects.ts, packages/sdk-ts/src/index.ts
SDK-PYImplementedpackages/sdk-py/src/brainstormrouter/resources/projects.py
MCPImplementedsrc/mcp/server.ts, src/mcp/tool-manifest.ts
TestsImplementedsrc/api/routes/projects-config.test.ts
CLIN/ANo CLI commands needed
GTMN/AInternal API
DashboardN/AFuture feature

Key Design Decisions

  • In-memory stores (MVP pattern consistent with phases 041-044) — config and activity stored in Maps keyed by {tenantId}:{projectId}
  • Config is upsert-only — POST replaces entire config, no partial merge (simple, predictable)
  • Activity has time window filtering?since=1h or ?since=30m format, default 1 hour
  • Activity includes reporting endpointPOST /v1/projects/:id/activity so sessions can push their status
  • Tenant-scoped — both stores keyed by tenantId to prevent cross-tenant data leaks