We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gergelyszerovay/mcp-id-date'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
setupRestServer.ts•612 B
import { getAppState } from '@features/app-state/getAppState';
import { createExpressApp } from './internal/createExpressApp';
/**
* Sets up the REST server for handling API requests
*/
export function setupRestServer(): void {
const { app } = createExpressApp();
// Get the most current application state for the port
const { restHttpPort } = getAppState();
// Start the server
app.listen(restHttpPort, () => {
console.error(`REST Server running on port ${String(restHttpPort)}`);
console.error(`API documentation available at http://localhost:${String(restHttpPort)}/api-docs`);
});
}