@agentmailbox/mcp-auth 1.0.3 → 1.0.4
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/index.js +3 -3
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -125,10 +125,10 @@ async function main() {
|
|
|
125
125
|
const childEnv = buildChildEnv(process.env);
|
|
126
126
|
childEnv.AUTH_TOKEN = token;
|
|
127
127
|
|
|
128
|
-
// Launch
|
|
128
|
+
// Launch mcp-remote with token passed via environment variable
|
|
129
129
|
const child = spawn('npx', [
|
|
130
130
|
'-y',
|
|
131
|
-
'
|
|
131
|
+
'mcp-remote',
|
|
132
132
|
mcpUrl,
|
|
133
133
|
], {
|
|
134
134
|
stdio: 'inherit',
|
|
@@ -136,7 +136,7 @@ async function main() {
|
|
|
136
136
|
});
|
|
137
137
|
|
|
138
138
|
child.on('error', (err) => {
|
|
139
|
-
console.error('Failed to start
|
|
139
|
+
console.error('Failed to start mcp-remote:', err);
|
|
140
140
|
process.exit(1);
|
|
141
141
|
});
|
|
142
142
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentmailbox/mcp-auth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "OAuth2 Client Credentials wrapper for MCP servers - enables M2M authentication with AgentMailbox",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"
|
|
31
|
+
"mcp-remote": ">=0.1.0"
|
|
32
32
|
}
|
|
33
33
|
}
|