: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(tasks): help agents find related space tasks (#80982)
Dylan Martin911f55c85233
diff --git a/products/tasks/mcp/tools.yaml b/products/tasks/mcp/tools.yamlindex 2bbe5cd04192..9ebe861e5259 100644--- a/products/tasks/mcp/tools.yaml+++ b/products/tasks/mcp/tools.yaml@@ -400,12 +400,12 @@ tools:idempotent: trueenrich_url: '{id}'list: true- title: List tasks+ title: Search and list tasksdescription: >- List agent tasks in the current project. Supports filtering by `origin_product`, `stage`, `organization`,- `repository`, `created_by`, and `internal`. Returns lightweight task metadata only — call tasks-retrieve for- the full task including its latest run, or tasks-runs-list for run history. Requires the calling token's- organization to have Tasks access enabled.+ Search agent tasks before starting related work. Use `search` to match task titles and descriptions, and+ `channel` to limit results to the current space. The results identify who created each task and whether its+ latest run is active. Supports additional filtering by status, repository, creator, origin product, and+ archived or internal state. Requires the calling token's organization to have Tasks access enabled.feature_flag: tasksresponse:include:@@ -416,6 +416,11 @@ tools:- origin_product- repository- internal+ - channel+ - created_by.first_name+ - created_by.last_name+ - latest_run.id+ - latest_run.status- created_at- updated_attasks-models-retrieve:diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 808563faff54..6679141673fd 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -9790,11 +9790,11 @@"feature_flag": "tasks"},"tasks-list": {- "description": "List agent tasks in the current project. Supports filtering by `origin_product`, `stage`, `organization`, `repository`, `created_by`, and `internal`. Returns lightweight task metadata only — call tasks-retrieve for the full task including its latest run, or tasks-runs-list for run history. Requires the calling token's organization to have Tasks access enabled.",+ "description": "Search agent tasks before starting related work. Use `search` to match task titles and descriptions, and `channel` to limit results to the current space. The results identify who created each task and whether its latest run is active. Supports additional filtering by status, repository, creator, origin product, and archived or internal state. Requires the calling token's organization to have Tasks access enabled.","category": "Tasks","feature": "tasks",- "summary": "List tasks",- "title": "List tasks",+ "summary": "Search and list tasks",+ "title": "Search and list tasks","required_scopes": ["task:read"],"annotations": {"destructiveHint": false,diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 451d3e18ee57..a5b3fa11aa20 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -10392,11 +10392,11 @@"feature_flag": "tasks"},"tasks-list": {- "description": "List agent tasks in the current project. Supports filtering by `origin_product`, `stage`, `organization`, `repository`, `created_by`, and `internal`. Returns lightweight task metadata only — call tasks-retrieve for the full task including its latest run, or tasks-runs-list for run history. Requires the calling token's organization to have Tasks access enabled.",+ "description": "Search agent tasks before starting related work. Use `search` to match task titles and descriptions, and `channel` to limit results to the current space. The results identify who created each task and whether its latest run is active. Supports additional filtering by status, repository, creator, origin product, and archived or internal state. Requires the calling token's organization to have Tasks access enabled.","category": "Tasks","feature": "tasks",- "summary": "List tasks",- "title": "List tasks",+ "summary": "Search and list tasks",+ "title": "Search and list tasks","required_scopes": ["task:read"],"annotations": {"destructiveHint": false,diff --git a/services/mcp/src/tools/generated/tasks.ts b/services/mcp/src/tools/generated/tasks.tsindex e7160f9f09af..19d531c22f51 100644--- a/services/mcp/src/tools/generated/tasks.ts+++ b/services/mcp/src/tools/generated/tasks.ts@@ -551,6 +551,11 @@ const tasksList = (): ToolBase<typeof TasksListSchema, WithPostHogUrl<Schemas.Pa'origin_product','repository','internal',+ 'channel',+ 'created_by.first_name',+ 'created_by.last_name',+ 'latest_run.id',+ 'latest_run.status','created_at','updated_at',])