@justanothermldude/mcp-exec 1.1.0 → 1.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.
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Bridge endpoint URL for tool calls
7
7
  */
8
- const BRIDGE_ENDPOINT = 'http://localhost:3000/call';
8
+ const BRIDGE_ENDPOINT = 'http://127.0.0.1:3000/call';
9
9
  /**
10
10
  * Convert a JSON Schema type to TypeScript type
11
11
  * @param prop - JSON Schema property definition
@@ -158,7 +158,7 @@ function generateMethodDefinition(tool, serverName, bridgePort) {
158
158
  const safeServerName = JSON.stringify(serverName);
159
159
  const safeToolName = JSON.stringify(tool.name);
160
160
  lines.push(` ${methodName}: async (${inputParam}): Promise<unknown> => {`);
161
- lines.push(` const response = await fetch('http://localhost:${bridgePort}/call', {`);
161
+ lines.push(` const response = await fetch('http://127.0.0.1:${bridgePort}/call', {`);
162
162
  lines.push(` method: 'POST',`);
163
163
  lines.push(` headers: { 'Content-Type': 'application/json' },`);
164
164
  lines.push(` body: JSON.stringify({`);
@@ -64,7 +64,7 @@ declare global {
64
64
 
65
65
  globalThis.mcp = {
66
66
  callTool: async (server: string, tool: string, args: Record<string, unknown> = {}) => {
67
- const response = await fetch('http://localhost:${bridgePort}/call', {
67
+ const response = await fetch('http://127.0.0.1:${bridgePort}/call', {
68
68
  method: 'POST',
69
69
  headers: { 'Content-Type': 'application/json' },
70
70
  body: JSON.stringify({ server, tool, args }),
@@ -57,7 +57,7 @@ declare global {
57
57
 
58
58
  globalThis.mcp = {
59
59
  callTool: async (server: string, tool: string, args: Record<string, unknown> = {}) => {
60
- const response = await fetch('http://localhost:${bridgePort}/call', {
60
+ const response = await fetch('http://127.0.0.1:${bridgePort}/call', {
61
61
  method: 'POST',
62
62
  headers: { 'Content-Type': 'application/json' },
63
63
  body: JSON.stringify({ server, tool, args }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justanothermldude/mcp-exec",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "MCP execution utilities for sandboxed code execution with OS-level isolation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",