Skip to content

Add posthog MCP tracking#1360

Merged
Code42Cate merged 3 commits into
mainfrom
mcp-posthog
Oct 17, 2025
Merged

Add posthog MCP tracking#1360
Code42Cate merged 3 commits into
mainfrom
mcp-posthog

Conversation

@Code42Cate

@Code42Cate Code42Cate commented Oct 15, 2025

Copy link
Copy Markdown
Contributor

Note

Adds mcp to NewSandbox API and handlers, and records mcp_servers in PostHog when creating sandboxes.

  • API/OpenAPI:
    • Introduces Mcp schema and adds mcp field to NewSandbox in spec/openapi.yml.
    • Regenerates packages/api/internal/api/spec.gen.go, types.gen.go, and test models to include type Mcp and NewSandbox.Mcp.
  • Handlers:
    • startSandbox now accepts an mcp argument; PostSandboxes reads body.Mcp and passes it; PostSandboxesSandboxIDResume passes nil.
    • Adds PostHog property mcp_servers (keys of mcp) to the created_instance event using maps.Keys/slices.Collect.

Written by Cursor Bugbot for commit 1ea7066. This will update automatically on new commits. Configure here.

@Code42Cate Code42Cate marked this pull request as ready for review October 15, 2025 21:40
@Code42Cate Code42Cate merged commit 799df01 into main Oct 17, 2025
27 checks passed
@Code42Cate Code42Cate deleted the mcp-posthog branch October 17, 2025 02:24
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.

2 participants