Skip to content

Commit b758be3

Browse files
committed
Bump version to 0.3.1
Patch release shipping the Context-schema fix that landed in #7. With the bug in 0.3.0, every MCP client call returned `ctx Field required` because `from __future__ import annotations` hid the Context parameter from FastMCP's detection, so the server is effectively unusable on 0.3.0 and 0.3.1 is the first working release.
1 parent e7fefdf commit b758be3

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project are documented in this file. The format foll
44

55
## [Unreleased]
66

7+
## [0.3.1] - 2026-05-21
8+
9+
### Fixed
10+
- FastMCP exposed the internal `Context` parameter (`ctx`) as a required client-facing tool argument on every tool, so MCP clients failed every call with `ctx Field required`. `from __future__ import annotations` made FastMCP see the annotation as a string and miss the Context-detection branch; the fix patches `__annotations__["ctx"]` back to the real `Context` class before registering each tool. ([#7](https://github.com/cobanov/teslamate-mcp/pull/7))
11+
12+
### Added
13+
- Regression test that constructs the server and asserts `ctx` is absent from every tool's MCP-facing `inputSchema` while `run_sql` still requires `query`.
14+
715
## [0.3.0] - 2026-05-21
816

917
### Added

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "teslamate-mcp"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "A Model Context Protocol (MCP) server that exposes your TeslaMate database to AI assistants over stdio and streamable HTTP."
55
readme = "README.md"
66
license = { text = "MIT" }

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)