paygate-mcp 8.98.0 → 8.99.0
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 +5 -0
- package/dist/dashboard.d.ts +6 -5
- package/dist/dashboard.d.ts.map +1 -1
- package/dist/dashboard.js +620 -216
- package/dist/dashboard.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/openapi.js +17 -0
- package/dist/openapi.js.map +1 -1
- package/dist/portal.d.ts +16 -0
- package/dist/portal.d.ts.map +1 -0
- package/dist/portal.js +371 -0
- package/dist/portal.js.map +1 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +51 -0
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,6 +80,9 @@ Agent → PayGate (auth + billing) → Your MCP Server (stdio or HTTP)
|
|
|
80
80
|
- **Team Management** — Group API keys into teams with shared budgets, quotas, and usage tracking
|
|
81
81
|
- **Horizontal Scaling (Redis)** — Redis-backed state for multi-process deployments with atomic credit deduction, distributed rate limiting, persistent usage audit trail, real-time pub/sub notifications, and admin API sync
|
|
82
82
|
- **Webhook Retry Queue** — Exponential backoff retry (1s, 2s, 4s...) with dead letter queue for permanently failed deliveries, admin API for monitoring, clearing, and replaying
|
|
83
|
+
- **Admin Dashboard v2** — Tabbed web dashboard at `/dashboard` with overview, keys management (create/suspend/resume/revoke/top-up), analytics (credit flow, deny reasons, top consumers, webhook health), and system status — all data via safe DOM methods, 30s auto-refresh
|
|
84
|
+
- **Self-Service Portal** — API key holder portal at `/portal` — check credits, usage, rate limits, available tools, and recent activity without admin access
|
|
85
|
+
- **Readiness Probe** — `GET /ready` returns 200/503 based on operational state (not draining, not maintenance, backend connected) — separate from `/health` liveness probe, ideal for Kubernetes
|
|
83
86
|
- **Health Check + Graceful Shutdown** — `GET /health` public endpoint with status, uptime, version, in-flight requests, Redis & webhook stats; `gracefulStop()` drains in-flight requests before teardown
|
|
84
87
|
- **Config Validation + Dry Run** — `paygate-mcp validate --config paygate.json` catches misconfigurations before starting; `--dry-run` discovers tools, prints pricing table, then exits
|
|
85
88
|
- **Batch Tool Calls** — `tools/call_batch` method for calling multiple tools in one request with all-or-nothing billing, aggregate credit checks, and parallel execution
|
|
@@ -447,6 +450,8 @@ A real-time admin UI for managing keys, viewing usage, and monitoring tool calls
|
|
|
447
450
|
| `/openapi.json` | GET | None | OpenAPI 3.1 spec (all 130+ endpoints) |
|
|
448
451
|
| `/docs` | GET | None | Interactive API docs (Swagger UI) |
|
|
449
452
|
| `/robots.txt` | GET | None | Crawler directives (allow public, disallow admin/keys) |
|
|
453
|
+
| `/portal` | GET | None | Self-service API key portal (browser UI, auth via X-API-Key prompt) |
|
|
454
|
+
| `/ready` | GET | None | Readiness probe (200 when ready, 503 when draining/maintenance) |
|
|
450
455
|
| `/metrics` | GET | None | Prometheus metrics (counters, gauges, uptime) |
|
|
451
456
|
| `/analytics` | GET | `X-Admin-Key` | Usage analytics (time-series, tool breakdown, trends) |
|
|
452
457
|
| `/alerts` | GET | `X-Admin-Key` | Consume pending alerts |
|
package/dist/dashboard.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Admin Dashboard — Embedded HTML dashboard for PayGate MCP.
|
|
2
|
+
* Admin Dashboard v2 — Embedded HTML dashboard for PayGate MCP.
|
|
3
3
|
*
|
|
4
4
|
* Served at GET /dashboard. Admin key entered via browser prompt.
|
|
5
5
|
* Uses only inline CSS and vanilla JS — no external dependencies.
|
|
6
6
|
* All dynamic content is escaped to prevent XSS.
|
|
7
7
|
*
|
|
8
8
|
* Features:
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
11
|
-
* -
|
|
12
|
-
* -
|
|
9
|
+
* - Tabbed interface: Overview, Keys, Analytics, System
|
|
10
|
+
* - Overview: stat cards, top tools, recent activity, notifications
|
|
11
|
+
* - Keys: full CRUD (create, revoke, suspend, resume, top-up), search/filter
|
|
12
|
+
* - Analytics: credit flow, deny reasons, tool breakdown
|
|
13
|
+
* - System: uptime, health, config, version
|
|
13
14
|
* - Auto-refresh every 30s
|
|
14
15
|
*/
|
|
15
16
|
export declare function getDashboardHtml(serverName: string): string;
|
package/dist/dashboard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../src/dashboard.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../src/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CA4yB3D"}
|