Skip to content

Commit 2938e10

Browse files
committed
restructure project
1 parent 756a971 commit 2938e10

File tree

27 files changed

+941
-742
lines changed

27 files changed

+941
-742
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,6 @@ a.md
120120

121121
# Ignore a gunicorn config file
122122
gunicorn.conf.py
123+
124+
# ignore version file
125+
src/databricks/labs/mcp/_version.py
File renamed without changes.

pyproject.toml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
[project]
2+
3+
name = "databricks-labs-mcp"
4+
dynamic = ["version", "readme"]
5+
description = "Databricks MCP servers"
6+
authors = [{ name = "renardeinside", email = "[email protected]" }]
7+
requires-python = ">=3.10"
8+
keywords = ["databricks", "unity catalog", "mcp", "agents", "llm", "automation", "genie"]
9+
10+
dependencies = [
11+
"mcp>=1.2.1",
12+
"pydantic>=2.10.6",
13+
"pydantic-settings>=2.7.1",
14+
"unitycatalog-ai>=0.1.0",
15+
"databricks-sdk>=0.49.0",
16+
"databricks-openai>=0.3.1",
17+
]
18+
license-files = ["LICENSE", "NOTICE"]
19+
20+
[tool.uv]
21+
dev-dependencies = [
22+
"black>=25.1.0",
23+
"pyright>=1.1.393",
24+
"ruff>=0.9.4",
25+
"pytest>=8.3.4",
26+
]
27+
28+
[project.scripts]
29+
unitycatalog-mcp = "databricks.labs.mcp.servers.unity_catalog:main"
30+
31+
[build-system]
32+
requires = ["hatchling", "hatch-fancy-pypi-readme", "hatch-vcs"]
33+
build-backend = "hatchling.build"
34+
35+
# for compatability with databricks.labs.* layout
36+
[tool.hatch.build]
37+
sources = ["src"]
38+
include = ["src"]
39+
40+
41+
[tool.hatch.version]
42+
source = "vcs"
43+
44+
[tool.hatch.build.hooks.vcs]
45+
version-file = "src/databricks/labs/mcp/_version.py"
46+
47+
48+
[tool.hatch.metadata.hooks.fancy-pypi-readme]
49+
content-type = "text/markdown"
50+
51+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
52+
path = "README.md"
53+
54+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
55+
# replace relative links with absolute links
56+
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
57+
replacement = '[\1](https://github.com/databrickslabs/mcp/tree/main/\g<2>)'
58+
59+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
60+
# replace relative image links with absolute links
61+
pattern = '<img (.*?)src="((?!https?://)\S+?)"(.*?)>'
62+
replacement = '<img \1src="https://raw.githubusercontent.com/databrickslabs/mcp/refs/heads/main/\g<2>"\g<3>>'
63+
64+
65+
[tool.pytest.ini_options]
66+
testpaths = ["tests"]
67+
python_files = "test_*.py"
68+
python_classes = "Test*"
69+
python_functions = "test_*"

servers/unity_catalog/LICENSE

Lines changed: 0 additions & 23 deletions
This file was deleted.

servers/unity_catalog/pyproject.toml

Lines changed: 0 additions & 42 deletions
This file was deleted.

servers/unity_catalog/src/unitycatalog_mcp/__main__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

servers/unity_catalog/src/unitycatalog_mcp/version.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/databricks/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# DO NOT ADD ANYTHING ELSE TO THIS FILE FOR COMPATIBILITY WITH OTHER databricks.labs.* PACKAGES
2+
# SEE https://packaging.python.org/guides/packaging-namespace-packages/#pkgutil-style-namespace-packages
3+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

src/databricks/labs/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# DO NOT ADD ANYTHING ELSE TO THIS FILE FOR COMPATIBILITY WITH OTHER databricks.labs.* PACKAGES
2+
# SEE https://packaging.python.org/guides/packaging-namespace-packages/#pkgutil-style-namespace-packages
3+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

src/databricks/labs/mcp/servers/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)