v1.17.4

anomalyco/opencodev1.17.4Jun 12, 2026by opencode-agent[bot]

AI Summary

The release adds `cwd` support for local MCP servers and connector-based authentication flows. It also introduces v2 API endpoints for session management and fixes performance issues with Git snapshots.

Key Highlights

  • Added `cwd` support for local MCP servers.
  • Added connector-based authentication flows and stored provider credentials.
  • Added v2 API endpoints to create and fetch sessions.
  • Snapshot creation reuses source Git objects to avoid re-hashing delays.

New Features

  • Local MCP server CWD support
  • Connector-based authentication flows
  • v2 API endpoints for sessions
  • Raw file content returns for API/SDK

Full Release Notes

## Core

### Improvements

- Added `cwd` support for local MCP servers so they can start from a workspace-relative directory. (@Grantmartin2002)
- Added connector-based authentication flows and support for stored provider credentials.
- Added v2 API endpoints to create and fetch sessions, list session questions, and resolve the active location.
- File reads now return raw content with the correct content type for API and SDK clients.
- MCP server log notifications are now surfaced in opencode logs.

### Bugfixes

- Fixed Gemini tool schemas that used multi-type fields so compatible tools keep working. (@Killusions)
- Content-filtered model responses now surface as visible errors instead of failing silently. (@kkdawkins)
- Fixed MCP auth and debug requests dropping configured headers.
- Snapshot creation now reuses source Git objects to avoid long re-hashing delays on huge repos. (@dmtrKovalenko)
- Fixed MCP catalog request timeouts not applying when listing prompts, resources, or tools.

**Thank you to 5 community contributors:**
- @dmtrKovalenko:
  - fix(snapshot): reuse source git objects to avoid re-hashing huge repos (#31798)
- @tobwen:
  - fix(tui): preserve exit epilogue during scoped shutdown (#31805)
- @kkdawkins:
  - fix(opencode): surface content-filter finish reason as visible error (#31745)
- @Killusions:
  - fix(gemini): prevent gemini incompatibility with some tools (#31877)
- @Grantmartin2002:
  - feat(opencode): support cwd on local MCP servers (#30676)