Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[CHORE]: output_schema_test_server — migrate from standalone fastmcp to mcp>=2,<3 MCPServer

Đang mở
#32 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu với mcp-servers/python/output_schema_test_server/pyproject.toml và server_fastmcp.py, kiểm tra dependency, entry point, các import và các API đang được sử dụng. Chạy các test hiện có và CI sau khi migration. Được xem là hoàn tất khi project sử dụng mcp>=2,<3, không còn fastmcp import nào, tất cả test đều pass và CI ở trạng thái xanh.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

After the server has been moved to this repository (tracked in #29), update mcp-servers/python/output_schema_test_server/ to migrate from the standalone fastmcp package to the MCP SDK v2 MCPServer.

Changes required

1. Dependency swap
# Before
fastmcp>=3.4.4

# After
mcp>=2,<3
2. FastMCP → MCPServer rename
# Before (standalone fastmcp package)
from fastmcp import FastMCP
app = FastMCP('output-schema-test-server')

# After (MCP SDK v2)
from mcp.server import MCPServer
app = MCPServer('output-schema-test-server')

Note: If the server uses standalone fastmcp-specific APIs with no equivalent in mcp.server.MCPServer, document the gap and decide whether to keep fastmcp as an explicit dependency instead.

3. Rename entry-point module (optional)

Consider renaming server_fastmcp.py → server.py and updating pyproject.toml [project.scripts] accordingly.

Acceptance criteria

  • fastmcp dependency replaced with mcp>=2,<3
  • No remaining fastmcp imports
  • All tests pass against MCP SDK v2
  • CI green

References

  • Depends on: #29 (move issue)
  • MCP SDK v2 migration epic: IBM/mcp-context-forge#6218
  • Step 10 (mcp-servers update): IBM/mcp-context-forge#6228
Ngôn ngữ chính
Python
Star
1
Fork
2
Merge trung bình
1 giờ 13 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của IBM/contextforge-examples

Tất cả issue của IBM/contextforge-examples

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.