Skip to content

Conversation

@DavdGao
Copy link
Member

@DavdGao DavdGao commented Sep 11, 2025

AgentScope Version

1.0.2

Description

Fix the bug in MCP example

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with pre-commit run --all-files command
  • All tests are passing
  • Docstrings are in Google style
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@DavdGao DavdGao requested a review from Copilot September 11, 2025 06:50
@DavdGao DavdGao linked an issue Sep 11, 2025 that may be closed by this pull request
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes bugs and simplifies the MCP (Model Control Protocol) example in AgentScope by restructuring the code organization and correcting URL endpoints.

  • Moves MCP example from agent_with_mcp to mcp directory with cleaner structure
  • Separates MCP servers into individual files for better modularity
  • Updates URL endpoints and transport configurations to fix connection issues

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
examples/functionality/mcp/mcp_multiply.py New MCP server for multiplication operations using streamable-http transport
examples/functionality/mcp/mcp_add.py New MCP server for addition operations using SSE transport
examples/functionality/mcp/main.py Refactored main example with corrected URLs and simplified client setup
examples/functionality/mcp/README.md New documentation explaining the MCP example setup and usage
README_zh.md Updated link to point to new MCP example location
README.md Updated link to point to new MCP example location

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@DavdGao DavdGao merged commit 62a8f2b into agentscope-ai:main Sep 11, 2025
10 checks passed
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.

QWen32B调用MCP一定会出错

1 participant