@gainable.dev/mcp-server 0.2.1 → 0.3.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/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -21,9 +21,9 @@ const userConfig = UserConfigSchema.parse({
|
|
|
21
21
|
notificationTimeoutMs: 82800000,
|
|
22
22
|
// Weavy manages session IDs externally — accept any session ID without requiring initialize
|
|
23
23
|
externallyManagedSessions: true,
|
|
24
|
-
// Auth: validate X-
|
|
25
|
-
httpHeaders: process.env.
|
|
26
|
-
? { 'x-
|
|
24
|
+
// Auth: validate X-Mcp-Key header on every request (returns 403 if invalid)
|
|
25
|
+
httpHeaders: process.env.MCP_API_KEY
|
|
26
|
+
? { 'x-mcp-key': process.env.MCP_API_KEY }
|
|
27
27
|
: {},
|
|
28
28
|
disabledTools: [
|
|
29
29
|
'drop-database', 'drop-collection', 'create-collection',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gainable.dev/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Scoped MCP server for Gainable in-app copilot agents — wraps mongodb-mcp-server with per-app data isolation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"test:watch": "vitest"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
|
-
"access": "
|
|
22
|
+
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"dotenv": "^17.3.1",
|