Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/docs/features/mcp-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ Parameters:
| `query` | yes | The query to ask about the codebase. |
| `repos` | no | The repositories that are accessible to the agent during the chat. If not provided, all repositories are accessible. |
| `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. |
| `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). |


## Environment Variables
Expand Down
3 changes: 3 additions & 0 deletions packages/mcp/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- 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)
- Added `defaultBranch`, `isFork`, and `isArchived` fields to the `list_repos` tool response. [#905](https://github.com/sourcebot-dev/sourcebot/pull/905)

### Changed
- 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)

## [1.0.16] - 2026-02-10

### Added
Expand Down
1 change: 1 addition & 0 deletions packages/mcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ Ask a natural language question about the codebase. This tool uses an AI agent t
| `query` | yes | The query to ask about the codebase. |
| `repos` | no | The repositories that are accessible to the agent during the chat. If not provided, all repositories are accessible. |
| `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. |
| `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). |

</details>

Expand Down
4 changes: 2 additions & 2 deletions packages/mcp/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { z } from "zod";

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

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

export const env = createEnv({
server: {
SOURCEBOT_HOST: z.string().url().default(SOURCEBOT_DEMO_HOST),
SOURCEBOT_HOST: z.string().url().default(SOURCEBOT_DEFAULT_HOST),

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

Expand Down