[CHORE]: data_analysis_server — bump mcp to >=2,<3 and resolve requirements.txt conflict

Open
#36 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
58/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
api, backend

Research direction

Start in mcp-servers/python/data_analysis_server/ by comparing pyproject.toml and requirements.txt, then read the linked MCP SDK v2 migration guide. Review the server's transport call sites and sync handlers for the listed API changes, run all available tests, and confirm CI is green with both dependency constraints aligned to >=2,<3.

Written by the indexing model from the issue text.

Description

Summary

After the server has been moved to this repository (tracked in #25), update mcp-servers/python/data_analysis_server/ to target MCP SDK v2 and resolve the version conflict between pyproject.toml and requirements.txt.

Changes required

1. MCP SDK version bump
# pyproject.toml — Before
mcp>=1.28.1,<2

# pyproject.toml — After
mcp>=2,<3
2. Resolve requirements.txt conflict

requirements.txt currently declares mcp>=2.0.0 while pyproject.toml declares mcp>=1.28.1,<2 — these are contradictory. After the pyproject.toml bump to >=2,<3, align requirements.txt to match:

# requirements.txt — After
mcp>=2,<3
3. API changes required by MCP SDK v2

Per the MCP SDK v2 migration guide:

  • Protocol type aliases using camelCase have been removed; use snake_case equivalents.
  • Review any transport constructor parameters — these may need to move to run()/app call sites.
  • Validate that sync handler functions do not call asyncio.get_running_loop().

Acceptance criteria

  • mcp constraint updated to >=2,<3 in pyproject.toml
  • requirements.txt aligned with pyproject.toml
  • All tests pass against MCP SDK v2
  • CI green

References

  • Depends on: #25 (move issue)
  • MCP SDK v2 migration epic: IBM/mcp-context-forge#6218
  • Step 10 (mcp-servers update): IBM/mcp-context-forge#6228
Dominant language
Python
Stars
1
Forks
1
Avg merge
4h 29m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from IBM/contextforge-examples

All issues in IBM/contextforge-examples

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.