Conversation
|
Folded the error-path test commit from the fork follow-up into this branch (commit 500619a). Tests: |
e4cb67d to
31d9af1
Compare
31d9af1 to
3e6bba5
Compare
3e6bba5 to
ab316fa
Compare
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Refs #28567. Stacked on #32936.
Type of change
What does this PR do?
Adds the resource templates / completion slice for MCP.
This adds
resources/templates/listsupport through the MCP service, using the same pagination path as tools, prompts, and resources.It also adds
completion/completeplumbing for prompt refs and resource template refs. This is intentionally service-level only for now; it does not add dropdown UI or decide how completions should be surfaced in the TUI.How did you verify your code works?
bun test --timeout 30000 test/mcp/lifecycle.test.tsfrompackages/opencodebun typecheckfrompackages/opencodebun prettier --check packages/opencode/src/mcp/index.ts packages/opencode/src/mcp/catalog.ts packages/opencode/test/mcp/lifecycle.test.ts packages/opencode/test/session/prompt.test.ts packages/opencode/test/session/snapshot-tool-race.test.tsScreenshots / recordings
N/A, no UI change.
Checklist