@mirsella/context7-account-broker 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  An OpenCode plugin that runs one local Context7 MCP broker across projects and shares quota, caching, affinity, and in-flight requests across configured API keys.
4
4
 
5
+ > [!IMPORTANT]
6
+ > This package supports Linux x86-64 only. macOS, Windows, Linux ARM64, and other platforms are not supported.
7
+
5
8
  ## Setup
6
9
 
7
10
  Add at least one Context7 account:
@@ -44,6 +47,14 @@ context7-account-broker config
44
47
 
45
48
  Use `bunx @mirsella/context7-account-broker ...` when the package is not otherwise installed.
46
49
 
50
+ ### Check account quotas
51
+
52
+ ```sh
53
+ bunx @mirsella/context7-account-broker status
54
+ ```
55
+
56
+ The command prints each account's used and total requests, percentage used, blocked state, and UTC reset time. It makes one Context7 request per configured account to read the current quota headers; the broker does not probe quotas in the background.
57
+
47
58
  ## Architecture
48
59
 
49
60
  The plugin contains a static `x86_64-unknown-linux-musl` binary. One current-thread Tokio process exposes authenticated Streamable HTTP MCP on loopback. It forwards requests directly to the official Context7 REST API with bounded concurrency four.
@@ -58,8 +69,6 @@ Default private state:
58
69
 
59
70
  Optional environment settings are `CONTEXT7_BROKER_CONFIG`, `CONTEXT7_API_KEY`, `CONTEXT7_API_KEYS`, `CONTEXT7_BROKER_INCLUDE_ENV`, `CONTEXT7_BROKER_TOKEN_FILE`, `CONTEXT7_CACHE_DIR`, `CONTEXT7_CACHE_TTL_DAYS`, `CONTEXT7_ACCOUNT_COOLDOWN_MS`, and `CONTEXT7_BROKER_PORT`.
60
71
 
61
- The package supports Linux x64 only.
62
-
63
72
  ## License
64
73
 
65
74
  MIT
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mirsella/context7-account-broker",
3
- "version": "0.2.0",
4
- "description": "Seamless multi-account Context7 plugin for OpenCode",
3
+ "version": "0.2.2",
4
+ "description": "Linux x64 multi-account Context7 plugin for OpenCode",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./server": "./plugin/context7.ts"
Binary file