Skip to main content
Glama

OpenAPI Lambda MCP Server

by ingeno
README.md1.24 kB
# MCP OpenAPI Server Tests Pytest-based test suite for the MCP OpenAPI server. ## Running Tests ### Local Testing ```bash # Start local Docker container just docker-run # Run tests against local server just test # Stop container just docker-stop ``` ### Deployed Testing ```bash # Run tests against deployed Lambda just test-deployed ``` ### Custom URL ```bash # Test against any URL uv run pytest tests/ --mcp-url=https://your-server.com/ -v ``` ## Test Structure - `conftest.py` - Pytest fixtures and configuration - `mcp_url` - Configurable server URL fixture - `mcp_client` - MCP client helper fixture - `test_mcp_server.py` - Test cases - `TestMCPProtocol` - MCP protocol compliance tests - `TestAPIIntegration` - API integration tests - `TestErrorHandling` - Error handling tests ## Test Coverage - ✅ MCP tools/list endpoint - ✅ Tool structure validation - ✅ Tool execution (GET operations) - ✅ Multiple tools availability - ✅ Invalid method handling - ✅ Invalid tool name handling ## Adding New Tests ```python def test_my_feature(mcp_client): """Test my feature.""" response = mcp_client.request("method", params={"key": "value"}) assert response["result"]["expected"] == "value" ```

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/ingeno/mcp-openapi-lambda'

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