Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

mcp-proxy-adapter-dev

Latest version: v8.11.21

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: maverikod
5 Versions
518 Downloads

Scan summary

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.

  • Releases: 5 versions, all published within 5 days (19–23 Nov 2026).
  • Findings: No rules fired in version 8.11.21.
  • Downloads: 518 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 8.11.21

Findings

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.

README

The publisher’s own README, as collected from the registry.

MCP Proxy Adapter

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.

Overview

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.

Features

  • JSON-RPC API: Full JSON-RPC 2.0 support with built-in commands
  • Security Framework: Integrated authentication, authorization, and SSL/TLS
  • Protocol Management: HTTP, HTTPS, and mTLS protocol support
  • Proxy Registration: Automatic registration with proxy servers
  • Command System: Extensible command registry with built-in commands
  • Configuration Management: Comprehensive configuration with environment variable overrides
  • Queue-Backed Commands: Fire-and-forget execution for long-running operations (NLP pipelines, ML inference, etc.)
    • HTTP layer returns job_id immediately without blocking
    • Heavy processing runs in separate worker processes
    • Client polls job status independently without HTTP timeout constraints
    • Supports operations that take minutes or hours to complete

Quick Start

  1. Installation:

    pip install mcp-proxy-adapter
  2. 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
  3. Validate Configuration:

    # Validate configuration file
    adapter-cfg-val --file config.json
  4. 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.

  5. Access the API:

    • Health check: GET http://localhost:8000/health
    • JSON-RPC: POST http://localhost:8000/api/jsonrpc
    • Documentation: http://localhost:8000/docs

    GET /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.

Queue-Backed Commands (Fire-and-Forget Execution)

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.

How It Works
  1. Client submits command via JSON-RPC or REST API
  2. Server enqueues job and returns job_id immediately (typically < 1 second)
  3. Heavy processing runs inside a separate queue worker process
  4. Client polls job status independently using queue_get_job_status(job_id)
  5. No HTTP timeout issues - the initial request completes quickly, and polling uses separate requests
Sync-Cap Timeout Fallback

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.

Client Usage Example
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.

HTTP Timeout Configuration

The HTTP client timeout can be configured in three ways (in order of precedence):

  1. Constructor parameter (highest priority):

    client = JsonRpcClient(timeout=60.0)  # 60 seconds
  2. Environment variable:

    export MCP_PROXY_ADAPTER_HTTP_TIMEOUT=60.0
  3. Default value: 30.0 seconds (if neither parameter nor environment variable is set)

This timeout applies to all HTTP requests including:

  • Command execution
  • Status polling (queue_get_job_status)
  • Health checks
  • Proxy registration

For mTLS connections or slow networks, consider increasing the timeout to avoid httpx.ReadTimeout errors.

Server-Side Command Definition

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})
Advanced Features
  • Manual Polling: Get job_id immediately and poll status manually
  • Progress Hooks: Receive progress updates via callback functions
  • Parallel Execution: Submit multiple commands and poll them concurrently
  • Error Handling: Proper handling of job failures, timeouts, and network errors

For detailed examples, see:

  • mcp_proxy_adapter/examples/queue_fire_and_forget_example.py
Requirements
  • mcp-proxy-adapter >= 6.9.96
  • queuemgr >= 1.0.14 (completed jobs retention; manager control-path timeouts fix for add_job / get_job_status / stop_job)

Nuances

Configurable public paths (security)

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 status and job_id

Commands 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.

  • Prefer: {"method": "embed_job_status", "params": {"job_id": "<uuid>"}}
  • Also accepted: {"method": "embed_job_status", "params": {}, "job_id": "<uuid>"}
WebSocket client (push instead of polling)

The client can wait for job completion via a WebSocket channel (/ws) instead of polling:

  • One-shot: await client.wait_for_job_via_websocket(job_id, timeout=60.0) — connect, subscribe, return on first terminal event (job_completed / job_failed).
  • Bidirectional channel: 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).

Running WebSocket client examples locally

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

Configuration

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.

Configuration Sections
1. 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"
}
2. server Section

Required: YES\ Description: Core server configuration settings

OX Radar and Response Center

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.

Where it’s listed

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).

  • pypi-releases mcp-proxy-adapter-dev

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229