@revealui/mcp 0.1.5 → 0.1.7
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/dist/rate-limiter.d.ts +2 -2
- package/dist/rate-limiter.js +2 -2
- package/package.json +9 -5
package/dist/rate-limiter.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* MCP Rate Limiter
|
|
3
3
|
*
|
|
4
4
|
* In-memory fixed-window rate limiter scoped by tenant + tier.
|
|
5
|
-
* For distributed deployments,
|
|
5
|
+
* For distributed deployments, share state via PGlite or ElectricSQL.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```typescript
|
|
@@ -31,7 +31,7 @@ export interface RateLimitResult {
|
|
|
31
31
|
export declare const DEFAULT_TIER_LIMITS: Record<string, RateLimitConfig>;
|
|
32
32
|
/**
|
|
33
33
|
* In-memory fixed-window rate limiter scoped by tenant + tier.
|
|
34
|
-
* For distributed deployments,
|
|
34
|
+
* For distributed deployments, share state via PGlite or ElectricSQL.
|
|
35
35
|
*/
|
|
36
36
|
export declare class McpRateLimiter {
|
|
37
37
|
private windows;
|
package/dist/rate-limiter.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* MCP Rate Limiter
|
|
3
3
|
*
|
|
4
4
|
* In-memory fixed-window rate limiter scoped by tenant + tier.
|
|
5
|
-
* For distributed deployments,
|
|
5
|
+
* For distributed deployments, share state via PGlite or ElectricSQL.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```typescript
|
|
@@ -30,7 +30,7 @@ export const DEFAULT_TIER_LIMITS = {
|
|
|
30
30
|
// =============================================================================
|
|
31
31
|
/**
|
|
32
32
|
* In-memory fixed-window rate limiter scoped by tenant + tier.
|
|
33
|
-
* For distributed deployments,
|
|
33
|
+
* For distributed deployments, share state via PGlite or ElectricSQL.
|
|
34
34
|
*/
|
|
35
35
|
export class McpRateLimiter {
|
|
36
36
|
windows = new Map();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revealui/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Model Context Protocol integrations for RevealUI — adapter framework, hypervisor, and MCP contracts",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
13
13
|
"dotenv": "^17.2.4",
|
|
14
|
-
"@revealui/config": "0.3.
|
|
15
|
-
"@revealui/contracts": "1.3.
|
|
16
|
-
"@revealui/core": "0.5.
|
|
14
|
+
"@revealui/config": "0.3.1",
|
|
15
|
+
"@revealui/contracts": "1.3.4",
|
|
16
|
+
"@revealui/core": "0.5.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@electric-sql/pglite": "^0.4.2",
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"typescript": "^6.0.2",
|
|
22
22
|
"vitest": "^4.0.18"
|
|
23
23
|
},
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=24.13.0"
|
|
26
|
+
},
|
|
24
27
|
"exports": {
|
|
25
28
|
".": {
|
|
26
29
|
"types": "./dist/index.d.ts",
|
|
@@ -76,7 +79,8 @@
|
|
|
76
79
|
},
|
|
77
80
|
"main": "./dist/index.js",
|
|
78
81
|
"publishConfig": {
|
|
79
|
-
"access": "public"
|
|
82
|
+
"access": "public",
|
|
83
|
+
"registry": "https://registry.npmjs.org"
|
|
80
84
|
},
|
|
81
85
|
"type": "module",
|
|
82
86
|
"types": "./dist/index.d.ts",
|