feat: add @xmcp-dev/commet plugin for subscription-aware billing#546
Open
decker-dev wants to merge 13 commits intobasementstudio:canaryfrom
Open
feat: add @xmcp-dev/commet plugin for subscription-aware billing#546decker-dev wants to merge 13 commits intobasementstudio:canaryfrom
decker-dev wants to merge 13 commits intobasementstudio:canaryfrom
Conversation
- CommetProvider with check() for boolean gates and track() for consumption - Supports metered units and AI token tracking per model - Includes commet-http example with free, boolean, metered, and AI token tools - Adds integration docs page
Contributor
|
@decker-dev is attempting to deploy a commit to the xmcp Team on Vercel. A member of the Team first needs to authorize it. |
0xKoller
requested changes
Apr 2, 2026
Collaborator
|
Hoping to see also the quick demo vid if you can too! @decker-dev |
…endency to v1.8.0
…e tracking utilities
…g usage and token tracking
0xKoller
requested changes
Apr 9, 2026
…client usage in tools
Author
|
Quick demo showing the 4 tools: free (no gating), boolean gate (export), metered usage (ai_generate), and AI token tracking (ai_chat). demo_xmcp_commet.mp4 |
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.
Summary
Adds
@xmcp-dev/commet— a billing plugin that connects xmcp servers to Commet for subscription-aware feature gating and usage tracking.Uses xmcp's idiomatic middleware/context pattern. The provider extracts the customer ID from a configurable request header and makes it available to standalone functions via context.
Setup
Feature gating and usage tracking
Uses
@commet/nodeSDK as a dependency — developers only needpnpm i @xmcp-dev/commet.Type of Change
Affected Packages
New package:
packages/plugins/commetScreenshots/Examples
The
commet-httpexample includes 4 tools demonstrating each flow:searchexportcheck()ai_generatetrack()withunitsai_chatcheck()+track()with tokensRelated Issues
N/A