Skip to main content
Glama

privateGPT MCP Server

by Fujitsu-AI
arxiv-stdio.js975 B
#!/usr/bin/env node const { spawn } = require('child_process'); const { createInterface } = require('readline'); // Spawn the Python process const pythonProcess = spawn('arxiv-mcp-server', [], { stdio: ['pipe', 'pipe', 'pipe'] }); // Set up readline interface for stdin const rl = createInterface({ input: process.stdin, output: process.stdout, terminal: false }); // Forward stdin to the Python process rl.on('line', (line) => { pythonProcess.stdin.write(line + '\n'); }); // Forward stdout from the Python process pythonProcess.stdout.on('data', (data) => { process.stdout.write(data); }); // Forward stderr from the Python process pythonProcess.stderr.on('data', (data) => { console.error(`stderr: ${data}`); }); // Handle process exit pythonProcess.on('close', (code) => { console.error(`child process exited with code ${code}`); process.exit(code); }); // Handle SIGINT (Ctrl+C) process.on('SIGINT', () => { pythonProcess.kill('SIGINT'); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Fujitsu-AI/MCP-Server-for-MAS-Developments'

If you have feedback or need assistance with the MCP directory API, please join our Discord server