Skip to content

feat: support mcp#1039

Merged
earayu merged 3 commits into
mainfrom
feature/support_mcp
Jul 4, 2025
Merged

feat: support mcp#1039
earayu merged 3 commits into
mainfrom
feature/support_mcp

Conversation

@earayu
Copy link
Copy Markdown
Collaborator

@earayu earayu commented Jul 4, 2025

No description provided.

@earayu earayu requested a review from iziang as a code owner July 4, 2025 09:47
@apecloud-bot apecloud-bot added the size/L Denotes a PR that changes 100-499 lines. label Jul 4, 2025
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@earayu earayu merged commit 72e3ba9 into main Jul 4, 2025
6 of 7 checks passed
@earayu earayu deleted the feature/support_mcp branch July 4, 2025 10:05
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: API URL Hardcoding Causes Deployment Failures

The API_BASE_URL is hardcoded to "http://localhost:8000". This prevents the MCP server and its tools from correctly making API calls to the main application, causing failures in production, containerized, or distributed environments where the API server runs on a different host or port. The base URL must be configurable via environment variables or settings.

aperag/mcp/server.py#L25-L27

# Base URL for internal API calls
API_BASE_URL = "http://localhost:8000"

Fix in CursorFix in Web


Was this report helpful? Give feedback by reacting with 👍 or 👎

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

Labels

size/L Denotes a PR that changes 100-499 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants