Skip to content

feat: support shared local MCP configuration#3797

Draft
MattPua wants to merge 2 commits into
mainfrom
posthog-code/local-mcp-config
Draft

feat: support shared local MCP configuration#3797
MattPua wants to merge 2 commits into
mainfrom
posthog-code/local-mcp-config

Conversation

@MattPua

@MattPua MattPua commented Jul 24, 2026

Copy link
Copy Markdown
Member

Problem

There is no visible way in the Posthog Desktop UI to configure local MCP servers. It just reads from a local ./claude but no way to see what is configured

Changes

CleanShot 2026-07-24 at 16 09 42@2x CleanShot 2026-07-24 at 16 05 22@2x CleanShot 2026-07-24 at 16 06 13@2x CleanShot 2026-07-24 at 16 06 36@2x CleanShot 2026-07-24 at 16 06 41@2x

Only affects local runs

  • add ~/.posthog-code/mcp.json for shared stdio and HTTP MCP servers
  • surface and autosave the config from the MCP settings page
  • inject supported servers into both local adapters
  • validate unsupported entries, secure file writes, and keep cloud import feature-gated

How did you test this?

  • 198 focused package tests
  • 7 UI tests
  • pnpm --filter @posthog/agent build
  • affected package and desktop typechecks
  • repository commit hook full typecheck
  • live Electron MCP settings flow over CDP

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

Generated-By: PostHog Code
Task-Id: 70579fde-8f5a-4edf-8d7b-5a3e4dc8f9f4
@trunk-io

trunk-io Bot commented Jul 24, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

React Doctor found 1 issue in 1 file · 1 warning.

1 warning

src/features/skills/SkillCodeEditor.tsx

Reviewed by React Doctor for commit 94fcfdf.

Generated-By: PostHog Code
Task-Id: 70579fde-8f5a-4edf-8d7b-5a3e4dc8f9f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant