Skip to main content

Powerful JSON-RPC microservices framework with built-in security, authentication, and proxy registration

Project description

MCP Proxy Adapter

Author: Vasiliy Zdanovskiy
Email: vasilyvz@gmail.com

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

Quick Start

  1. Installation:

    pip install mcp-proxy-adapter
    
  2. Basic Configuration:

    # Use the comprehensive config with all options disabled by default
    python -m mcp_proxy_adapter --config config.json
    
  3. Access the API:

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

Configuration

The adapter uses a comprehensive JSON configuration file (config.json) that includes all available options with sensible defaults. All features are disabled by default and can be enabled as needed:

  • Server settings: Host, port, debug mode
  • Security: Authentication methods, SSL/TLS, permissions
  • Protocols: HTTP/HTTPS/mTLS configuration
  • Proxy registration: Automatic server registration
  • Logging: Comprehensive logging configuration
  • Commands: Built-in and custom command management

See docs/EN/configuration.md for complete configuration documentation.

Built-in Commands

  • health - Server health check
  • echo - Echo test command
  • config - Configuration management
  • help - Command help and documentation
  • reload - Configuration reload
  • settings - Settings management
  • load/unload - Command loading/unloading
  • plugins - Plugin management
  • proxy_registration - Proxy registration control
  • transport_management - Transport protocol management
  • role_test - Role-based access testing

Security Features

  • Authentication: API keys, JWT tokens, certificate-based auth
  • Authorization: Role-based permissions with wildcard support
  • SSL/TLS: Full SSL/TLS and mTLS support
  • Rate Limiting: Configurable request rate limiting
  • Security Headers: Automatic security header injection

Examples

The mcp_proxy_adapter/examples/ directory contains comprehensive examples for different use cases:

  • Basic Framework: Simple HTTP server setup
  • Full Application: Complete application with custom commands and hooks
  • Security Testing: Comprehensive security test suite
  • Certificate Generation: SSL/TLS certificate management

Development

The project follows a modular architecture:

  • mcp_proxy_adapter/api/ - FastAPI application and handlers
  • mcp_proxy_adapter/commands/ - Command system and built-in commands
  • mcp_proxy_adapter/core/ - Core functionality and utilities
  • mcp_proxy_adapter/config.py - Configuration management

License

This project is licensed under the MIT License.

Support

For issues and questions, please contact vasilyvz@gmail.com.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_proxy_adapter-6.4.29.tar.gz (252.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_proxy_adapter-6.4.29-py3-none-any.whl (321.8 kB view details)

Uploaded Python 3

File details

Details for the file mcp_proxy_adapter-6.4.29.tar.gz.

File metadata

  • Download URL: mcp_proxy_adapter-6.4.29.tar.gz
  • Upload date:
  • Size: 252.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mcp_proxy_adapter-6.4.29.tar.gz
Algorithm Hash digest
SHA256 dd2dc1b7925c3b31b43a767b56b71b13b519dcd20b3ed5604e05af59ad06df0c
MD5 aed5608e88829b6243be8fe8356ba89f
BLAKE2b-256 8c9ad51bbedefbf74b75ff3eef5880a8ce1fd501d7f23fc9f3b371746523bb0f

See more details on using hashes here.

File details

Details for the file mcp_proxy_adapter-6.4.29-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_proxy_adapter-6.4.29-py3-none-any.whl
Algorithm Hash digest
SHA256 0107f1f0a2b082c1f158ffd5280c3a60ff23785c70b5ccc96f7c96ca7602bf5d
MD5 ff7c2719c954e6473ccf49382609224d
BLAKE2b-256 f2d268fa8f6417fdbf2b4c536ae8ab23c3cb61f063d54997bebc1c373a269a10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page