Skip to main content
The Mesa MCP server exposes 22 tools. The Access column shows the level each tool needs (see Authentication). Your agent fetches each tool’s full input and output schema automatically when it connects, so this page focuses on what each tool does. Tools marked Destructive move or delete state that other agents may be using, so they are fenced with optimistic concurrency. A fenced call passes the value it last read, and if the bookmark has moved in the meantime the call is rejected, the agent re-reads and retries, and concurrent agents can’t silently overwrite each other’s work.

Bookmarks

ToolAccessDescription
bookmark_listreadList a repository’s bookmarks and the commit each one points at.
bookmark_resolvereadLook up a bookmark by name: the change and commit it currently points at.
bookmark_createwriteCreate a bookmark pointing at a commit.
bookmark_movewriteDestructive. Move a bookmark to a new commit, how finished work is published, e.g. advancing main to a change’s latest commit. Fenced: rejected if the bookmark moved since it was last read.
bookmark_deletewriteDestructive. Delete a bookmark. Fenced, and requires explicit confirmation.
bookmark_mergewriteDestructive. Merge a source bookmark into a target bookmark, optionally deleting the source afterwards. Fenced.

Changes

ToolAccessDescription
change_getreadFetch a change by id.
change_listreadList the changes reachable from the default bookmark, paginated.
change_historyreadA change’s evolution log: every snapshot it has passed through, each pinned to a commit and timestamp.
change_createwriteStart a new change on top of a bookmark or an existing change.
change_writewriteWrite files to a repository: creates a change (or continues one) and snapshots the files into a commit. Edits too large for one call can be staged across several calls and committed together.

Commits

ToolAccessDescription
commit_getreadFetch a commit by OID.
commit_listreadList the commit history reachable from a ref, paginated.
commit_list_changesreadList the changes reachable from a specific commit, like change_list, but starting from any point in history instead of the default bookmark.

Content & diffs

ToolAccessDescription
diffreadDiff two changes or two commits.
dir_listreadList one level of a directory at a view: a change, commit, or bookmark (defaults to the default bookmark).
path_statreadStat a file, directory, or symlink at a view.
path_contentreadRead file content at a view. Large files are read in pages.

Repositories

ToolAccessDescription
repo_createwriteCreate a repository in your organization, with its default bookmark (main unless overridden) ready to write to.
repo_getreadFetch a repository by name.
repo_listreadList the repositories in your organization.

Guide

ToolAccessDescription
mesa_guidereadThe server’s built-in usage guide, the same guide your agent receives when it connects.