Project Sentry
Converts Postman collections into MCP tools, enabling AI agents to execute API tests, manage endpoints, and generate test reports using natural language.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Project Sentryrun the full order-to-ship test flow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Project Sentry
An intelligent MCP (Model-Context-Protocol) server for QA automation that bridges AI agents with backend microservices for seamless end-to-end testing.
Overview
Project Sentry transforms your Postman collections into a powerful MCP server that enables AI agents to perform complex, stateful API testing using natural language. It handles authentication, state management, and provides a clean interface for test execution and reporting.
Related MCP server: Postman MCP Generator
Features
Autonomous Authentication: Automatic username/password authentication with Basic auth and retry logic
Stateful Testing: Session-based state store for multi-step test scenarios
Postman Integration: Convert existing Postman collections into MCP tools
AI-Friendly: Designed to reduce cognitive load on AI agents
Transparent Error Handling: Structured error responses with full downstream API details (v1.3)
Environment Configuration: Programmatic access to valid test data and configuration (v1.3)
Comprehensive Reporting: Generate structured test reports in Markdown format
Quick Start
1. Installation
# Clone the repository
git clone <repository-url>
cd postman-replacement
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install fastmcp fastapi uvicorn pydantic pydantic-settings requests typer python-dotenv2. Configuration
Copy the example environment file and configure your settings:
cp .env.example .envEdit .env with your actual values:
# Authentication Configuration
AUTH_BASE_URL=https://steven01-auth.cp.manh.cloud
AUTH_BASIC_TOKEN=b21uaWNvbXBvbmVudC4xLjAuMDpiNHM4cmdUeWc1NVhZTnVu
USERNAME=admin@ecomorg.com
PASSWORD=Password@1
# Target API Configuration
API_BASE_URL=https://omni-steven01.cp.manh.cloud
API_VERSION=v1
# Server Configuration
HOST=localhost
PORT=8000
LOG_LEVEL=INFO3. Ingest Postman Collection
Convert your Postman collection into MCP tools:
sentry-ingest Orders.postman_collection.jsonThis will generate Python tool files in sentry/generated_tools/.
4. Start the Server
source venv/bin/activate
python -m sentryThe server will start on http://localhost:8000 and be ready for MCP client connections.
5. Connect MCP Clients
Cursor IDE Configuration
Add this to your Cursor settings (.cursor-settings/settings.json):
{
"mcp": {
"servers": {
"project-sentry": {
"command": "python",
"args": ["-m", "sentry"],
"cwd": "/Users/nmorrisroe/Desktop/postman-replacement",
"env": {
"PATH": "/Users/nmorrisroe/Desktop/postman-replacement/venv/bin:${PATH}"
}
}
}
}
}Windsurf IDE Configuration
Add this to your Windsurf MCP settings (.windsurf/mcp_servers.json):
{
"mcpServers": {
"project-sentry": {
"command": "python",
"args": ["-m", "sentry"],
"cwd": "/Users/nmorrisroe/Desktop/postman-replacement",
"env": {
"PATH": "/Users/nmorrisroe/Desktop/postman-replacement/venv/bin:${PATH}"
}
}
}
}Generic MCP Client Configuration
For other MCP-compatible clients, use these connection details:
{
"name": "project-sentry",
"description": "QA automation server for API testing",
"transport": {
"type": "stdio",
"command": "python",
"args": ["-m", "sentry"],
"cwd": "/Users/nmorrisroe/Desktop/postman-replacement",
"env": {
"PATH": "/Users/nmorrisroe/Desktop/postman-replacement/venv/bin:${PATH}"
}
}
}Usage
Available Tools
Static Tools
state_setValue(session_id, key, value)- Store data in session statestate_getValue(session_id, key)- Retrieve data from session statestate_clear(session_id)- Clear all session datagenerate_test_report(log, test_name, session_id)- Generate test reportssearch_api_documentation(query)- Search available API toolscontext_get_environment_config()- Get environment configuration (v1.3)context_get_valid_skus(category)- Get valid test SKUs (v1.3)context_get_default_customer()- Get default customer data (v1.3)
Generated Tools (37 Total)
Tools automatically generated from your Orders.postman_collection.json:
Order Management:
create_order_1_item- Create single item ordercreate_order_2_item- Create multi-item orderconfirm_order- Confirm order detailsallocate_order- Allocate inventoryship_order- Ship completed ordercancel_order_line- Cancel specific order lines
Payment Processing:
create_paymentheader1_valid_cc- Create valid credit card paymentcreate_paymentheader1_fraud_cc- Test fraud detectiontrigger_payment_processing- Process paymentsfetch_paymentheader- Retrieve payment details
Fulfillment & Config:
fetch_allocation_config- Get allocation settingsrelease_order- Release order for fulfillmentshort_order- Handle short shipmentsfetch_release_config- Get release configuration
And 27 more tools covering your complete API surface.
Unified Tool Registry and Discovery
Project Sentry now centralizes endpoint definitions in sentry/presets/endpoints.json and dynamically registers both:
Preset tools: one per entry (backward compatible names)
Canonical tools: one per unique
(method, path)named likeinvoke_{method}_{path}
Key components:
sentry/core/tool_registry.py: Loads rich metadata (description, tags, optional schemas/examples) and exposes helpers:list_presets()andlist_canonicals()describe(name)for presets or canonical tools
Static discovery tools:
list_endpoints(kind="all|presets|canonicals")describe_endpoint(name)search_api_documentation(query)
Authoring presets:
Minimal fields supported:
method,path,default_payload,description,tagsOptional rich context fields (all optional):
params_schema,body_schema,headers,examples,usage,notes
Runtime:
sentry/__main__.pyloads presets, registers tools, and records registrations in the registry for discoverability.Use
describe_endpointto see how to use a tool correctly, including presets that share the same canonical endpoint.
What's New in v2.0
š Dynamic Configuration Building
Project Sentry now builds config.json from real tenant API data instead of using static test data:
New CLI Command:
# Build config from tenant APIs
python -m sentry build-config
# Preview what would be built (dry run)
python -m sentry build-config --dry-run
# Save to custom location
python -m sentry build-config --output /path/to/config.jsonAutomatic Config Refresh:
Server automatically rebuilds config on startup
Fails fast if tenant APIs are unreachable
Ensures configuration is always current with your tenant
What Gets Fetched from APIs:
Enterprise codes from Organization API
Supported currencies from Organization configuration
Real SKUs from Item Search API
Order types and document types from Order Config API
What Remains Static:
Test credit card numbers for payment testing
Default customer information (customizable)
Environment metadata
š„ Transparent Error Propagation (v1.3)
API errors are no longer hidden! When a tool makes an API call that results in a non-2xx status code, you now receive:
{
"success": false,
"error": {
"status_code": 400,
"body": {
"errors": [{
"field": "currency",
"message": "Invalid currency code 'EUR'. Must be 'USD' for this enterprise."
}]
},
"headers": {...}
}
}šÆ Environment Configuration (v1.3)
Static tools provide programmatic access to configuration data:
context_get_environment_config()- Get all environment configurationcontext_get_valid_skus()- Get valid test product SKUscontext_get_default_customer()- Get default customer information
Example Test Flow
Here's how an AI agent would use Project Sentry for end-to-end testing:
1. Start with session: "test-session-123"
2. Call: create_order_1_item() -> Store OrderId in state
3. Call: state_setValue(session_id="test-session-123", key="order_id", value="ORD-456")
4. Call: confirm_order() using stored OrderId
5. Call: allocate_order() -> Update order status
6. Call: ship_order() -> Complete fulfillment
7. Call: generate_test_report() -> Create markdown reportThe AI agent can chain these API calls naturally using stored state, without needing to manage authentication or remember IDs between calls.
Architecture
Core Components
AuthManager: Thread-safe singleton for username/password authentication with Basic auth
StateStore: Session-aware in-memory state management
RequestWrapper: HTTP client with automatic retry on 401 errors
Tool Registry: Dynamic discovery and registration of API tools
Project Structure
project-sentry/
āāā .env.example # Environment configuration template
āāā pyproject.toml # Project dependencies and metadata
āāā README.md # This file
āāā sentry/
āāā __main__.py # Server entry point
āāā core/ # Core framework modules
ā āāā auth.py # Authentication management
ā āāā config.py # Configuration loading
ā āāā state.py # State management
ā āāā request_wrapper.py # HTTP client with retry logic
āāā generated_tools/ # Auto-generated API tools
āāā static_tools/ # Hand-crafted utility tools
ā āāā state_tools.py # State management tools
ā āāā reporting.py # Test reporting tools
ā āāā search_tools.py # API discovery tools
āāā ingest.py # Postman collection ingestion CLIDevelopment
Adding Custom Tools
Create new tools in sentry/static_tools/ following this pattern:
from pydantic import BaseModel, Field
class MyToolParams(BaseModel):
param1: str = Field(..., description="Description of parameter")
def my_custom_tool(params: MyToolParams) -> dict:
"""Tool description for AI agents."""
# Implementation here
return {"success": True, "result": "data"}Testing
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black sentry/
isort sentry/Configuration Files
Environment Variables (.env)
Variable | Description | Example |
| Authentication server base URL |
|
| OAuth2 client identifier |
|
| OAuth2 client secret |
|
| Tenant identifier for multi-tenant auth |
|
| Target API server base URL |
|
| API version to use |
|
| Server bind address |
|
| Server port |
|
| Logging verbosity |
|
Environment Configuration (config.json)
The config.json file is now automatically generated from your tenant's live API data:
{
"environment": {
"name": "Live Tenant Environment",
"description": "Configuration built from real tenant API data",
"version": "2.0",
"built_at": "2025-09-09T20:43:10.285Z"
},
"enterprise_codes": {
"default": "YOUR-TENANT-CODE",
"alternatives": ["ALT-CODE-1", "ALT-CODE-2"]
},
"currencies": {
"default": "USD",
"supported": ["USD", "EUR", "GBP", "CAD"]
},
"skus": {
"general": [
{
"id": "REAL-SKU-001",
"name": "Real Product from Your Catalog",
"category": "general",
"price": 99.99,
"description": "Actual product from your tenant"
}
]
}
}Configuration Sources:
Enterprise codes: Fetched from
/cfg/api/configDirector/exportCurrencies: Retrieved from
/api/organization/organization/searchSKUs: Pulled from
/api/search/itemwith real product dataOrder types: Loaded from
/api/order/orderConfig
This configuration is accessible via the context_get_environment_config() tool and is automatically refreshed on server startup.
Troubleshooting
Authentication Issues
Verify your credentials in
.envCheck that the auth server is accessible
Review server logs for detailed error messages
Tool Generation Issues
Ensure your Postman collection is valid JSON
Check that request bodies contain valid JSON examples
Review generated files in
sentry/generated_tools/
Server Startup Issues
Verify all dependencies are installed
Check that the configured port is available
Review the startup logs for specific errors
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
License
[Add your license information here]
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that generates AI agent tools from Postman collections and requests. This server integrates with the Postman API to convert API endpoints into type-safe code that can be used with various AI frameworks.113MIT
- Flicense-qualityDmaintenanceAn MCP server that converts Postman API requests into executable tools for LLMs using the Postman Runtime. It supports complex authentication types and enables seamless integration between Postman collections and MCP clients like Claude Desktop.
- Flicense-qualityDmaintenanceThis MCP server enables intelligent API testing automation by combining RAG knowledge retrieval with tool execution capabilities. It allows QA engineers to perform natural language-driven API testing with contextual knowledge support.
- Alicense-qualityDmaintenanceAn MCP server for AI-powered API testing that enables automated positive, negative, and security testing directly from AI chat interfaces. It supports multiple AI providers and generates detailed security reports.34Inno Setup
Related MCP Connectors
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for AI access to Swagger by SmartBear.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/nmorrisroe-6578/manh_rest_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server