aszmuda/oncp-mcp-server
If you are the rightful owner of oncp-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The Application Resolution MCP Server is an SSE server that facilitates LLM clients in managing automated resolution jobs through a FastAPI service.
Application Resolution MCP Server
This project hosts an MCP-compatible SSE server that lets LLM clients trigger and monitor automated resolution jobs via a downstream FastAPI service.
Prerequisites
- Copy the env template and update the downstream URL:
cp .env.example .env - Ensure the target FastAPI service is reachable from this host.
Run the SSE server
uv run python main.py
- The server binds to
http://localhost:${MCP_SSE_PORT:-8000}/sse(messages flow via/messages/). - Logs report when the transport starts and when shutdown completes.
Client connection examples
- MCP CLI:
npx @modelcontextprotocol/cli connect http://localhost:8000 --transport sse - Raw SSE testing:
curl -N http://localhost:8000/sse
Once connected, call the tools exposed by the server:
start_resolution– launch a job and receive ajob_id.check_resolution_status– poll the current status (QUEUED/RUNNING/COMPLETED/FAILED).get_resolution_reasoning– read the agent’s Markdown reasoning for that job.
Use Ctrl+C to stop the server gracefully; shutdown hooks ensure HTTP clients are torn down cleanly.
Testing & Verification
- Unit tests (httpx client mocking):
uv run pytest - Integration smoke test (spins up a mock downstream API, the MCP SSE server, and an SSE client):
Expected output:
uv run python scripts/smoke_test.py- Mock service and SSE server startup messages
- Tool responses printed inline (job ID, status, reasoning snippet)
Smoke test succeeded ✅on completion
For manual verification, you can also connect using the MCP CLI command above; a successful run will stream SSE events and return tool results identical to the smoke test.