Skip to content

Release 0.2.0: PyPI packaging, MCP SDK 2.x, current Databricks APIs - #1

Merged
kshptl merged 2 commits into
mainfrom
release/pypi-0.2.0
Nov 15, 2026
Merged

kshptl merged 2 commits into
mainfrom
release/pypi-0.2.0

Conversation

@kshptl

@kshptl kshptl commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Rewrite for the first PyPI release. See CHANGELOG.md for the full list.

  • Package as databricks-mcp-toolkit with a databricks-mcp command
  • Port to MCP SDK 2.x (0.1.x imported FastMCP and broke on fresh installs)
  • Jobs 2.2, Clusters 2.1, Unity Catalog, Files API for volumes, SQL warehouses
  • Typed tools, annotations, read-only mode, toolset filtering
  • Test suite, CI on 3.10–3.13, trusted-publishing release workflow
  • License metadata fixed to AGPL-3.0-only

…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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T19:29:01.325495Z 98484da PR opened
ℹ️ 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" or "@codex security review".

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +55 to +59
try:
result["content"] = data.decode("utf-8")
except UnicodeDecodeError:
result["content"] = None
result["note"] = "Binary file; content not shown."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@kshptl
kshptl merged commit 1b0d896 into main Nov 15, 2026
7 checks passed
@kshptl
kshptl deleted the release/pypi-0.2.0 branch November 15, 2026 19:29
kshptl added a commit that referenced this pull request Nov 15, 2026
Release 0.2.0: PyPI packaging, MCP SDK 2.x, current Databricks APIs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants