Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"databricks-sql-connector>=3.6.0",
"httpx>=0.27.1",
# `ucode mcp-proxy` bridges a client's stdio MCP transport to a Databricks
# streamable-HTTP MCP endpoint, injecting a freshly-minted OAuth bearer per
# request. Uses the official MCP SDK's stdio server + streamable-HTTP client.
Expand Down
10 changes: 10 additions & 0 deletions tests/test_mcp_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

from __future__ import annotations

import tomllib
from pathlib import Path

import anyio
import httpx
import pytest
Expand All @@ -12,6 +15,13 @@
URL = f"{WS}/api/2.0/mcp/functions/system/ai"


def test_httpx_is_a_direct_runtime_dependency():
project = tomllib.loads((Path(__file__).parent.parent / "pyproject.toml").read_text())[
"project"
]
assert any(dependency.startswith("httpx") for dependency in project["dependencies"])


class TestDatabricksTokenAuth:
def test_injects_bearer_from_minted_token(self, monkeypatch):
monkeypatch.setattr(mcp_proxy, "get_databricks_token", lambda ws, profile: "tok-123")
Expand Down
2 changes: 2 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading