Skip to main content
Glama

Smart Prompts MCP Server

test-local.jsโ€ข1.06 kB
// Test script to verify the server can start import { spawn } from 'child_process'; console.log('Testing Smart Prompts MCP Server startup...\n'); // Start the server const server = spawn('node', ['dist/index.js'], { env: { ...process.env, GITHUB_OWNER: 'jezweb', GITHUB_REPO: 'prompts' } }); let output = ''; let errorOutput = ''; server.stdout.on('data', (data) => { output += data.toString(); }); server.stderr.on('data', (data) => { errorOutput += data.toString(); console.log('Server output:', data.toString()); }); // Give server time to start setTimeout(() => { console.log('\nServer started successfully'); console.log('The server is running and will handle MCP protocol messages via stdio'); console.log('\nNote: The server needs a GitHub token to avoid rate limits.'); console.log('Add GITHUB_TOKEN to your .env file or environment variables.'); // Kill the server server.kill(); }, 2000); server.on('close', (code) => { console.log(`\nServer process exited with code ${code}`); process.exit(0); });

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/jezweb/smart-prompts-mcp'

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