Skip to content

feat: brains resource for the marketplace registry (v0.6.0) - #16

Merged
rrader26 merged 1 commit into
mainfrom
feat/brains-registry
Jul 14, 2026
Merged

feat: brains resource for the marketplace registry (v0.6.0)#16
rrader26 merged 1 commit into
mainfrom
feat/brains-registry

Conversation

@rrader26

Copy link
Copy Markdown
Contributor

Adds the SDK surface for the Brain marketplace registry shipped server-side in memory-thinkfleet (MR-10/11/12).

tf.brains — registry CRUD

Method Endpoint
create(body) POST /projects/:id/brains
list(params?) GET /projects/:id/brains (cursor-paginated SeekPage<Brain>)
get(brainId) GET /projects/:id/brains/:brainId
update(brainId, body) PATCH /projects/:id/brains/:brainId
delete(brainId) DELETE /projects/:id/brains/:brainId

Plus types: Brain, BrainCard, BrainProvenance, BrainVisibility, BrainStatus, CreateBrainRequest, UpdateBrainRequest, ListBrainsParams. Registered on the client as readonly brains, exported from the index, README section added, version → 0.6.0.

Scope

  • Mirrors the existing resource pattern (HttpClient, relative paths under /api/v1/projects/:id).
  • Consumption is intentionally out of scope here — a published brain is consumed over the hosted MCP endpoint (/brains/:brainId/mcp-server/http), an MCP connection rather than a REST call. The clean split: SDK = manage/publish brains; MCP endpoint = consume them.
  • Other-language SDKs (Python/Go/.NET/Rust) don't exist yet, so nothing to update there.

Verified: tsc --noEmit clean, tsup build green (ESM/CJS/DTS).

🤖 Generated with Claude Code

Adds `tf.brains` — CRUD over the Brain Card registry (create / list / get /
update / delete against /projects/:id/brains), plus Brain / BrainCard /
Brain{Visibility,Status} / Create|UpdateBrainRequest / ListBrainsParams types.

Mirrors the existing resource pattern. Consumption of a published brain is over
the hosted MCP endpoint (/brains/:brainId/mcp-server/http) — an MCP connection,
not a REST call — so it stays outside this resource. Typecheck + build green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rrader26
rrader26 merged commit 29b4b8d into main Jul 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants