We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kelvis-santos/MCP-vscode-examples'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
service.ts•367 B
// MCP Service Pattern Example
// Exemplo fictício de Service MCP (autocontido para apresentação)
import { User } from './entity.js';
export class UserService {
async findById(id: string): Promise<User | null> {
// Simula busca de usuário
if (id === '1') return new User('1', 'Alice', 'alice@email.com', new Date(), new Date());
return null;
}
}