Skip to content

Commit 09d2346

Browse files
chore(mcp): Change default sourcebot host to localhost (#906)
1 parent 6823a6a commit 09d2346

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-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/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Added optional `visibility` parameter to `ask_codebase` tool to allow controlling chat session visibility in shared environments. [#903](https://github.com/sourcebot-dev/sourcebot/pull/903)
1212
- Added `defaultBranch`, `isFork`, and `isArchived` fields to the `list_repos` tool response. [#905](https://github.com/sourcebot-dev/sourcebot/pull/905)
1313

14+
### Changed
15+
- Changed `SOURCEBOT_HOST` to default to `http://localhost:3000` instead of `https://demo.sourcebot.dev`, which is now deprecated. [#906](https://github.com/sourcebot-dev/sourcebot/pull/906)
16+
1417
## [1.0.16] - 2026-02-10
1518

1619
### Added

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)