From cb2833d05696bb665410349e5f345c9c12e04dbb Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Wed, 18 Feb 2026 15:31:41 -0800 Subject: [PATCH 1/3] nits --- docs/docs/features/mcp-server.mdx | 1 + packages/mcp/README.md | 1 + packages/mcp/src/env.ts | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/docs/features/mcp-server.mdx b/docs/docs/features/mcp-server.mdx index 3ac166f1f..0982bba17 100644 --- a/docs/docs/features/mcp-server.mdx +++ b/docs/docs/features/mcp-server.mdx @@ -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 diff --git a/packages/mcp/README.md b/packages/mcp/README.md index c58620dae..ed5afbe49 100644 --- a/packages/mcp/README.md +++ b/packages/mcp/README.md @@ -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). | diff --git a/packages/mcp/src/env.ts b/packages/mcp/src/env.ts index d4cac622d..28d014f45 100644 --- a/packages/mcp/src/env.ts +++ b/packages/mcp/src/env.ts @@ -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(), From 7c2421a0c4960081697fa3d060aa9452df08f4b2 Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Wed, 18 Feb 2026 15:33:32 -0800 Subject: [PATCH 2/3] changelog --- packages/mcp/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/mcp/CHANGELOG.md b/packages/mcp/CHANGELOG.md index 3a91719bd..dcb6a7caf 100644 --- a/packages/mcp/CHANGELOG.md +++ b/packages/mcp/CHANGELOG.md @@ -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_DEFAULT_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 From aa9541bb359a7dad00b14f0d101f9c76658dbab5 Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Wed, 18 Feb 2026 15:34:47 -0800 Subject: [PATCH 3/3] s --- packages/mcp/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mcp/CHANGELOG.md b/packages/mcp/CHANGELOG.md index dcb6a7caf..ecdb98ac8 100644 --- a/packages/mcp/CHANGELOG.md +++ b/packages/mcp/CHANGELOG.md @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added `defaultBranch`, `isFork`, and `isArchived` fields to the `list_repos` tool response. [#905](https://github.com/sourcebot-dev/sourcebot/pull/905) ### Changed -- Changed `SOURCEBOT_DEFAULT_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) +- 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