protect-mcp 0.1.0 → 0.1.1
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 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# protect-mcp
|
|
2
2
|
|
|
3
3
|
Security gateway for MCP servers. Tool-level policies, rate limiting, and structured decision logging.
|
|
4
4
|
|
|
@@ -8,10 +8,10 @@ Security gateway for MCP servers. Tool-level policies, rate limiting, and struct
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
# Observe mode — log all tool calls, allow everything through
|
|
11
|
-
npx
|
|
11
|
+
npx protect-mcp -- node my-server.js
|
|
12
12
|
|
|
13
13
|
# Enforce mode with a policy file
|
|
14
|
-
npx
|
|
14
|
+
npx protect-mcp --policy policy.json --enforce -- node my-server.js
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## How It Works
|
|
@@ -67,7 +67,7 @@ Add to `claude_desktop_config.json`:
|
|
|
67
67
|
"my-protected-server": {
|
|
68
68
|
"command": "npx",
|
|
69
69
|
"args": [
|
|
70
|
-
"-y", "
|
|
70
|
+
"-y", "protect-mcp",
|
|
71
71
|
"--policy", "/path/to/policy.json",
|
|
72
72
|
"--enforce",
|
|
73
73
|
"--", "node", "my-server.js"
|
|
@@ -121,7 +121,7 @@ Options:
|
|
|
121
121
|
## Programmatic API
|
|
122
122
|
|
|
123
123
|
```typescript
|
|
124
|
-
import { ProtectGateway, loadPolicy } from '
|
|
124
|
+
import { ProtectGateway, loadPolicy } from 'protect-mcp'; // npm: protect-mcp
|
|
125
125
|
|
|
126
126
|
const { policy, digest } = loadPolicy('./policy.json');
|
|
127
127
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "protect-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Security gateway for MCP servers. Tool-level policies, rate limiting, and structured decision logging. Observe-by-default.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|