Skip to content

Commit cb2833d

Browse files
nits
1 parent 6823a6a commit cb2833d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/docs/features/mcp-server.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ Parameters:
241241
| `query` | yes | The query to ask about the codebase. |
242242
| `repos` | no | The repositories that are accessible to the agent during the chat. If not provided, all repositories are accessible. |
243243
| `languageModel` | no | The language model to use for answering the question. Object with `provider` and `model`. If not provided, defaults to the first model in the config. Use `list_language_models` to see available options. |
244+
| `visibility` | no | The visibility of the chat session (`'PRIVATE'` or `'PUBLIC'`). Defaults to `PRIVATE` for authenticated users and `PUBLIC` for anonymous users. Set to `PUBLIC` to make the chat viewable by anyone with the link (useful in shared environments like Slack). |
244245

245246

246247
## Environment Variables

packages/mcp/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ Ask a natural language question about the codebase. This tool uses an AI agent t
276276
| `query` | yes | The query to ask about the codebase. |
277277
| `repos` | no | The repositories that are accessible to the agent during the chat. If not provided, all repositories are accessible. |
278278
| `languageModel` | no | The language model to use for answering the question. Object with `provider` and `model`. If not provided, defaults to the first model in the config. Use `list_language_models` to see available options. |
279+
| `visibility` | no | The visibility of the chat session (`'PRIVATE'` or `'PUBLIC'`). Defaults to `PRIVATE` for authenticated users and `PUBLIC` for anonymous users. Set to `PUBLIC` to make the chat viewable by anyone with the link (useful in shared environments like Slack). |
279280

280281
</details>
281282

packages/mcp/src/env.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { z } from "zod";
33

44
export const numberSchema = z.coerce.number();
55

6-
const SOURCEBOT_DEMO_HOST = "https://demo.sourcebot.dev";
6+
const SOURCEBOT_DEFAULT_HOST = "http://localhost:3000";
77

88
export const env = createEnv({
99
server: {
10-
SOURCEBOT_HOST: z.string().url().default(SOURCEBOT_DEMO_HOST),
10+
SOURCEBOT_HOST: z.string().url().default(SOURCEBOT_DEFAULT_HOST),
1111

1212
SOURCEBOT_API_KEY: z.string().optional(),
1313

0 commit comments

Comments
 (0)