Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

feat: support shared local MCP configuration - #3797

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

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
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

This PR has had no activity for 7 days and has been marked stale. We are moving to the monorepo and tightening PR staleness in preparation, so it will be closed in 7 days if no further activity occurs.

@github-actions github-actions Bot added the stale No recent changes to PR label Aug 1, 2026
@charlesvien

Copy link
Copy Markdown
Member

Hey @MattPua, we've migrated this repo into the PostHog/posthog monorepo, so this PR needs to be recreated there.

Easiest path: check out the monorepo and run the /porting-code-prs skill with your agent pointed at this PR. It has the migration guide and path remappings baked in so the agent doesn't have to figure them out. You don't strictly need it though, just asking your agent to port the PR works fine too.

Shout if you get stuck.

@MattPua MattPua closed this Aug 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

stale No recent changes to PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants