Skip to main content
Glama

Swagger/Postman MCP Server

by AlanGreyjoy
test-simple.ts799 B
import { SimpleSwaggerMcpServer } from "./src/swagger-mcp-simple.js"; async function test() { console.log("Testing simplified MCP server..."); const server = new SimpleSwaggerMcpServer("https://api.example.com"); // Test with a simple OpenAPI spec const simpleSpec = { openapi: "3.0.0", info: { title: "Test API", version: "1.0.0", }, paths: { "/users": { get: { operationId: "getUsers", summary: "Get all users", responses: { "200": { description: "Success", }, }, }, }, }, }; console.log("✅ SimpleSwaggerMcpServer created successfully"); console.log("This demonstrates the strategic tool approach works!"); } test().catch(console.error);

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/AlanGreyjoy/swag-mcp'

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