Token导航 LogoToken导航TokenDH.com
MCP Auth Server (Gegaowp) logo
运维云端stdio官方级别未说明来源级核验

MCP Auth Server (Gegaowp)

MCP Server

一个处理嵌入式钱包和认证令牌编排的模型上下文协议(MCP)服务器,采用现代Python打包最佳实践构建。

工具数

3

提示词数

0

GitHub Stars

0

资源数

0
PythonClaude云端部署Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

GlenFlock

提供方

GlenFlock

最后核验

2026/5/17 20:23

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python3 /path/to/your/json_rpc_server.py

详细介绍

JSON-RPC Proxy MCP Server

A Model Context Protocol (MCP) server that handles embedded wallet and auth token orchestration, built with modern Python packaging best practices.

Features

  • 🔌 Exposes JSON-RPC methods as MCP tools
  • 🔐 Token-based authentication support
  • 🏗️ Modern Python package structure
  • 📦 Easy installation via pip
  • 🧪 Includes test client for development
  • 💎 Sui wallet integration

Project Structure

mcp-auth-server/
├── jsonrpc_proxy_mcp/      # Main package
│   ├── __init__.py
│   ├── server.py           # MCP server implementation
│   ├── wallet.py           # Sui wallet utilities
│   └── __main__.py         # Entry point
├── examples/
│   └── client.py           # Test client example
├── tests/
│   └── test_wallet.py      # Unit tests
├── scripts/
│   └── setup.sh            # Setup script
├── pyproject.toml          # Modern Python packaging
└── README.md

Requirements

  • Python 3.9+
  • Virtual environment (recommended)

Quick Start

1. Installation

Clone and setup:

git clone https://github.com/YOUR_USERNAME/mcp-auth-server.git
cd mcp-auth-server
./setup.sh

The setup script will:

  • Create a virtual environment
  • Install the package and dependencies
  • Make the MCP server available as a command

2. Activate the virtual environment

source venv/bin/activate

Usage

Running the JSON-RPC Server

First, start your local JSON-RPC server. The MCP server is configured to connect to http://localhost:8080 by default.

python3 /path/to/your/json_rpc_server.py

Running the MCP Server

You can run the server in multiple ways:

As a module:

python -m jsonrpc_proxy_mcp

As a command (after installation):

jsonrpc-proxy-mcp

For Claude Desktop integration: Add to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "jsonrpc-proxy": {
      "command": "/path/to/mcp-auth-server/venv/bin/python",
      "args": ["-m", "jsonrpc_proxy_mcp"]
    }
  }
}

Using the Test Client

For development and testing, use the included example client:

python examples/client.py

The client provides an interactive command-line interface with the following commands:

  • help - Show available commands
  • list - List available tools
  • echo - Test the jsonrpc_echo tool
  • time - Get current time via jsonrpc_get_time
  • purchase_token - Purchase a JWT token via jsonrpc_purchase_token
  • exit - Exit the client

Available MCP Tools

The server exposes the following tools (all with jsonrpc_ prefix to avoid naming conflicts):

  1. jsonrpc_purchase_token - Purchase a JWT token for authentication
  2. jsonrpc_echo - Echo back a message (requires authentication)
  3. jsonrpc_get_time - Get the current server time (requires authentication)

All tools follow MCP best practices including:

  • Tool annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint)
  • Pydantic input validation for type safety
  • Comprehensive error messages with troubleshooting guidance
  • Proper logging to stderr (not stdout) for stdio transport compatibility

Development

Installing in Editable Mode

For development, install the package in editable mode:

pip install -e .

This allows you to make changes to the code and see them immediately without reinstalling.

Running Tests

pytest tests/

Code Quality

Format code with Black:

black jsonrpc_proxy_mcp/

Lint with Ruff:

ruff check jsonrpc_proxy_mcp/

Type check with mypy:

mypy jsonrpc_proxy_mcp/

Package Structure

  • jsonrpc_proxy_mcp/: Main package directory

- server.py: MCP server implementation with tools - wallet.py: Sui wallet integration utilities - __main__.py: Entry point for running as a module - __init__.py: Package initialization

  • examples/: Example usage and test clients
  • tests/: Unit tests
  • scripts/: Utility scripts (setup, etc.)

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests and linting
  5. Submit a pull request

License

MIT

目录标签

目录标签

PythonClaude云端部署JSON-RPC代理本地部署MCP服务器Python打包钱包集成认证令牌

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

token

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

3

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiotoken部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP