feat(mcp): add synthetic git endpoints for per-skill plugin distribution#57178
Draft
daniloc wants to merge 6 commits into
Draft
feat(mcp): add synthetic git endpoints for per-skill plugin distribution#57178daniloc wants to merge 6 commits into
daniloc wants to merge 6 commits into
Conversation
Adds a synthetic git smart HTTP layer to the MCP server that enables per-skill install attribution. Instead of one monolithic plugin clone from GitHub, each skill becomes an individually installable plugin served via git clone from mcp.posthog.com, with PostHog analytics events fired on every install and update fetch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Oh I forgot the best part: this is the command to add it to Claude Code
|
Adds a synthetic git smart HTTP layer to the MCP server that enables per-skill install attribution. Instead of one monolithic plugin clone from GitHub, each skill becomes an individually installable plugin served via git clone from mcp.posthog.com, with PostHog analytics events fired on every install and update fetch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… source Resolves merge conflict in index.ts. Replaces hardcoded plugin versions with versions extracted from SKILL.md frontmatter (e.g. 1.12.1 from context-mill). This ensures auto-update works: when context-mill cuts a new release, the version string changes and Claude Code picks it up. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
|
refinement: pipe through the version data from context-mill for ongoing, proper versioning. |
Contributor
|
very nice! excited to see this get rolled out. |
Bundles combine multiple skills into a single plugin served from /git/bundles/:name. The marketplace now lists 11 framework bundles (nextjs, react, python, node, etc.) instead of 84 individual skills. Bundle definitions come from the context-mill manifest. Also fixes duplicate git objects in packfiles when skills share identical reference files (dedup by SHA in synthesizeRepo). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The core plugin now includes a skill that detects the user's tech stack (package.json, requirements.txt, Gemfile, etc.) and recommends the right PostHog bundle to install. The skill content is generated dynamically from the bundle catalog so it stays current as bundles are added. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The recommend-posthog-skills SKILL.md content now comes from the context-mill manifest's recommendSkill field instead of being hardcoded in the MCP server. Content authoring lives in context-mill's bundles.yaml alongside the bundle definitions it references. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
|
further refined to 11 plugins/skill bundles, plus a plugin selection skill that suggests the ideal plugin to install to the user when PostHog-shaped needs arise:
Depends on a new generator in Plugin recommender |
Contributor
Author
Contributor
|
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, please remove the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Adds a synthetic git smart HTTP layer to the MCP server that enables per-skill install attribution. Instead of one monolithic plugin clone from GitHub, each skill becomes an individually installable plugin served via git clone from mcp.posthog.com, with PostHog analytics events fired on every install and update fetch.
Problem
Skill distribution is a bit of a shitshow, and worse yet, we don't know exactly what skills are most desired. This resolves the issue by putting us in direct control of the marketplace interface.
Changes
How did you test this code?
MCP run locally and installed marketplace to Claude Code.
🤖 Agent context
Claude Code reimplemented a strategy I've used in personal projects to good success here. Supplemented with some interesting research: