mcp-cache 0.2.2__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,19 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v0.3.0 (2026-11-14)
5
+
6
+ ### Features
7
+
8
+ - Upgrade to mcp 2.3.0 (FastMCP -> MCPServer) ([#4](https://github.com/cmaurer/mcp-cache/pull/4),
9
+ [`cb2be4a`](https://github.com/cmaurer/mcp-cache/commit/cb2be4a10fa4d2b25c75bcb2ac8fc92332e3f7b4))
10
+
11
+ Require mcp>=2.3.0 and switch server.py to mcp.server.mcpserver.MCPServer, since mcp 2.x removed
12
+ mcp.server.fastmcp.
13
+
14
+ Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
15
+
16
+
4
17
  ## v0.2.2 (2026-07-06)
5
18
 
6
19
  ### Bug Fixes
@@ -25,7 +25,7 @@ Tests use `pytest-asyncio` with `asyncio_mode = "auto"` (`pyproject.toml`), so a
25
25
  The library is two files under `src/mcp_cache/`:
26
26
 
27
27
  - **`cache.py`** — `MCPCache`, the core SQLite-backed cache. No MCP/network dependency; pure stdlib (`sqlite3`, `asyncio`, `json`).
28
- - **`server.py`** — a `FastMCP` server (`app = FastMCP("mcp-cache")`) that instantiates one module-level `MCPCache` and wraps each of its methods as an `@app.tool()`. This is what `pip install`'s `mcp-cache` console script runs.
28
+ - **`server.py`** — an `MCPServer` server (`app = MCPServer("mcp-cache")`, mcp 2.x; renamed from `FastMCP`) that instantiates one module-level `MCPCache` and wraps each of its methods as an `@app.tool()`. This is what `pip install`'s `mcp-cache` console script runs.
29
29
 
30
30
  New cache capability should almost always be added to `cache.py` first, then optionally exposed as a tool in `server.py` — not the other way around.
31
31
 
@@ -1,13 +1,13 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: mcp-cache
3
- Version: 0.2.2
3
+ Version: 0.3.0
4
4
  Summary: Reusable SQLite-backed cache for MCP servers — TTL and incremental time series strategies
5
5
  Project-URL: Homepage, https://github.com/cmaurer/mcp-cache
6
6
  Project-URL: Issues, https://github.com/cmaurer/mcp-cache/issues
7
7
  License: MIT
8
8
  Keywords: cache,llm,mcp,sqlite,time-series
9
9
  Requires-Python: >=3.10
10
- Requires-Dist: mcp>=1.0
10
+ Requires-Dist: mcp>=2.3.0
11
11
  Provides-Extra: dev
12
12
  Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
13
13
  Requires-Dist: pytest>=8.0; extra == 'dev'
@@ -4,14 +4,14 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "mcp-cache"
7
- version = "0.2.2"
7
+ version = "0.3.0"
8
8
  description = "Reusable SQLite-backed cache for MCP servers — TTL and incremental time series strategies"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  license = {text = "MIT"}
12
12
  keywords = ["mcp", "cache", "sqlite", "time-series", "llm"]
13
13
  dependencies = [
14
- "mcp>=1.0",
14
+ "mcp>=2.3.0",
15
15
  ]
16
16
 
17
17
  [project.urls]
@@ -7,7 +7,7 @@ import json
7
7
  import os
8
8
  from pathlib import Path
9
9
 
10
- from mcp.server.fastmcp import FastMCP
10
+ from mcp.server.mcpserver import MCPServer
11
11
 
12
12
  from .cache import MCPCache
13
13
 
@@ -16,7 +16,7 @@ _db_path = Path(os.environ.get("MCP_CACHE_DB", _DEFAULT_DB)).expanduser()
16
16
  _default_ttl = int(os.environ.get("MCP_CACHE_DEFAULT_TTL", 300))
17
17
  _busy_timeout = int(os.environ.get("MCP_CACHE_BUSY_TIMEOUT", 5000))
18
18
 
19
- app = FastMCP("mcp-cache")
19
+ app = MCPServer("mcp-cache")
20
20
  _cache = MCPCache(_db_path, default_ttl=_default_ttl, busy_timeout=_busy_timeout)
21
21
 
22
22
 
File without changes
File without changes
File without changes
File without changes