@agentsim/mcp-server 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.
Files changed (2) hide show
  1. package/bin/agentsim-mcp.js +38 -0
  2. package/package.json +22 -0
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env node
2
+
3
+ 'use strict';
4
+
5
+ const { spawnSync, execFileSync } = require('child_process');
6
+
7
+ function hasCommand(cmd) {
8
+ try {
9
+ execFileSync(cmd, ['--version'], { stdio: 'ignore' });
10
+ return true;
11
+ } catch {
12
+ return false;
13
+ }
14
+ }
15
+
16
+ const args = process.argv.slice(2);
17
+
18
+ if (hasCommand('uvx')) {
19
+ const result = spawnSync('uvx', ['agentsim-mcp', ...args], {
20
+ stdio: 'inherit',
21
+ env: process.env,
22
+ });
23
+ process.exit(result.status ?? 1);
24
+ } else if (hasCommand('python3') || hasCommand('python')) {
25
+ const python = hasCommand('python3') ? 'python3' : 'python';
26
+ const result = spawnSync(python, ['-m', 'agentsim_mcp.server', ...args], {
27
+ stdio: 'inherit',
28
+ env: process.env,
29
+ });
30
+ process.exit(result.status ?? 1);
31
+ } else {
32
+ process.stderr.write(
33
+ 'AgentSIM MCP: Python runtime not found.\n' +
34
+ 'Install uv (recommended): https://docs.astral.sh/uv/getting-started/installation/\n' +
35
+ 'Or install Python 3.11+: https://python.org\n'
36
+ );
37
+ process.exit(1);
38
+ }
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@agentsim/mcp-server",
3
+ "version": "0.1.1",
4
+ "description": "AgentSIM MCP server — real phone numbers for AI agents",
5
+ "keywords": ["mcp", "agents", "sms", "otp", "phone", "ai", "claude", "cursor"],
6
+ "homepage": "https://agentsim.dev",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/agentsim/agentsim",
10
+ "directory": "mcp"
11
+ },
12
+ "license": "MIT",
13
+ "bin": {
14
+ "agentsim-mcp": "./bin/agentsim-mcp.js"
15
+ },
16
+ "files": [
17
+ "bin/"
18
+ ],
19
+ "engines": {
20
+ "node": ">=18"
21
+ }
22
+ }