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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Fixed
11
11
- Fixed Bitbucket Server and Cloud repo identifiers to include the project key, preventing collisions across projects. [#904](https://github.com/sourcebot-dev/sourcebot/pull/904)
12
12
13
+
### Added
14
+
- Added optional `visibility` parameter to `/api/chat/blocking` endpoint and MCP `ask_codebase` tool to allow controlling chat session visibility in shared environments. [#903](https://github.com/sourcebot-dev/sourcebot/pull/903)
Copy file name to clipboardExpand all lines: packages/mcp/src/index.ts
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -416,6 +416,8 @@ server.tool(
416
416
417
417
Returns a detailed answer in markdown format with code references, plus a link to view the full research session (including all tool calls and reasoning) in the Sourcebot web UI.
418
418
419
+
When using this in shared environments (e.g., Slack), you can set the visibility parameter to 'PUBLIC' to ensure everyone can access the chat link.
420
+
419
421
This is a blocking operation that may take 30-60+ seconds for complex questions as the agent researches the codebase.
.describe("The language model to use for answering the question. If not provided, defaults to the first model in the config. Use list_language_models to see available options."),
384
+
visibility: z
385
+
.enum(['PRIVATE','PUBLIC'])
386
+
.optional()
387
+
.describe("The visibility of the chat session. If not provided, defaults to PRIVATE for authenticated users and PUBLIC for anonymous users. Set to PUBLIC to make the chat viewable by anyone with the link."),
.describe("The language model to use for the chat. If not provided, the first configured model is used."),
36
+
visibility: z
37
+
.nativeEnum(ChatVisibility)
38
+
.optional()
39
+
.describe("The visibility of the chat session. If not provided, defaults to PRIVATE for authenticated users and PUBLIC for anonymous users. Set to PUBLIC to make the chat viewable by anyone with the link. Note: Anonymous users cannot create PRIVATE chats; any PRIVATE request from an unauthenticated user will be ignored and set to PUBLIC."),
0 commit comments