Skip to content

Conversation

@AllyW
Copy link
Collaborator

@AllyW AllyW commented Nov 10, 2025

Related command
aliyun mcp-proxy

Description
Adds a local proxy server for Aliyun API MCP Servers that handles OAuth authentication automatically, enabling MCP clients to connect without credential management.

Key Features

  • OAuth Authentication: Automatically manages OAuth 2.0 authentication flow with PKCE
  • Token Management: Implements automatic token refresh with proactive refresh windows
  • Dual Authorization Modes: Supports both automatic browser-based authorization and manual code input mode for headless environments
  • Request Proxying: Handles both HTTP and SSE (Server-Sent Events) requests, forwarding them to upstream MCP servers with proper authentication headers
  • Health Monitoring: Provides /health endpoint with comprehensive status information including token validity, memory usage, and request statistics
  • Graceful Shutdown: Implements proper signal handling and graceful server shutdown

@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.86%. Comparing base (0e858e3) to head (90f274d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1279      +/-   ##
==========================================
+ Coverage   83.84%   83.86%   +0.01%     
==========================================
  Files          49       49              
  Lines        4698     4703       +5     
==========================================
+ Hits         3939     3944       +5     
  Misses        552      552              
  Partials      207      207              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CodeSpaceiiii
Copy link
Contributor

@AllyW 那个default scope需要加一个flag透出来,未来可能会采用read-only的scope(名字未定),单独创建的那个Oauth application那里。

@CodeSpaceiiii
Copy link
Contributor

2025/11/24 21:16:49 MCP Proxy gets mcp server response error Post "https://openapi-mcp.cn-hangzhou.aliyuncs.com/accounts/1577392203172861/custom/cli/id/0Q1lM4PxaSmRAOvf/mcp": dial tcp: lookup openapi-mcp.cn-hangzhou.aliyuncs.com: no such host

Fatal error: refresh token invalid. Please restart aliyun mcp-proxy
Shutting down gracefully...
ERROR: refresh token invalid. Please restart aliyun mcp-proxy

这里可以多重试几次?可以更健壮一点不用出错就退出进程。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants