Skip to content

docs: update Go SDK guide for explicit toolset registry and MCP OAuth token persistence#3193

Open
aheritier wants to merge 2 commits into
mainfrom
docs/auto-update
Open

docs: update Go SDK guide for explicit toolset registry and MCP OAuth token persistence#3193
aheritier wants to merge 2 commits into
mainfrom
docs/auto-update

Conversation

@aheritier

Copy link
Copy Markdown
Contributor

Updates to docs/guides/go-sdk/index.md for two merged PRs.

PR #3184 (refactor: make toolsets and providers explicit): The RAG toolset is now included in NewDefaultToolsetRegistry() by default via pkg/teamloader/toolsets — no blank import needed. Updated the Go SDK guide to replace the opt-in blank-import pattern with the new opt-out registry pattern for binaries that want a load-time warning rather than a deferred runtime error from the !cgo stub.

PR #3189 (refactor: decouple embedder deps): The OS keyring token store for MCP OAuth is now opt-in for library embedders. The CLI calls keyringstore.Register() at startup; embedders must call it themselves before teamloader.Load() on configs with remote MCP toolsets, or tokens are in-memory only. Added a new section documenting this, including the panic on late registration.

PRs reviewed and found no docs impact: #3190 (CHANGELOG), #3187 (remove unused wasm agent), #3183 (prior docs update), #3181 (lean TUI — docs included in PR itself), #3179 (CHANGELOG), #3178 (thinking cycle — covered by #3183).

PR #3184 replaced the blank-import opt-in pattern with an explicit
toolset registry (pkg/teamloader/toolsets). The RAG toolset is now
included in NewDefaultToolsetRegistry() by default.

Document the opt-out pattern (delete creators["rag"] from the registry)
for binaries that want a load-time warning rather than a deferred
runtime error. Note that teamloader.Load() does not return an error for
unknown toolset types — failures become load-time warnings attached to
the agent. Clarify that pkg/rag/treesitter build-tag guards handle the
cgo boundary automatically regardless of CGO_ENABLED.
PR #3189 decoupled the OS keyring token store from the embedder
packages. The CLI calls keyringstore.Register() at startup; embedders
that want persistent MCP OAuth tokens across restarts must call it
before teamloader.Load() on configs with remote MCP toolsets.

Document the Register() call, the panic trigger (MCP toolset
construction, not OAuth lookup), and when to omit it.
@aheritier aheritier requested a review from a team as a code owner June 21, 2026 04:36
@aheritier aheritier added the kind/docs Documentation-only changes label Jun 21, 2026

@docker-agent docker-agent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

No issues found in the changed documentation. The updates to docs/guides/go-sdk/index.md for PR #3184 (explicit toolset registry opt-out pattern) and PR #3189 (MCP OAuth keyring opt-in for embedders) look correct and consistent with the described API changes.

@aheritier aheritier added area/docs Documentation changes area/mcp MCP protocol, MCP tool servers, integration labels Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs Documentation changes area/mcp MCP protocol, MCP tool servers, integration kind/docs Documentation-only changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants