Skip to content

MCP Tool Reference

Concise branch context for the current repository, with optional PR detail, remote URLs, working-tree diffs, and merge-base branch diff.

CLI equivalent: context git

ParameterTypeDefaultCLIDescription
diffbooleanfalse--diffAppend the full unstaged and staged diffs beneath each working-tree section.
branchDiffbooleanfalse--branch-diffAppend the full merge-base diff of the current branch against the default branch.
commentsbooleanfalse--commentsInclude pull request conversation comments.
reviewsbooleanfalse--reviewsInclude individual pull request reviews.
labelsbooleanfalse--labelsInclude pull request labels.
checksbooleanfalse--checksInclude CI check runs.
descriptionbooleantrueomit --no-descriptionInclude the pull request description.
pullRequestbooleantrueomit --no-prInclude the pull request block at all.
remotesbooleanfalse--remotesInclude remote fetch/push URLs in branch metadata.
sincestring--since <date>Only include recent commits after this date.

Deterministic tech-stack summary for a directory: languages, ecosystems, tooling, and frameworks.

CLI equivalent: context stack

ParameterTypeDefaultCLIDescription
dirstring[dir]Directory to scan. Omit to scan the server’s current working directory.

Show context CLI help. Omit name for the full command overview, or pass a command name to scope help.

CLI equivalent: context help [name]

ParameterTypeDefaultCLIDescription
namestring[name]Optional command to scope help to.

Run OpenCode debug commands and return their combined output. Optionally inspect a configured agent by name.

CLI equivalent: context opencode-debug

ParameterTypeDefaultCLIDescription
agentstring--agent <name>Optional agent name to inspect.