Skip to content

Commit 8e86681

Browse files
Move anonymous user restriction note to API route description
- Remove note from MCP tool descriptions (schemas.ts and index.ts) - Add note to blocking chat API route's visibility parameter description - Clarifies that the restriction is enforced at the API level Co-authored-by: Brendan Kellam <brendan@sourcebot.dev>
1 parent 31ca396 commit 8e86681

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/mcp/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ server.tool(
416416
417417
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.
418418
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. Note: The visibility parameter is only respected for authenticated users. Anonymous users will always create PUBLIC chats regardless of the visibility setting.
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.
420420
421421
This is a blocking operation that may take 30-60+ seconds for complex questions as the agent researches the codebase.
422422
`,

packages/mcp/src/schemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ export const askCodebaseRequestSchema = z.object({
384384
visibility: z
385385
.enum(['PRIVATE', 'PUBLIC'])
386386
.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. Note: Anonymous users cannot create PRIVATE chats; any PRIVATE request from an unauthenticated user will be ignored and set to PUBLIC."),
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."),
388388
});
389389

390390
export const sourceSchema = z.object({

packages/web/src/app/api/(server)/chat/blocking/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const blockingChatRequestSchema = z.object({
3636
visibility: z
3737
.nativeEnum(ChatVisibility)
3838
.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."),
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."),
4040
});
4141

4242
/**

0 commit comments

Comments
 (0)