Skip to main content
Glama

MockLoop MCP Server

Official
by MockLoop
generate_mock.py842 B
#!/usr/bin/env python3 import sys # Add the current directory to path to find the modules sys.path.append(".") # Import the necessary functions directly from src.mockloop_mcp.generator import generate_mock_api from src.mockloop_mcp.parser import load_api_specification def main(): spec_url_or_path = "https://petstore3.swagger.io/api/v3/openapi.json" output_dir_name = "petstore_fixed_final_v3" # Load the API specification parsed_spec = load_api_specification(spec_url_or_path) # Generate the mock API generated_path = generate_mock_api( spec_data=parsed_spec, mock_server_name=output_dir_name, auth_enabled=True, webhooks_enabled=True, admin_ui_enabled=True, storage_enabled=True, ) str(generated_path.resolve()) if __name__ == "__main__": main()

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/MockLoop/mockloop-mcp'

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