Repository navigation
Release 0.2.0: PyPI packaging, MCP SDK 2.x, current Databricks APIs - #1
Conversation
…tests - Package as databricks-mcp-toolkit with a databricks-mcp command (src/databricks_mcp layout) - Port to MCP SDK 2.x (MCPServer); 0.1.x imported FastMCP and broke on fresh installs - Typed tool arguments, tool annotations, read-only mode, toolset filtering - Jobs 2.2, Clusters 2.1, Unity Catalog 2.1, Files API for volumes, SQL warehouses - Auth through databricks-sdk unified auth (PAT, OAuth M2M/U2M, profiles, Azure) - Retry policy: 429 always, 5xx/timeouts only for idempotent methods - Response size cap, slimmed list output, multi-task run output fan-out - respx-mocked test suite, CI on 3.10-3.13, trusted-publishing release workflow - Fix license metadata (AGPL-3.0-only, matching LICENSE) - Rewrite README, CONTRIBUTING, ARCHITECTURE; add CHANGELOG and RELEASING Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FzyNsyRMzULCtA6hxabfVj
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FzyNsyRMzULCtA6hxabfVj
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 98484da650
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| try: | ||
| result["content"] = data.decode("utf-8") | ||
| except UnicodeDecodeError: | ||
| result["content"] = None | ||
| result["note"] = "Binary file; content not shown." |
There was a problem hiding this comment.
Preserve text when the byte limit splits a UTF-8 character
When a valid UTF-8 text file has a multibyte character crossing the max_bytes boundary, the range response ends with an incomplete character and decoding raises UnicodeDecodeError. This discards the entire readable prefix and incorrectly reports a binary file. For example, reading the first seven bytes of hello é world returns content: null. Decode truncated responses with an incremental UTF-8 decoder that tolerates an incomplete trailing character, while still rejecting genuinely invalid bytes. The same boundary handling is needed in dbfs.read_file.
Useful? React with 👍 / 👎.
Release 0.2.0: PyPI packaging, MCP SDK 2.x, current Databricks APIs
Rewrite for the first PyPI release. See CHANGELOG.md for the full list.
databricks-mcp-toolkitwith adatabricks-mcpcommand