You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(web): reject repository-scoped access tokens in skill tools
Scoped tokens are documented to grant access to selected repositories only,
so the skill tools now reject that principal inside each handler and the MCP
server skips registering them for scoped sessions. The handler check is the
real gate: MCP sessions are keyed by owner, not principal, so a session
created with a full credential can later be driven by a scoped token.
Copy file name to clipboardExpand all lines: docs/docs/features/mcp-server.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -457,7 +457,7 @@ Parameters:
457
457
458
458
Creates a new agent skill: a reusable, named instruction set the user can invoke in Ask Sourcebot as a `/<slug>` slash command or have loaded automatically when a request matches its description. The skill is personal to the authenticated user and enabled immediately. The result includes a link to the skill in **Settings → Skills**.
459
459
460
-
Requires an authenticated user (API key or OAuth) and the Ask Sourcebot feature. Anonymous sessions do not see this tool.
460
+
Requires an authenticated user (API key or OAuth) and the Ask Sourcebot feature. Anonymous sessions and repository-scoped access tokens cannot use this tool.
461
461
462
462
Parameters:
463
463
| Name | Required | Description |
@@ -471,7 +471,7 @@ Parameters:
471
471
472
472
Updates an existing agent skill in place. Omitted content fields keep their current values. Personal skills are editable by their owner. Shared skills are editable only by the user who created them, and only while enabled. Skills synced from a repository file are rejected and must be edited in **Settings → Skills**. This tool never enables/disables a skill and never moves it between the personal and shared catalogs.
473
473
474
-
Requires an authenticated user (API key or OAuth) and the Ask Sourcebot feature. Anonymous sessions do not see this tool.
474
+
Requires an authenticated user (API key or OAuth) and the Ask Sourcebot feature. Anonymous sessions and repository-scoped access tokens cannot use this tool.
475
475
476
476
Parameters:
477
477
| Name | Required | Description |
@@ -487,7 +487,7 @@ Parameters:
487
487
488
488
Lists the agent skills visible to the authenticated user: their personal skills plus the organization's shared skill catalog. Each row includes `slug` and `scope` (the identifier pair `update_skill` needs), `enabled`, `isSynced` (linked to a repository file), `canEdit` (whether `update_skill` can edit it), and, on shared rows, `adopted`. Skill instructions are never included.
489
489
490
-
Requires an authenticated user (API key or OAuth) and the Ask Sourcebot feature. Anonymous sessions do not see this tool.
490
+
Requires an authenticated user (API key or OAuth) and the Ask Sourcebot feature. Anonymous sessions and repository-scoped access tokens cannot use this tool.
0 commit comments