Starting reviews

Theme
AMX Review

Log in to the portal

You start a review from your coding client through the MCP server of the review service. The server is at https://review.bmds.io/mcp (streamable HTTP). Every request needs the header Authorization: Bearer <token>.

Get and store the token

Ask the administrator for an MCP token. It is shown once, is personal, and must not be shared or committed. Keep it in the user environment variable AMX_REVIEW_TOKEN. In PowerShell, without echo:

$s = Read-Host 'AMX review token' -AsSecureString; $env:AMX_REVIEW_TOKEN = [Net.NetworkCredential]::new('', $s).Password; [Environment]::SetEnvironmentVariable('AMX_REVIEW_TOKEN', $env:AMX_REVIEW_TOKEN, 'User')

Restart a client that was started elsewhere so that it picks up the variable.

Claude Code

The single quotes keep ${AMX_REVIEW_TOKEN} literal. Claude Code expands it when it connects, so the token never lands in ~/.claude.json:

claude mcp add --scope user --transport http amx-review https://review.bmds.io/mcp --header 'Authorization: Bearer ${AMX_REVIEW_TOKEN}'
claude mcp get amx-review

claude mcp get shows Connected. Running sessions see the server only after a restart.

Codex

Add this block to config.toml. Codex reads the token from AMX_REVIEW_TOKEN:

[mcp_servers.amx-review]
url = "https://review.bmds.io/mcp"
bearer_token_env_var = "AMX_REVIEW_TOKEN"

The tools

  • start_review queues a review for one to ten pull requests. pr_ids lists the pull request numbers. mode is post, which posts comments and a vote, or dry_run, which produces the result without posting anything. It answers with a job id per pull request.
  • review_status shows the state and stage of one job, or your last ten jobs and the queue length when you give no job id.
  • review_result returns the result of a finished job, or its state while it is not finished.
  • cancel_review cancels one of your queued jobs.

Example prompts: "review PR 6293", "dry run review of PR 6293", "status of my reviews". In the personal flow, store both credentials and choose an approver before the first review, otherwise start_review names what is missing. In the legacy flow the review uses the credentials of the server.