Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,27 @@ All notable changes to PyEuropePMC are documented here.

## [Unreleased]

## [4.0.0] - 2026-10-21

> Major release: the MCP server moves to MCP Python SDK 2.x, and gains question decomposition
> (PICO, SPIDER) and MeSH expansion. The server now has 45 tools. The Python API of the library
> is unchanged; the major version marks a change in the installed dependency set and in how the
> HTTP transports behave.

### ⚠️ Upgrade notes

- The lock file and `requirements.txt` pin `mcp` 2.3.0. A fresh install now brings `httpx2`,
`httpcore2`, `mcp-types`, `opentelemetry-api` and `truststore`, and no longer `httpx`,
`httpcore`, `httpx-sse` or `pydantic-settings`. `pip install pyeuropepmc` still accepts
`mcp>=1.20.0,<3.0.0`, so an environment that keeps MCP SDK 1.x for another package works; the
server detects the SDK it finds.
- With SDK 2.x the HTTP transports (`--transport sse` and `streamable-http`) answer HTTP 421 to a
`Host` header they do not know. Behind a reverse proxy that forwards its public name, start the
server with `--allowed-host mcp.example.org` (or `PYEUROPEPMC_MCP_ALLOWED_HOSTS`). Loopback
names stay allowed. Not available on SDK 1.x.
- `pydantic` moves to 2.14 in the lock (with `pydantic-core` 2.50) and `starlette` to 1.7 on
Python 3.10 and 1.9 on 3.11 and later.

### ✨ Features

- New MCP tool `pico_decompose`: a research question split into PICO, PICOS, PICOT or SPIDER
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pyeuropepmc"
version = "3.9.0"
version = "4.0.0"
description = "Europe PMC API client and MCP server: search literature, read open-access full text, trace citations, build bibliographies."
license = "MIT"
readme = "README.md"
Expand Down
6 changes: 3 additions & 3 deletions server.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"name": "io.github.JonasHeinickeBio/pyeuropepmc",
"title": "PyEuropePMC",
"description": "Europe PMC search, full text, annotations, paper enrichment, data links and export for AI agents",
"description": "Europe PMC search, full text, annotations, enrichment, PICO, MeSH, data links and export",
"repository": {
"url": "https://github.com/JonasHeinickeBio/pyEuropePMC",
"source": "github",
"id": "999512652"
},
"version": "3.9.0",
"version": "4.0.0",
"websiteUrl": "https://jonasheinickebio.github.io/pyEuropePMC/",
"packages": [
{
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"identifier": "pyeuropepmc",
"version": "3.9.0",
"version": "4.0.0",
"runtimeHint": "uvx",
"packageArguments": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/pyeuropepmc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
UnpaywallError,
)

__version__ = "3.9.0"
__version__ = "4.0.0"
__author__ = "Jonas Heinicke"
__email__ = "jonas.heinicke@helmholtz-hzi.de"
__url__ = "https://github.com/JonasHeinickeBio/pyEuropePMC"
Expand Down
Loading