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.

feat(mcp): add amp-mcp-client and Poke to CLI mode clients (#66625)

Georgiy Tarasov52e7ff88dac8
diff --git a/services/mcp/src/lib/client-detection.ts b/services/mcp/src/lib/client-detection.ts
index aee212ffa748..b830d8f36d07 100644
--- a/services/mcp/src/lib/client-detection.ts
+++ b/services/mcp/src/lib/client-detection.ts
@@ -82,6 +82,12 @@ export const CODING_AGENT_CLIENT_NAME_FRAGMENTS = [
// `clientInfo.name` as `opencode`. It renders text, not MCP Apps UI, so it
// wants single-exec mode like the other coding agents.
'opencode',
+ // Amp is Sourcegraph's coding agent; its MCP client self-reports
+ // `clientInfo.name` as `amp-mcp-client` and benefits from single-exec mode.
+ 'amp-mcp-client',
+ // Poke is an LLM-driven assistant that renders text, not MCP Apps UI, so it
+ // wants the same single-exec mode as the coding agents.
+ 'poke',
] as const
// Known `x-anthropic-client` (`vendorClient`) header values. Anthropic pools
diff --git a/services/mcp/tests/unit/client-detection.test.ts b/services/mcp/tests/unit/client-detection.test.ts
index a401a31829d9..07ccbbc8f0e9 100644
--- a/services/mcp/tests/unit/client-detection.test.ts
+++ b/services/mcp/tests/unit/client-detection.test.ts
@@ -34,6 +34,8 @@ describe('isCliModeEnabledClient', () => {
['librechat'],
['notion'],
['opencode'],
+ ['amp-mcp-client'],
+ ['poke'],
])('returns true for %s', (clientName) => {
expect(isCliModeEnabledClient(clientName)).toBe(true)
})
@@ -59,6 +61,8 @@ describe('isCliModeEnabledClient', () => {
['Devin'],
['OpenCode'],
['opencode/1.2.3'],
+ ['Amp MCP Client'],
+ ['Poke'],
])('returns true for variant %s (case-insensitive substring match)', (clientName) => {
expect(isCliModeEnabledClient(clientName)).toBe(true)
})