Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(canvas): remove the canvas-comments-mcp flag (#109414)

Shy Alter6b5876803bed
diff --git a/products/canvas/mcp/tools.yaml b/products/canvas/mcp/tools.yaml
index bff1f7ebb754..2bbf7cfb2dd0 100644
--- a/products/canvas/mcp/tools.yaml
+++ b/products/canvas/mcp/tools.yaml
@@ -50,7 +50,6 @@ tools:
param_overrides:
id:
description: ID of the canvas whose comments to list.
- feature_flag: canvas-comments-mcp
canvas-comments-retrieve:
operation: canvases_comments_retrieve
enabled: true
@@ -73,7 +72,6 @@ tools:
description: ID of the canvas the thread is on.
root_comment_id:
description: Root comment id from canvas-comments-list.
- feature_flag: canvas-comments-mcp
canvas-connectors-retrieve:
operation: canvases_connectors_retrieve
enabled: true
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index cbfb9d5c75e3..2d2035313d9d 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -1856,8 +1856,7 @@
"idempotentHint": true,
"openWorldHint": true,
"readOnlyHint": true
- },
- "feature_flag": "canvas-comments-mcp"
+ }
},
"canvas-comments-retrieve": {
"description": "Read one comment thread on a canvas: the root comment and its replies, oldest first, with the text or region anchor and the canvas version each comment was written on. Read the full thread before you act on a root comment, because a later reply can change the request. If `next` is not null, call again with `cursor`. If an entry has `content_truncated: true`, call again with `comment_id` set to that entry's id and `content_offset` set to its `content_next_offset`.",
@@ -1871,8 +1870,7 @@
"idempotentHint": true,
"openWorldHint": true,
"readOnlyHint": true
- },
- "feature_flag": "canvas-comments-mcp"
+ }
},
"canvas-connectors-retrieve": {
"description": "List the connector catalog a canvas can read live third-party data through with `ph.connectors.call`: every native provider (GitHub) and every MCP store server the authenticated user has connected, each with its tools, their argument schemas, and authoring docs. Use this before writing a canvas that shows pull requests, calendar events, issues, or any other data that must stay fresh per viewer, then declare each provider and tool you call in the project's `capabilities.connectors`. Calls run with the VIEWER's own connection at view time, never the author's, so results are never baked into the source. Only read-only tools may be declared. Pass `mcp_hosts` to include a server the user has not connected yet.",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index e83a98dafd51..174eeb4289b1 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -1871,8 +1871,7 @@
"idempotentHint": true,
"openWorldHint": true,
"readOnlyHint": true
- },
- "feature_flag": "canvas-comments-mcp"
+ }
},
"canvas-comments-retrieve": {
"description": "Read one comment thread on a canvas: the root comment and its replies, oldest first, with the text or region anchor and the canvas version each comment was written on. Read the full thread before you act on a root comment, because a later reply can change the request. If `next` is not null, call again with `cursor`. If an entry has `content_truncated: true`, call again with `comment_id` set to that entry's id and `content_offset` set to its `content_next_offset`.",
@@ -1886,8 +1885,7 @@
"idempotentHint": true,
"openWorldHint": true,
"readOnlyHint": true
- },
- "feature_flag": "canvas-comments-mcp"
+ }
},
"canvas-connectors-retrieve": {
"description": "List the connector catalog a canvas can read live third-party data through with `ph.connectors.call`: every native provider (GitHub) and every MCP store server the authenticated user has connected, each with its tools, their argument schemas, and authoring docs. Use this before writing a canvas that shows pull requests, calendar events, issues, or any other data that must stay fresh per viewer, then declare each provider and tool you call in the project's `capabilities.connectors`. Calls run with the VIEWER's own connection at view time, never the author's, so results are never baked into the source. Only read-only tools may be declared. Pass `mcp_hosts` to include a server the user has not connected yet.",
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/canvas-comments-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/canvas-comments-list.json
new file mode 100644
index 000000000000..7ac836acae12
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/canvas-comments-list.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "cursor": {
+ "description": "Opaque cursor returned by the previous page.",
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "description": "ID of the canvas whose comments to list.",
+ "type": "string"
+ },
+ "include_resolved": {
+ "default": false,
+ "description": "Whether to include resolved comment threads.",
+ "type": "boolean"
+ },
+ "limit": {
+ "default": 50,
+ "description": "Maximum number of root comments to return.",
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ }
+ },
+ "required": ["id"],
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/canvas-comments-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/canvas-comments-retrieve.json
new file mode 100644
index 000000000000..950323cfeac4
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/canvas-comments-retrieve.json
@@ -0,0 +1,38 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "comment_id": {
+ "description": "Comment id whose truncated body should continue. Use with content_offset.",
+ "type": "string"
+ },
+ "content_offset": {
+ "default": 0,
+ "description": "Byte offset returned as content_next_offset for the selected comment.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "cursor": {
+ "description": "Opaque cursor returned by the previous page.",
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "description": "ID of the canvas the thread is on.",
+ "type": "string"
+ },
+ "limit": {
+ "default": 50,
+ "description": "Maximum number of comments in the thread to return.",
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "root_comment_id": {
+ "description": "Root comment id from canvas-comments-list.",
+ "type": "string"
+ }
+ },
+ "required": ["id", "root_comment_id"],
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/tool-filtering.test.ts b/services/mcp/tests/unit/tool-filtering.test.ts
index 588bc33c8446..97a2ca05d188 100644
--- a/services/mcp/tests/unit/tool-filtering.test.ts
+++ b/services/mcp/tests/unit/tool-filtering.test.ts
@@ -997,7 +997,7 @@ describe('Tool Filtering - Feature Flags', () => {
it('getRequiredFeatureFlags should return flags used by current definitions', () => {
const allFlags = getRequiredFeatureFlags()
- const branchFlags = ['self-optimising-workflows', 'canvas-comments-mcp']
+ const branchFlags = ['self-optimising-workflows']
expect(allFlags).toEqual(expect.arrayContaining(branchFlags))
// The flags branches add are asserted on the line above and held out of the list and
// count below. Those belong to master and move with every flag master adds or drops, so a