Skip to content

Releases

v2.13.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 11:55
e712841

agy-mcp v2.13.0

Fixes and behavior

  • Runs with refused tool actions fail as agy_error, not done. When agy refuses tool actions under its permission policy, a headless run can still exit 0 with a SUCCESS result carrying a non-empty denied_actions array. agy-mcp now decodes denied_actions and reclassifies clean-exit and payload-recovered SUCCESS runs (including json_schema runs missing structured_output) with refused actions to state: failed and failure_reason: agy_error, ordered after background_aborted and print_timeout so those more specific reasons keep precedence. Any text the run produced is kept as a partial result (partial: false when empty), error names the deduplicated refused actions, and the generic continuation recovery hint is suppressed because error already explains why the run stopped. (#246)

    • Behavior change: a headless run where agy refused tool actions now reports failed / agy_error (with partial: true if it produced text) instead of done.
  • Empty-config sign-in recovery note and OAuth URL omission. On a host with no stored sign-in, agy -p prints Authentication required. Please visit the URL to log in: followed by an indented OAuth URL on stderr, waits 60s, and exits 1 with an ERROR result whose error is authentication failed or timed out (measured against agy 1.4.8 and 1.5.16). agy-mcp now matches that line-scoped prompt so failed agy_error runs surface the sign-in recovery note. The HTTP/HTTPS OAuth URL line immediately following that prompt is omitted across every stderr-echo path (failed job stderr tails, spawn failures, list_models, list_agents, agy_usage, and version-check errors), including errTailBytes window cuts, without stripping unrelated URLs. A job timeout of 60s or less still fires before agy's 60s auth wait and reports timeout instead. (#247)

Documentation

  • Recorded agy 1.5.4 through 1.5.16 changes (including Auto default for headless runs, retry and stall waits, /usage under an API key, ERROR status after retried requests, conversation pruning, and --resume) and new measurements against agy 1.5.16: under --dangerously-skip-permissions, each measured run reported permission_mode: always-proceed, could create files outside cwd and dirs by absolute path, still respected user deny rules, and on a host where agy's terminal sandbox cannot run, --sandbox restricted nothing. Updated MCP tool descriptions, server instructions, internal/agyver notes, and the README to match.
    • Upgrading: restart the agy-mcp server so clients pick up the updated tool descriptions and server instructions.
  • The minimum agy version is unchanged at 1.1.15.

Full changelog: v2.12.0...v2.13.0

v2.12.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 12:02
53c8431

agy-mcp v2.12.0

Features

  • xhigh reasoning effort. agy_run and agy_run_sync now accept effort: xhigh, forwarded to agy as --effort xhigh. agy 1.5.8 added it with Gemini 4 Hydrogen (gemini-4-hydrogen); agy refuses a level the chosen model does not offer. max is still rejected: agy lists it in its own --effort help, but refuses it for gemini-4-hydrogen (measured against agy 1.5.8). The accepted levels are one list in the code, and the validation error names every accepted level. The tool schema and README state the model requirement. (#242)
    • Upgrading: restart the agy-mcp server so clients pick up the new effort schema text.

Documentation

  • The minimum agy version is unchanged at 1.1.15. xhigh needs a model that offers it, which agy 1.5.8 introduced with Gemini 4 Hydrogen (per agy's changelog).

Internal quality

  • golang.org/x/sys 0.50.0 (#241), golang.org/x/oauth2 0.38.0 and golang.org/x/sync 0.25.0 (#243).

Full changelog: v2.11.0...v2.12.0

v2.11.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 13:25
bda6f0c

agy-mcp v2.11.0

Fixes and behavior

  • agy 1.5's expired --print-timeout is timeout, not agy_error. From agy 1.5.0 an expired --print-timeout exits 3 with an ERROR result whose finished_reason is print_timeout (a field agy added in 1.4.11), where agy 1.1.28 through 1.4.x exited 0 with a SUCCESS result. agy-mcp now reads finished_reason and reports that run as timeout, or as background_aborted when the deadline cut a background-task wait short, because continuing the conversation would launch the same background command again. agy's own message is appended to error, any text the run produced is kept as a partial result, and the recovery note still advises continuing the conversation even though agy marks the error retryable: false. A SUCCESS result that carries print_timeout is reported as a timeout too. Measured against agy 1.5.3, 1.4.11 and 1.4.12. (#236, #240)

    • Behavior change: on agy 1.5, a run whose own print timeout wins the race against the supervisor's deadline now reports timeout or background_aborted instead of agy_error. Any finished_reason marks the result partial.
  • partial is never true without a result. A failed or cancelled job that kept no text no longer reports partial: true, and a response that is only line breaks (including CRLF) counts as no text, so the streamed text is used instead. (#239)

  • A structured quota status outranks a print timeout. When agy's AGY_ERROR line carries a quota status together with print_timeout, the run stays quota_exhausted. Text in a terminated command that merely mentions quota does not block the relabel. The canonical status is read from the short_error prefix, and from the line's own status key when that prefix is missing. (#239)

  • Background-abort markers survive long stderr. The two background-abort markers are now looked for in the last 64 KiB of stderr instead of the last 2000 bytes, so a run that terminated several tasks keeps its background_aborted classification. (#239)

Documentation

  • Measured agy behavior is recorded in the README, code comments and tests: a SIGTERM to agy exits 1 with finished_reason: interrupted while a cancel through agy-mcp stays cancelled; background commands that agy turns into daemon tasks are terminated at exit without a wait, so the run is done; an unknown --model is a local exit 1 with no AGY_ERROR line; a model the region does not serve exits 3 with the NOT_FOUND (code 404): prefix kept; a two-task background wait counts both tasks. (#239, #240)
  • Not measured: a quota status together with a print timeout.
  • The minimum agy version is unchanged at 1.1.15.

Internal quality

  • golang.org/x/oauth2 0.37.0, golang.org/x/sync 0.24.0 and golang.org/x/time 0.16.0. (#238)

Full changelog: v2.10.0...v2.11.0

v2.10.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 12:51
b26998e

agy-mcp v2.10.0

Features

  • Structured agy errors: retryable and error_id. Since agy 1.2.6 a headless run that fails a model or API request writes an AGY_ERROR: {...} line to stderr and exits 3. agy-mcp now reads the last such line and reports agy's retryable flag and a validated error_id as two new optional fields on agy_status, agy_wait and agy_run_sync, omitted when no line was parsed. A RESOURCE_EXHAUSTED status promotes the failure to quota_exhausted. When retryable is false, recovery no longer advises continuing with the conversation_id. A missing, cut or malformed line leaves the status as before. Measured against agy 1.3.1. (#207)

  • A sign-in recovery note. A run that fails because agy is not signed in, or because its sign-in expired, now carries a recovery note saying a person must sign agy in on the host running agy-mcp, or check the Application Default Credentials when the server sets AGY_ADC_AUTH. failure_reason stays agy_error. The not-signed-in wording was measured against agy 1.4.8; the expired wording is quoted from agy's changelog. (#226)

  • agy-mcp doctor checks the ADC sign-in environment. A new ADC sign-in env check warns when USE_ADC is set without AGY_ADC_AUTH (agy does not read USE_ADC, measured against agy 1.4.8), and when AGY_ADC_AUTH is on with an agy below 1.4.7, which per agy's changelog did not load skills, rules, custom agents, plugins or hooks under ADC sign-in. The check only warns, so the exit code is unchanged. (#225)

  • list_agents takes a cwd. Measured against agy 1.3.1, agy agents lists a project's .agents/agents/ only when that directory is passed as a workspace. With cwd, the listing sees the same workspace a run with that cwd gets; without it, the command line is unchanged. (#204)

Fixes and behavior

  • The AI credits wall is quota_exhausted. A run stopped by agy's "Your AI credits balance is too low to continue." (agy 1.2.15 and later, per its changelog) was reported as agy_error. The quota_exhausted text no longer promises that error always carries a reset time; agy_usage shows it. (#204)

  • mode: plan is refused. agy ignores --mode plan while --disable-slash-commands is set, and agy-mcp passes that flag on every run so a prompt starting with / stays literal. A plan run therefore applied edits while reporting a normal success. It is now refused at the tool boundary with an error that says why; omit mode and tell the agent in the prompt not to edit files. Measured against agy 1.1.15, 1.1.27, 1.4.6 and 1.4.8. (#220, #232, #234)

    • Behavior change: callers that pass mode: plan now get a tool error instead of a run that edits files.
  • agy's pre-1.1.28 print-timeout expiry is timeout. Before agy 1.1.28 an expired --print-timeout ends as an ERROR result with timeout waiting for response. It is now reported as timeout, the same reason a newer agy's expiry gets, but only when the job also ran for its full recorded timeout. Measured against agy 1.1.15 and 1.1.27. (#229)

  • A recovered job reports its real run time. A job whose supervisor died after agy finished, for example across a reboot, measured elapsed to the spawn time when the run streamed no text, so it read as near zero. It now measures to result.json, written once agy has been reaped. (#235)

  • An unknown agent no longer reads as a quota wall. agy's unknown-agent error lists every available agent, so an agent named like quota-watcher turned any agent typo into quota_exhausted. That line is now left out of the quota check. (#217)

  • Cloud project ids stay out of errors. An AGY_ERROR line's short_error carries the cloud project id and region. It is reduced to its status (for example AGY_ERROR: NOT_FOUND (code 404)) wherever agy-mcp quotes agy's output: the stderr copied into a failed run's error, the errors of list_models, list_agents and agy_usage, and the version text quoted by the version gate and doctor. Classification still reads the unreduced text. (#208, #210, #213)

Internal quality

  • Tests that kill a job's process group now wait for the group to exit, and pin the SIGKILL sent to the group leader. (#201)
  • go.mod names only the Go minor version and CI picks up the latest patch release. CI pins golangci-lint v2.15.0. GoReleaser action 7.3.0 and golang.org/x/sys 0.49.0. (#215, #216, #227)

Documentation

  • The README names AGY_ADC_AUTH for ADC sign-in instead of USE_ADC, which agy does not read. (#223)
  • Measured agy 1.4.8 behavior is recorded for project rules and hooks: project_rules: false does not keep a repository's rules or hooks out of a run, and the README describes the one shape measured to do so. (#230)
  • The minimum agy version is unchanged at 1.1.15; the floor rationale now covers agy up to 1.4.8.

Full changelog: v2.9.0...v2.10.0

v2.9.0

Choose a tag to compare

@github-actions github-actions released this 04 Oct 13:52
2383c27

agy-mcp v2.9.0

Features

  • agy quota tracking: the new agy_usage tool. It runs agy --output-format json -p /usage, a slash command that starts no agent turn and spends no quota (measured against agy 1.2.16). It returns each quota group (the shared Gemini pool, and the Claude and GPT models) with its windows and a level of ok, low, critical or exhausted, set by the group's tightest window. max_age bounds how old a cached reading may be (default 60s, minimum 10s). Readings are cached per server process, concurrent callers share one probe, and a failed probe is remembered for 30s. A background refresher keeps the reading fresh (AGY_MCP_USAGE_INTERVAL, default 5m, 0 disables it). If agy ever answers /usage with a model turn, probing stops for the rest of the process so it cannot keep spending quota. (#198)

  • A quota field on run results. agy_run, agy_run_sync, agy_status and agy_wait results carry a compact quota summary read from that cache. It never waits on agy and is absent when there is no recent reading. (#198)

  • priority: optional on agy_run and agy_run_sync. The default is normal. An optional run on a Gemini model is refused before any job starts while the Gemini group is low or worse, as a tool error that names the group, level, remaining percent and reset time. The guard fails open on an unknown or omitted model, a missing or stale reading, or a probe failure with no earlier trusted reading. It runs after the idempotency_key replay check, so a retry of an existing job always gets that job back. Thresholds are AGY_MCP_USAGE_LOW (default 25 percent) and AGY_MCP_USAGE_CRITICAL (default 5); a bad value fails startup. (#198)

  • Project rule files load by default. agy-mcp now passes the run's cwd to agy as an --add-dir, so the project's AGENTS.md applies to a delegated run, including one at the repository root when cwd is a subdirectory. A caller dir that already names cwd is not duplicated. The new project_rules input on agy_run and agy_run_sync (default true) omits that implicit --add-dir. (#190, #199)

    • This is not an isolation switch. Measured against agy 1.2.9, rules and workspace hooks loaded only with --add-dir. Measured against agy 1.2.16, cwd is a workspace either way: its AGENTS.md is applied and its .agents/hooks.json hooks run with or without the flag. So on current agy, project_rules: false does not keep a repository's rules or hooks out of a run, and it is no longer recommended for untrusted repositories. A working opt-out is tracked in #200.

Fixes and behavior

  • No redundant hook-wait wake for a job the session already collected. agy_wait, agy_status and agy_run_sync record a collected marker when they return a terminal state, and hook-wait exits silently when it finds one, allowing up to one second for it to appear. Anything uncertain still wakes: a job nobody collected, a wait that overran while the job was still running, and agy_status on a running job. agy_cancel records a separate dismissed marker that suppresses the wake only when the job then ends cancelled. A job that had already produced its full answer and then exits under the cancel signal also reads as cancelled and gets no wake, so read a job you cancelled with agy_status before re-running it. (#195, #199)

  • Wake messages name the calling subagent. When the PostToolUse payload carries agent_type, the finish and still-running wake messages say which subagent started the job. Measured against Claude Code 2.1.289: the field is absent on a main-thread call and holds the subagent type inside a subagent. (#195, #199)

  • Recovered jobs get the same stderr checks as a clean exit. A job whose supervisor died after writing agy's result but before its exit-code sentinel is now checked for the background-abort and print-timeout notices, so a cut-short SUCCESS reads as failed (background_aborted or timeout, partial: true) instead of a complete done. (#193)

  • idempotency_key retries compare the request, not the agy argv. A job with an idempotency_key records a hash of its normalized request, so a change to how agy args are built no longer refuses a retry that spans an upgrade. The hash uses the conversation id the caller gave, not one continue_latest resolved, so a retry is not refused because the first run's conversation became the latest. Jobs written by v2.6.0 through v2.8.1 are still compared by args, and also match the argv those releases wrote before the implicit --add-dir <cwd>. (#193, #199)

    • Behavior change: a retry that switches between continue_latest and an explicit conversation_id for the same conversation is now refused as a different request.
  • Stricter matching of a caller dir against cwd. A caller --add-dir counts as naming cwd only when it is the same directory as resolved as written, so link/.. no longer drops the implicit workspace when the link points elsewhere, and a letter-case variant counts only where the filesystem treats it as the same directory. On Windows, a rooted path without a volume (\x, /x) or a drive-relative path (C:repo) never counts as cwd, and a cwd of / no longer produces //dir. Any doubt keeps cwd. (#193, #199)

Internal quality

  • A test checks that every failure_reason value appears in both the tool schema text and the README, and another that every field of the request-key encoding is omitempty. The stored request-key encoding is unchanged. (#199)
  • AGENTS.md documents the layout, the build and test commands, the job directory contract and the public contract rules. CI pins golangci-lint v2.14.0. (#193, #195)

Documentation

  • The README, tool descriptions and server instructions cover agy_usage, the quota field, priority, the new environment variables, project_rules on both agy versions, and the narrow cancel case. Comments record that agy 1.2.6's unlimited default headless timeout does not affect agy-mcp, since it always passes an explicit --print-timeout, and that a Windows child gets a windowless console and Windows has no SIGTTOU equivalent. The minimum agy version is unchanged at 1.1.15. (#190, #193, #198, #199)

Full changelog: v2.8.1...v2.9.0

v2.8.1

Choose a tag to compare

@github-actions github-actions released this 23 Sep 12:06
f825aa5

agy-mcp v2.8.1

Fixes and behavior

  • A run cut short by agy's own --print-timeout is reported as a timeout, not done. Since agy 1.1.28, when agy's own --print-timeout expires mid-turn it returns whatever it has, exits 0 (usually with a SUCCESS payload) and writes a print timeout ... turn in progress; returning partial output notice to stderr. agy-mcp passes the job timeout as --print-timeout and the supervisor arms the same deadline, so the two timers race. When the supervisor's hard kill won, the run was already reported as timeout; when agy's timer won, the run was reported as done with a truncated or empty answer. A clean exit whose stderr carries that notice is now reported failed with failure_reason: timeout, and any text agy returned is kept and flagged partial. The reclassification applies only to the shapes the background-abort check already accepts (a done run, a json-schema SUCCESS without structured_output, a json-schema run with no terminal payload); an ERROR payload, a quota wall, an unrecognized status or unreadable output keeps its own reason. (#187)

  • Background-abort advice takes precedence over the timeout hint. If a run's stderr carries both the background-abort markers and the print-timeout notice, it is reported as background_aborted, so the caller is told to run verification in the foreground rather than to continue a conversation that would relaunch the killed task. (#187)

  • Near-tie timeouts are flagged partial. When the supervisor's hard kill (exit 124) lands just after agy's own print timeout already fired, a SUCCESS response is now flagged partial. (#187)

  • Upgrade note: job status is derived from the job files on every read, so an existing job whose stderr carries the notice and that was previously reported done is reported failed/timeout after upgrading, for the rest of its retention period. This is the intended correction.

Documentation

  • The timeout parameter, failure_reason and partial descriptions and the README now cover both ways a run can time out. They also note agy 1.2.9's change to headless background-task waiting (now until the --print-timeout deadline, capped at 30 minutes, instead of about 5 seconds; background_aborted still fires when a task outlives that budget) and its conversation-database lock fix. The minimum agy version is unchanged at 1.1.15. (#187)

Full changelog: v2.8.0...v2.8.1

v2.8.0

Choose a tag to compare

@github-actions github-actions released this 21 Sep 13:21
9795ea7

agy-mcp v2.8.0

Fixes and behavior

  • Inline waits are capped below the MCP client's per-call timeout. agy_run_sync and agy_wait blocked inline for up to a 2m default and a 10m clamp, but common MCP clients (Claude Code included) abandon a single tool call at roughly 120s and synthesize their own timeout, discarding the server's response and orphaning the running job so it could not be reconciled. The inline-wait ceiling is now 90s, used as both the default and the clamp, keeping a wide margin under that client cap so the still-running result (which carries the job_id to reconcile with agy_wait or agy_status) is delivered inline. A new AGY_MCP_SYNC_WAIT_CAP environment variable overrides the ceiling for a client with a different per-call timeout; a value that is not a positive Go duration is ignored. Longer runs use agy_run plus repeated agy_wait or agy_status, which the tool descriptions and README now spell out. (#181)

  • A json-schema run that idle-kills its background tasks is reported as background_aborted, not a generic agy_error. When agy goes idle with an outstanding background shell command and terminates it at exit (the same headless limitation behind background_aborted), a json-schema run can exit 0 without ever producing usable structured_output. That was classified as agy_error; it is now reclassified to the more actionable background_aborted, which tells the caller to re-run with verification in the foreground, whenever agy's stderr carries the abort markers. This covers both shapes such a run takes: a SUCCESS payload that carries no structured_output, and a clean exit that wrote no terminal payload at all. The reclassification stays evidence-gated on the stderr markers and narrowly scoped, so an indeterminate payload or an unrecognized status keeps its existing reason. (#181, #182)

  • The subagent-delegation limitation is documented. When agy's agent delegates to an internal subagent, the subagent's output is not streamed on the parent run's stdout, so the run can report a SUCCESS payload whose response is only the parent's progress narration while the real result is lost. There is no reliable structural signal to detect this: the parent's token accounting counts the subagent's generation as ordinary output tokens, indistinguishable from a normal tool-heavy run that ends in a short answer. The README documents the limitation and the workaround, which is to instruct the agent to write its findings directly, or to continue the same conversation_id with that instruction. (#182)

Full changelog: v2.7.0...v2.8.0

v2.7.0

Choose a tag to compare

@github-actions github-actions released this 19 Sep 11:18
647f552

agy-mcp v2.7.0

Fixes and behavior

  • Idle-killed background runs are reported as failed, not a phantom success. In headless -p mode agy waits only briefly after its agent goes idle for an outstanding background shell command (a build, a test suite, a typecheck), then terminates it and exits 0 with a SUCCESS payload whose response is only progress narration. agy-mcp used to map that clean exit to state: done, so a caller trusting the state consumed an answer that reflected no completed work. Such a run is now reported as failed with a new failure_reason: background_aborted, detected from agy's own stderr, with the narration kept as a partial result and the conversation_id preserved so the thread can be continued. Detection requires both of agy's markers, each matched on a single stderr line, so a genuinely complete run that merely left a stray background task is not downgraded. When such a run returns no narration at all it is also excluded from the generic continuation hint, since re-running the same background command would just abort again; the guidance to run any verification in the foreground is carried in error instead. The README documents the headless background-command limitation. (#175)

Dependencies

  • Bump github.com/modelcontextprotocol/go-sdk from 1.7.0 to 1.8.0. (#169)
  • Bump golang.org/x/sys from 0.47.0 to 0.48.0. (#170)

Full changelog: v2.6.1...v2.7.0

v2.6.1

Choose a tag to compare

@github-actions github-actions released this 16 Sep 19:21
89ee906

agy-mcp v2.6.1

Fixes and behavior

  • agy runs no longer stall at 0 bytes when launched from a terminal. agy 1.2.x opens /dev/tty and switches it to raw mode at startup, even under -p / --output-format stream-json. The supervisor spawned agy in its own process group but the same session, so agy kept the launching terminal as its controlling terminal while sitting in the background, and a background process performing a terminal-modifying ioctl is stopped by SIGTTOU. Every run launched from a real terminal therefore hung at 0 bytes of output until the print-timeout fired (exit 124). agy is now started in its own session (Setsid on POSIX) with no controlling terminal, so its open("/dev/tty") returns ENXIO and it skips the raw-mode setup instead of stopping. Process-tree termination is preserved (a session leader has pgid == pid, so the existing group kill still tears the whole tree down), and Windows is unaffected. (#171)
  • Unfiltered list_sessions no longer returns ephemeral shim workspaces. agy's shared conversation cache is dominated by the per-call agy-openai-shim/agy-call-<n> workspaces the OpenAI shim creates; agy-mcp never starts a run in one, so they can never be a thread you resume here and were pure noise that crowded out the real workspaces and ballooned the response. An unfiltered listing now drops them. Detection requires both signals (the agy-openai-shim parent segment and an agy-call- leaf), so a legitimate workspace that merely shares one of those names is never dropped. An explicit dir filter is still honored verbatim, so a specific per-call dir stays reachable, and continue_latest is unaffected. (#168)

Docs

  • Noted the agy 1.1.26/1.1.27 conversation-store durability fixes above the agyver floor.

Full changelog: v2.6.0...v2.6.1

v2.6.0

Choose a tag to compare

@github-actions github-actions released this 04 Sep 10:08
6a58af3

agy-mcp v2.6.0

Fixes and behavior

  • Structured schema results are now preserved. A run started with json_schema returns agy's terminal structured_output as the authoritative result instead of the free-text response channel, and a successful schema run that produced no structured_output now fails closed rather than silently returning response-only text. Non-schema runs are unchanged. agy stays responsible for schema conformance; agy-mcp only preserves and selects the correct terminal result channel. (#164, by @deepfriedrabbit)
  • Safe retries via an idempotency key. Delegated runs can carry an idempotency_key, so a transport failure on agy_run / agy_run_sync does not spawn a duplicate job when the call is retried. (#164, by @deepfriedrabbit)
  • doctor probes agy --version once per run instead of twice, by priming its in-process version cache on the version check's success path. (#166)

Internal quality

  • Shared the AGY_MCP_* environment-variable names between config resolution and the doctor command's source reporting, so a rename cannot drift between them. (#166)
  • Consolidated the models and agents JSON listing-envelope framing checks into one shared validator. (#166)
  • Fixed test-fixture cleanup races surfaced by the race detector, including a flaky wait-test family that now stops its fake job at cleanup instead of polling for completion. (#164, #166)
  • Added coverage for concurrent same-key idempotency and conversation-serialization independence, and for the doctor version and reachability failure branches. (#165, #166)
  • Bumped golangci-lint to 2.13.2 to match the local toolchain, and noted the agy 1.1.23/1.1.24 stdin and CLOEXEC fixes above the agyver floor. (ci, docs)

Full changelog: v2.5.0...v2.6.0