Repository navigation
Studio: turn on agent access (MCP) from Settings > API - #13167
Conversation
Adds an owner-only Agent access (MCP) section to Settings > API: a switch for the /mcp server and a copyable setup command for Claude Code, Codex, OpenCode, Hermes Agent, OpenClaw, Mistral Vibe and DeepSeek Harness, filled with a key made on the same page. It uses the /api/settings/mcp-access route from the MCP server pull request.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…toggle The agent access section read the tunnel preference only when it rendered, so switching Secure HTTPS in the usage examples left the MCP command on the old address until something else re-rendered it. The section now subscribes to the preference.
|
The owner can now turn on agent access (MCP) from Settings > API and copy a ready setup command for their coding agent. The section needs the What changed
Typecheck is clean and
|
mahiatlinux
left a comment
There was a problem hiding this comment.
LGTM! Ready to merge, all manually checked.
Review and verification evidenceReviewed mirror base Codex review confirmed one functional defect: if UI A/BThe live MCP settings endpoint is supplied by dependency PR #13118, so this evidence intentionally overrides the PR merge base. BEFORE is #13118 at Expected: BEFORE has no Agent access card. AFTER shows the owner-only Agent access (MCP) card with the switch enabled, Claude Code selected, and an MCP setup command. Observed facts:
Environment: Ubuntu 26.04.1 LTS x86_64, Google Chrome for Testing 153.0.8010.12, 1440x1000 viewport. Executed checks
|
#13167 added settings.apiKeys.mcp.description and enableDescription saying "Unsloth Studio" in every locale. The desktop app displays itself as Unsloth, and test_tauri_branding_contract sweeps the locale catalogs by key, sparing only the keys that name a remote Unsloth Studio server. These two describe this app's own MCP endpoint and token, so they now say Unsloth, as the existing "Unsloth API key" copy does.


Summary
Owners can turn on agent access (MCP) from Settings > API instead of setting
UNSLOTH_STUDIO_ENABLE_MCP=1. The new Agent access (MCP) section has a switch for the/mcp/server and a copyable setup command for Claude Code, OpenAI Codex, OpenCode, Hermes Agent, OpenClaw, Mistral Vibe and DeepSeek Harness, filled in with a key made on the same page.This is the Settings half of the MCP work. It uses the
/api/settings/mcp-accessroute from #13118, so it should merge after #13118. Until then the section shows the route's error.Details
UNSLOTH_STUDIO_ENABLE_MCP=1is set, the switch shows as on and locked, with "Set by UNSLOTH_STUDIO_ENABLE_MCP."UNSLOTH_API_KEY. The page builds Linux/macOS and Windows variants for each agent and remembers the chosen agent and OS.The
studio/MCP.mdsteps for the Settings switch will follow once #13118 is merged, since that pull request rewrites the file.Testing
From
studio/frontend:npm run typecheck npm test npm run i18n:check:strictTypecheck is clean,
npm testgives 11176 passed and 0 failed, andi18n:check:strictreports no missing MCP keys (thebrowser.*keys it flags are already missing on main).The screenshot runs this branch's frontend against the #13118 backend on CPU. A report-only design check of the section against the Unsloth Studio design system found 0 violations.