Skip to content

v0.6.0 - MCP tool annotations

Choose a tag to compare

@CerebroCanibalus CerebroCanibalus released this 04 Oct 02:05
· 10 commits to main since this release

MCP tool annotations, plus an end-to-end protocol suite.

Annotations

Both tools now declare all four MCP hints, so a client can warn the user before invoking instead of guessing from the description:

{ "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": true }

Directories that reject tools missing any hint (OpenAI's does) now accept this server.

The support landed upstream in FlojoMCP 45eca6c: #[tool] accepts the four boolean hints and FlojoTool::annotations() defaults to None, so tools that declare nothing keep a byte-identical tools/list payload.

End-to-end tests

Added tests/e2e_stdio.rs, which spawns the real binary and speaks NDJSON over stdio the way an MCP host does. It pins the initialize version against CARGO_PKG_VERSION, asserts the four hints arrive over the wire, checks the status shape, and proves search rejects bad arguments before contacting any provider.

That test exists because the handshake had shipped a hardcoded 0.3.0 for two releases while Cargo.toml read 0.5.0: the version literal in the #[flojo_mcp] attribute and the crate version are two sources of truth for one number, and only one of them was moving. The test now fails if either drifts.

build.bat and check.bat also pin CARGO_TARGET_DIR, because an inherited value can silently redirect a build to a scratch directory while the release binary keeps serving an old version.