frontrun-mcp-server
Advanced tools
+19
-6
@@ -28,8 +28,21 @@ #!/usr/bin/env node | ||
| if (args[0] === '--setup' || args[0] === '--setup-code') { | ||
| const apiKey = args[1]; | ||
| let apiKey = args[1]; | ||
| // If no key provided, use saved credentials from --login | ||
| if (!apiKey || !apiKey.startsWith('sig_')) { | ||
| console.error('\n Usage:'); | ||
| console.error(' npx frontrun-mcp-server --setup YOUR_API_KEY'); | ||
| console.error(' npx frontrun-mcp-server --setup-code YOUR_API_KEY\n'); | ||
| console.error(' Get your API key at https://frontrun.vc → Settings → API Keys\n'); | ||
| const credsDir = join(homedir(), '.frontrun'); | ||
| const credsPath = join(credsDir, 'credentials.json'); | ||
| try { | ||
| if (existsSync(credsPath)) { | ||
| const creds = JSON.parse(readFileSync(credsPath, 'utf8')); | ||
| if (creds.api_key) { | ||
| apiKey = creds.api_key; | ||
| console.log(`\n Using saved credentials${creds.user ? ` (${creds.user})` : ''}`); | ||
| } | ||
| } | ||
| } catch {} | ||
| } | ||
| if (!apiKey || !apiKey.startsWith('sig_')) { | ||
| console.error('\n No API key found. Either:'); | ||
| console.error(' 1. Log in first: npx frontrun-mcp-server --login'); | ||
| console.error(' 2. Pass a key: npx frontrun-mcp-server --setup YOUR_API_KEY\n'); | ||
| process.exit(1); | ||
@@ -295,3 +308,3 @@ } | ||
| name: 'frontrun', | ||
| version: '2.3.1', | ||
| version: '2.3.2', | ||
| }); | ||
@@ -298,0 +311,0 @@ |
+1
-1
| { | ||
| "name": "frontrun-mcp-server", | ||
| "version": "2.3.1", | ||
| "version": "2.3.2", | ||
| "description": "Frontrun MCP Server — VC follow signal intelligence, company research, and deal discovery for AI agents. 29 tools.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
36638
1.28%630
2.11%