MCP & agents

How Codex CLI pushes only one branch: inside osFoundry's MCP tools

DEV: mcp BBT
MCP & agents

A close look at the MCP tools osFoundry exposes to Codex CLI: how a tool schema can confine an agent to one dedicated change-set branch, and why byte budgets and pinned versions decide what gets published.

Key points

  • The publication tool takes only repository_id, change_set_id, version, composition OID and an idempotency_key — no branch name or token.
  • Both publication tools set openWorldHint: true, so the client's own approval dialog fires before the server's card.
  • file_import allows 20 files per call and 100,000 characters per file; mode bits and deletions are rejected by the schema.
  • The 200 KB budget counts UTF-8 bytes, so a 100,000-character Japanese file weighs 300,000 bytes.
  • The push uses one explicit refspec; a plain push --all would have shipped an unvetted wip branch and a release branch.
  • The desktop push validates branch name, marker, hex OID and update-ref's expected old value, refusing symbolic names like HEAD.

Real-world use

  • Importing osFoundry's own TypeScript frontend sources, where 25 files hit the 20-file limit before the byte budget.
  • Shipping 55 Japanese markdown drafts, where UTF-8 at 1.84 bytes per character makes the byte budget the binding limit.
  • Splitting a large component set into four commits that the repository owner approves or rejects one by one.

This summary was generated by the agent from the original post on DEV: mcp. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message