You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/08/12 16:53:13 UTC
[PR] chore(deps): migrate gmail/oauth-draft to mcp 2.0 [magpie]
potiuk opened a new pull request, #1085:
URL: https://github.com/apache/magpie/pull/1085
## Summary
- The breaking half of #1083, split out so the routine ruff/prek bumps could land
on their own (#1084). `mcp` 2.0 makes two source-visible changes, neither behind
a deprecation shim.
- **`mcp.server.fastmcp` is gone.** `FastMCP` moved to `mcp.server.mcpserver` as
`MCPServer`; `.tool()` and `.run()` keep their signatures, so the server body is
unchanged beyond the rename. Without this, importing the module raises
`ModuleNotFoundError: No module named 'mcp.server.fastmcp'` and
`pytest (oauth-draft)` fails at collection — the failure seen on #1083.
- **`Tool.inputSchema` is now `Tool.input_schema`.** This surfaces only in
`test_tools_are_registered_without_any_html_parameter` — the test enforcing this
server's plain-text-by-construction guarantee, that no tool anywhere exposes an
`html` parameter. It would have failed loudly rather than passed silently, but
it is worth naming: that assertion is the reason this package exists.
## Type of change
- [ ] Skill change (`.claude/skills/<name>/`) — eval fixtures updated below
- [ ] Tool / bridge contract (`tools/<system>/*.md`)
- [x] Python package (`tools/*/` with `pyproject.toml`)
- [ ] Groovy reference impl
- [ ] Cross-cutting (RFC, AGENTS.md, sandbox, privacy-LLM)
- [ ] Documentation (`docs/`, `README.md`, `CONTRIBUTING.md`)
- [ ] Project template (`projects/_template/`)
- [ ] CI / dev loop (`prek`, workflows, validators)
## Test plan
- [x] All 81 oauth-draft tests pass on mcp 2.0.0
- [x] `ruff check`, `ruff format --check`, `mypy` clean on the package
- [x] `prek run --all-files` exits 0
## RFC-AI-0004 compliance
- [x] **Write-access discipline** — unchanged by this PR, and specifically
preserved: the migration keeps the tool surface identical, so the server
still creates drafts only and still exposes no HTML/rich-text parameter.
The test that enforces that is the one updated here.
## Linked issues
Refs #1083
## Notes for reviewers
The rename is mechanical, but `test_tools_are_registered_without_any_html_parameter`
deserves the attention — it is the mechanical gate on the plain-text-only
interface, so please check the updated assertion still reads as strictly as
before rather than being loosened to make 2.0 pass.
Both this PR and #1084 touch `uv.lock`, so whichever merges second needs a
`uv lock` re-run. #1083 can be closed once both land.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore(deps): migrate gmail/oauth-draft to mcp 2.0 [magpie]
Posted by "choo121600 (via GitHub)" <gi...@apache.org>.
choo121600 merged PR #1085:
URL: https://github.com/apache/magpie/pull/1085
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org