@bighub/bighub-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 +116 -31
- package/package.json +15 -4
package/README.md
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
# @bighub/bighub-mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> MCP server for governing AI agent actions with the BIGHUB control plane.
|
|
4
|
+
|
|
5
|
+
Use BIGHUB governance from any [Model Context Protocol](https://modelcontextprotocol.io) client. This server exposes MCP tools that validate, bound, and govern AI agent execution by calling the BIGHUB API — actions, rules, approvals, kill switch, events, API keys, webhooks, auth, and Future Memory.
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
MCP Client (Claude, Cursor, etc.)
|
|
9
|
+
↓
|
|
10
|
+
@bighub/bighub-mcp (stdio)
|
|
11
|
+
↓
|
|
12
|
+
BIGHUB Control Plane API (api.bighub.io)
|
|
13
|
+
↓
|
|
14
|
+
execute / block / require approval
|
|
15
|
+
```
|
|
4
16
|
|
|
5
|
-
|
|
6
|
-
actions, rules, approvals, kill switch, events, API keys, webhooks, and auth.
|
|
17
|
+
---
|
|
7
18
|
|
|
8
19
|
## Install
|
|
9
20
|
|
|
@@ -11,49 +22,123 @@ actions, rules, approvals, kill switch, events, API keys, webhooks, and auth.
|
|
|
11
22
|
npm install @bighub/bighub-mcp
|
|
12
23
|
```
|
|
13
24
|
|
|
14
|
-
|
|
25
|
+
Requires Node.js 18+.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Quickstart
|
|
30
|
+
|
|
31
|
+
1. Set your API key:
|
|
15
32
|
|
|
16
33
|
```bash
|
|
17
|
-
|
|
18
|
-
npm run test
|
|
19
|
-
npm run check
|
|
20
|
-
npm run build
|
|
34
|
+
export BIGHUB_API_KEY=your_api_key
|
|
21
35
|
```
|
|
22
36
|
|
|
23
|
-
Run in stdio mode:
|
|
37
|
+
2. Run the server in stdio mode:
|
|
24
38
|
|
|
25
39
|
```bash
|
|
26
|
-
|
|
40
|
+
npx @bighub/bighub-mcp
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The server exposes MCP tools over stdio. Connect it to any MCP-compatible client (Claude Desktop, Cursor, etc.) by adding it to your MCP configuration:
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"mcpServers": {
|
|
48
|
+
"bighub": {
|
|
49
|
+
"command": "npx",
|
|
50
|
+
"args": ["@bighub/bighub-mcp"],
|
|
51
|
+
"env": {
|
|
52
|
+
"BIGHUB_API_KEY": "your_api_key"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
27
57
|
```
|
|
28
58
|
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## What BIGHUB does
|
|
62
|
+
|
|
63
|
+
BIGHUB is the execution control plane for AI agents in production. It sits between agent reasoning and real-world execution, validating every action against enforceable policies before it reaches production systems.
|
|
64
|
+
|
|
65
|
+
| Without BIGHUB | With BIGHUB |
|
|
66
|
+
|---|---|
|
|
67
|
+
| Agent acts directly in production | Every action validated before execution |
|
|
68
|
+
| Guardrails are suggestions | Policies are enforced at runtime |
|
|
69
|
+
| Logging shows what happened | Decisions are blocked *before* they happen |
|
|
70
|
+
| Autonomy grows, exposure grows | Bounded autonomy, controlled risk |
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
29
74
|
## Environment variables
|
|
30
75
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
76
|
+
| Variable | Required | Default | Description |
|
|
77
|
+
|----------|----------|---------|-------------|
|
|
78
|
+
| `BIGHUB_API_KEY` | Yes* | — | API key authentication (`X-API-Key` header) |
|
|
79
|
+
| `BIGHUB_BEARER_TOKEN` | No | — | Alternative auth (`Authorization: Bearer`) |
|
|
80
|
+
| `BIGHUB_BASE_URL` | No | `https://api.bighub.io` | API base URL |
|
|
81
|
+
| `BIGHUB_TIMEOUT_MS` | No | `15000` | HTTP request timeout in milliseconds |
|
|
82
|
+
| `BIGHUB_MAX_RETRIES` | No | `2` | Retry count on transient failures (429/5xx) |
|
|
83
|
+
| `BIGHUB_ALLOW_INSECURE_HTTP` | No | — | Allow HTTP for localhost/private host testing |
|
|
84
|
+
|
|
85
|
+
*One of `BIGHUB_API_KEY` or `BIGHUB_BEARER_TOKEN` is required.
|
|
86
|
+
|
|
87
|
+
---
|
|
37
88
|
|
|
38
89
|
## Tool coverage
|
|
39
90
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
91
|
+
35+ MCP tools mapping one-to-one to BIGHUB API endpoints:
|
|
92
|
+
|
|
93
|
+
| Domain | Tools | Description |
|
|
94
|
+
|--------|-------|-------------|
|
|
95
|
+
| **Actions** | submit, submit_v2, dry_run, status, verify, stats, dashboard_summary | Validate and govern agent actions before execution. |
|
|
96
|
+
| **Future Memory** | ingest, context, refresh_aggregates, recommendations | Ingest execution events, query learned context, surface policy recommendations. |
|
|
97
|
+
| **Rules** | create, list, get, update, delete, pause, resume, validate, dry_run, versions, domains, apply_patch, purge_idempotency | Define and manage execution policies. |
|
|
98
|
+
| **Approvals** | list, resolve | Human-in-the-loop approval workflows. |
|
|
99
|
+
| **Kill switch** | status, activate, deactivate | Emergency stop for all agent execution. |
|
|
100
|
+
| **Events** | list, stats | Audit trail for governed decisions. |
|
|
101
|
+
| **API keys** | create, list, delete, rotate, validate, scopes | Manage authentication credentials. |
|
|
102
|
+
| **Webhooks** | create, list, get, update, delete, deliveries, test, list_events, verify_signature, replay | Export governed events to external systems. |
|
|
103
|
+
| **Auth** | signup, login, refresh, logout | Account and session management. |
|
|
104
|
+
| **Fallback** | `bighub_http_request` | Generic tool for any BIGHUB endpoint not yet wrapped. |
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Reliability
|
|
109
|
+
|
|
110
|
+
- Retries with exponential backoff and jitter for transient errors (429, 5xx, network)
|
|
111
|
+
- Configurable timeout per request
|
|
112
|
+
- Structured error metadata preserved from API responses
|
|
113
|
+
- HTTPS enforced by default (override for local testing only)
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Local development
|
|
50
118
|
|
|
51
|
-
|
|
119
|
+
```bash
|
|
120
|
+
git clone https://github.com/bighub-io/bighub.git
|
|
121
|
+
cd bighub/servers/mcp
|
|
122
|
+
npm install
|
|
123
|
+
npm run test # run tests with vitest
|
|
124
|
+
npm run check # typecheck with tsc --noEmit
|
|
125
|
+
npm run build # compile to dist/
|
|
126
|
+
npm run start # run compiled server
|
|
127
|
+
npm run dev # run with tsx (auto-reload)
|
|
128
|
+
```
|
|
52
129
|
|
|
53
|
-
|
|
54
|
-
- Retries use exponential backoff with jitter for transient errors.
|
|
55
|
-
- Errors preserve structured metadata when returned by the API.
|
|
130
|
+
---
|
|
56
131
|
|
|
57
132
|
## Links
|
|
58
133
|
|
|
59
|
-
- [
|
|
134
|
+
- [bighub.io](https://bighub.io)
|
|
135
|
+
- [GitHub — bighub-io/bighub](https://github.com/bighub-io/bighub)
|
|
136
|
+
- [npm — @bighub/bighub-mcp](https://www.npmjs.com/package/@bighub/bighub-mcp)
|
|
137
|
+
- [PyPI — bighub (Python SDK)](https://pypi.org/project/bighub/)
|
|
138
|
+
- [PyPI — bighub-openai](https://pypi.org/project/bighub-openai/)
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## License
|
|
143
|
+
|
|
144
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bighub/bighub-mcp",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "MCP server for governing AI agent actions with the BIGHUB control plane.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -21,11 +21,22 @@
|
|
|
21
21
|
"start": "node dist/index.js",
|
|
22
22
|
"test": "vitest run"
|
|
23
23
|
},
|
|
24
|
+
"homepage": "https://bighub.io",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/bighub-io/bighub.git",
|
|
28
|
+
"directory": "servers/mcp"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/bighub-io/bighub/issues"
|
|
32
|
+
},
|
|
24
33
|
"keywords": [
|
|
25
34
|
"bighub",
|
|
26
35
|
"mcp",
|
|
36
|
+
"model-context-protocol",
|
|
27
37
|
"governance",
|
|
28
|
-
"ai-agents"
|
|
38
|
+
"ai-agents",
|
|
39
|
+
"execution-control"
|
|
29
40
|
],
|
|
30
41
|
"license": "MIT",
|
|
31
42
|
"engines": {
|
|
@@ -41,4 +52,4 @@
|
|
|
41
52
|
"typescript": "^5.9.3",
|
|
42
53
|
"vitest": "^2.1.9"
|
|
43
54
|
}
|
|
44
|
-
}
|
|
55
|
+
}
|