Scan your whole stack
From OX Research Newsroom
Are you using mcp-proxy-adapter-dev?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v8.11.21
mcp-proxy-adapter-dev was last scanned on 23 Nov 2026 at version 8.11.21. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 8.11.21 LATEST | 23 Nov 2026 | No rules fired |
| 8.11.20 | 19 Nov 2026 | No rules fired |
| 8.11.19 | 19 Nov 2026 | No rules fired |
| 8.11.18 | 19 Nov 2026 | Not shown |
| 8.11.17 | 19 Nov 2026 | Not shown |
Findings for v8.11.21. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 8.11.21; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Author: Vasiliy Zdanovskiy\ Email: vasilyvz@gmail.com
Cursor / agent rules: the repository overlay is docs/project_overlay.md; the operating contract lives at the repo root — CLAUDE.md with its claude/ package. Agent role behaviour is defined by that contract, not by these docs.
Automated tests live under tests/ (pytest). Manual / integration harnesses, example runners, and release helpers are under scripts/ (for example scripts/test_all_examples.py). The full release-readiness pipeline is python -m pipeline.
MCP Proxy Adapter is a comprehensive framework for building JSON-RPC API servers with built-in security, SSL/TLS support, and proxy registration capabilities. It provides a unified interface for command execution, protocol management, and security enforcement.
job_id immediately without blockingInstallation:
pip install mcp-proxy-adapter
Generate Configuration:
# Generate a simple HTTP configuration
adapter-cfg-gen --protocol http --out config.json
# Generate HTTPS configuration with proxy registration
adapter-cfg-gen --protocol https --with-proxy --out config.json
# Generate mTLS configuration with custom certificates
adapter-cfg-gen --protocol mtls \
--server-cert-file ./certs/server.crt \
--server-key-file ./certs/server.key \
--server-ca-cert-file ./certs/ca.crt \
--out config.json
Validate Configuration:
# Validate configuration file
adapter-cfg-val --file config.json
Start Server:
# Use the generated configuration
python -m mcp_proxy_adapter --config config.json
# Or use the main CLI
mcp-proxy-adapter config validate --file config.json
mcp-proxy-adapter server --config config.json
Embedded consumers that call create_app(app_config=config, config_path=path)
and then ServerEngineFactory.get_engine("hypercorn").run_server(app, bind_config)
may pass only host, port, and log level in bind_config: the factory app
carries its validated server.protocol and server.ssl settings into the
Hypercorn listener. For a FastAPI app built without create_app, pass the
result of build_server_ssl_config(config, config_path=path) in the engine
configuration explicitly. A bare host/port dictionary contains no HTTPS
intent. Supply config_path when certificate paths are relative to the
configuration file.
Access the API:
GET http://localhost:8000/healthPOST http://localhost:8000/api/jsonrpchttp://localhost:8000/docsGET /health and the health JSON-RPC command report a top-level
status of "ok" only when there is no genuine queue-liveness evidence
against it. When queue_manager is enabled (the default),
components.queue carries the live queue liveness payload
({"enabled": true, "status": "healthy" | "degraded" | "unhealthy", ...},
the same data queue_health returns); a dead queue (e.g. jobs stuck
pending with zero running workers) flips the top-level
status to "degraded". Only jobs whose start was requested and that
stay non-RUNNING longer than MCP_PROXY_ADAPTER_QUEUE_HEALTH_START_GRACE_SECONDS
(default 30) count, while running_jobs is 0 and the count reaches
MCP_PROXY_ADAPTER_QUEUE_HEALTH_STARVATION_PENDING_THRESHOLD (default 1);
jobs merely added and never started never degrade health and are reported
in the integer field pending_unstarted_jobs of queue_health. An advisory-only issue (e.g. a low
rlimit_nofile) can still mark the component's own status as
"degraded" without moving the top-level status - see
derive_overall_status() in
mcp_proxy_adapter/integrations/queuemgr_integration/_health.py for the
exact liveness-vs-advisory classification. When queue_manager is
disabled, components.queue is {"enabled": false} and the top-level
status stays "ok". GET /health always returns HTTP 200 when the
server answered at all - the degradation is conveyed by the body, never
by the HTTP status code, so this package's own clients (which treat a
non-2xx /health response as "server unreachable") keep seeing a
degraded-but-reachable server correctly.
Starting from version 6.9.96+, mcp-proxy-adapter supports fire-and-forget execution for queue-backed commands. This enables reliable handling of long-running operations (NLP pipelines, ML inference, data processing, etc.) without HTTP timeout constraints.
job_id immediately (typically < 1 second)queue_get_job_status(job_id)A synchronous (use_queue = False, the default) command that runs past the
configured sync cap (queue_manager.command_timeout, 20s by default) is never
cancelled - it keeps running to completion in the background - and the request
falls back to the same job_id/poll contract as a queue-backed command:
{"success": true, "job_id": "...", "status": "pending",
"message": "Command '<name>' exceeded sync timeout, track via queue_get_job_status",
"store": "queuemgr", "poll_with": "queue_get_job_status", "queued_after_timeout": true}
store names the command family that serves this job_id, not a literal
storage location: every queue_* command (queue_get_job_status,
queue_list_jobs, queue_stop_job, queue_delete_job) works on a
sync-cap-timeout job_id exactly as it does on a real queue-backed job's
job_id - queue_get_job_status publishes the ORIGINAL execution's own
result once it finishes (never a duplicate re-execution), queue_list_jobs
lists it as a normal row, and queue_stop_job/queue_delete_job work on it
too. A client never needs to branch on store; poll_with always names the
one command to poll (queue_get_job_status).
queue_stop_job on a sync-cap job_id interrupts nothing. The execution
is already running inside the server process and is deliberately never
cancelled: a command that offloads its work to a worker thread would ignore
the cancellation anyway, and cancelling the awaitable while that thread runs
on is what corrupts request handling process-wide. So a stop request on a
running sync-cap job_id is answered honestly rather than obeyed - the
command still returns success: true, and its payload reports what actually
happened:
{"job_id": "...", "status": "running", "stop_requested": true,
"requested_status": "stopped", "actual_status": "running", "stopped": false,
"description": "Stop requested; this job is a sync-cap detached execution running in-process and cannot be interrupted - it will run to completion and publish its own terminal result (poll queue_get_job_status)."}
stop_requested is recorded on the fallback job's own manager-level metadata
and appears in this queue_stop_job reply only. It is not visible again
afterwards: queue_get_job_status never serializes metadata into its
response, so a later status poll cannot show that a stop was previously
requested.
Keep polling queue_get_job_status: the execution runs to completion and
publishes its own terminal result under the same job_id. queue_stop_job
is allowed only for a pending or running job, for a sync-cap job_id as
for a real queue-backed job: on an already-terminal job_id it returns the
in-band JOB_STATE_INVALID domain error (error.code -32000,
error.data.domain_code JOB_STATE_INVALID, current_status and
allowed_statuses named). Use queue_delete_job if you simply want to stop
tracking the id. A queue-backed command
(use_queue = True) is unaffected: it runs in its own queuemgr worker process
and queue_stop_job stops it for real.
import asyncio
from mcp_proxy_adapter.client.jsonrpc_client.client import JsonRpcClient
async def main():
# For mTLS or slow networks, increase HTTP timeout
client = JsonRpcClient(
protocol="mtls",
host="127.0.0.1",
port=8080,
cert="/path/to/cert.crt",
key="/path/to/key.key",
ca="/path/to/ca.crt",
timeout=60.0, # HTTP client timeout: 60 seconds (default: 30.0)
)
try:
# Execute queue-backed command with automatic polling
result = await client.execute_command_unified(
command="chunk", # Your long-running command
params={"text": "Very long text...", "window": 3},
auto_poll=True, # Automatically poll until completion
poll_interval=1.0, # Check status every 1 second
timeout=600.0, # Overall timeout: 10 minutes
)
print(f"Job completed: {result['status']}")
print(f"Result: {result['result']}")
except TimeoutError:
print("Job did not complete within timeout")
finally:
await client.close()
asyncio.run(main())
Note: The timeout parameter in JsonRpcClient controls the HTTP client timeout for all requests (including status polling). For mTLS connections or slow networks, you may need to increase this value. You can also set it via the MCP_PROXY_ADAPTER_HTTP_TIMEOUT environment variable.
The HTTP client timeout can be configured in three ways (in order of precedence):
Constructor parameter (highest priority):
client = JsonRpcClient(timeout=60.0) # 60 seconds
Environment variable:
export MCP_PROXY_ADAPTER_HTTP_TIMEOUT=60.0
Default value: 30.0 seconds (if neither parameter nor environment variable is set)
This timeout applies to all HTTP requests including:
queue_get_job_status)For mTLS connections or slow networks, consider increasing the timeout to avoid httpx.ReadTimeout errors.
To enable queue execution for a command, set use_queue = True:
from mcp_proxy_adapter.commands.base import Command
from mcp_proxy_adapter.commands.result import SuccessResult
class ChunkCommand(Command):
"""Example: Long-running NLP chunking command."""
name = "chunk"
descr = "Chunk long text into smaller pieces"
use_queue = True # CRITICAL: Enable queue execution
@classmethod
def get_schema(cls):
return {
"type": "object",
"properties": {
"text": {"type": "string"},
"window": {"type": "integer", "default": 3},
},
"required": ["text"],
}
async def execute(self, text: str, window: int = 3, **kwargs):
# Heavy processing happens here
# This runs in a separate process, not in HTTP handler
chunks = process_text(text, window)
return SuccessResult(data={"chunks": chunks})
job_id immediately and poll status manuallyFor detailed examples, see:
mcp_proxy_adapter/examples/queue_fire_and_forget_example.pymcp-proxy-adapter >= 6.9.96queuemgr >= 1.0.14 (completed jobs retention; manager control-path timeouts fix for add_job / get_job_status / stop_job)UnifiedSecurityMiddleware treats some paths as public (no API key required). By default: /health, /docs, /openapi.json. You can add more via config so that e.g. a WebSocket endpoint is reachable without auth on the HTTP upgrade:
{
"security": {
"enabled": true,
"tokens": { "admin": "your-secret-key" },
"public_paths": ["/health", "/docs", "/openapi.json", "/ws"]
}
}
Alternatively use security.auth.public_paths. Transfer chunk routes (/api/transfer/*) use the same UnifiedSecurityMiddleware and headers (e.g. X-API-Key, mTLS) as JSON-RPC — not a separate anonymous data channel when security is enabled.
job_idCommands like embed_job_status and queue_get_job_status require a job_id. The adapter accepts it in params or at the request top level (for clients that send job_id outside params). If job_id is missing, the adapter returns a clear error instead of forwarding an invalid request.
{"method": "embed_job_status", "params": {"job_id": "<uuid>"}}{"method": "embed_job_status", "params": {}, "job_id": "<uuid>"}The client can wait for job completion via a WebSocket channel (/ws) instead of polling:
await client.wait_for_job_via_websocket(job_id, timeout=60.0) — connect, subscribe, return on first terminal event (job_completed / job_failed).open_bidirectional_ws_channel(client) (or client.open_bidirectional_ws_channel()) — use async with channel, then send_json(...) to send (e.g. subscribe/unsubscribe) and async for msg in channel.receive_iter(): ... to consume server events.Same host, port, auth (X-API-Key or Bearer), and TLS as the JSON-RPC client. Ensure the server exposes /ws and includes /ws in security.public_paths so the upgrade is not blocked.
Subscribe/unsubscribe messages follow the same JSON patterns as job WebSocket delivery (see server job_push handlers and client open_bidirectional_ws_channel).
To try the WebSocket client examples without a real embed service, start the minimal test server (provides embed_queue and /ws):
python examples/run_ws_test_server.py --port 8090
Then in another terminal:
MCP_PORT=8090 python examples/client_websocket_job_status.py
MCP_PORT=8090 python examples/client_bidirectional_websocket.py
The adapter uses a comprehensive JSON configuration file (config.json) that includes all available options. All features are disabled by default and must be explicitly enabled. The configuration system has NO default values - all configuration must be explicitly specified.
uuid (Root Level)Type: string (UUID4 format)\
Required: YES\
Description: Unique identifier for the server instance\
Format: xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx
{
"uuid": "123e4567-e89b-42d3-a456-426614174000"
}
server SectionRequired: YES\ Description: Core server configuration settings
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.