-
-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (128 loc) 路 3.39 KB
/
Copy pathpyproject.toml
File metadata and controls
142 lines (128 loc) 路 3.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# Copyright (c) 2024- Datalayer, Inc.
#
# BSD 3-Clause License
[build-system]
requires = ["hatchling~=1.21"]
build-backend = "hatchling.build"
[project]
name = "jupyter_mcp_server"
authors = [{ name = "Datalayer", email = "info@datalayer.io" }]
dynamic = ["version"]
readme = "README.md"
requires-python = ">=3.10"
keywords = ["Jupyter"]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
dependencies = [
# 0.17.0 adds the `headers` passthrough and stops overwriting an explicit
# `token=None` in JupyterSandbox. Password auth needs both: its credentials are
# a session Cookie plus X-XSRFToken rather than a token.
"code-sandboxes>=0.17.0",
"datalayer_reactor",
"jupyter-mcp-tools",
"jupyter-nbmodel-client>=1.5.0",
"jupyter-server-nbmodel",
"jupyter-server-client",
"jupyter_server>=1.6,<3",
"jupyter-collaboration",
"tornado>=6.1",
"traitlets>=5.0",
"mcp[cli]>=1.10.1,<2",
"pydantic",
"uvicorn",
"typer",
"fastapi",
"opentelemetry-api>=1.24.0",
"opentelemetry-sdk>=1.24.0",
]
[project.optional-dependencies]
kaggle = ["code-sandboxes[kaggle]"]
monty = ["code-sandboxes[monty]"]
modal = ["code-sandboxes[modal]"]
datalayer = ["code-sandboxes[datalayer]"]
all-sandboxes = ["code-sandboxes[all]"]
test = [
"ipykernel",
"jupyter_server>=1.6,<3",
"pytest>=7.0",
"pytest-asyncio",
"pytest-timeout>=2.1.0",
"jupyterlab",
"pillow>=10.0.0"
]
lint = ["mdformat>0.7", "mdformat-gfm>=0.3.5", "ruff"]
typing = ["mypy>=0.990"]
[project.scripts]
jupyter-mcp = "jupyter_mcp_server.cli.cli:serve"
jupyter-mcp-server = "jupyter_mcp_server.cli.cli:serve"
[project.license]
file = "LICENSE"
[project.urls]
Home = "https://github.com/datalayer/jupyter-mcp-server"
[tool.hatch.version]
path = "jupyter_mcp_server/__version__.py"
[tool.hatch.build]
include = [
"jupyter_mcp_server/**/*.py",
"jupyter-config/**/*.json"
]
[tool.hatch.build.targets.wheel.shared-data]
"jupyter-config/jupyter_server_config.d" = "etc/jupyter/jupyter_server_config.d"
"jupyter-config/jupyter_notebook_config.d" = "etc/jupyter/jupyter_notebook_config.d"
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore:There is no current event loop:DeprecationWarning",
"module:make_current is deprecated:DeprecationWarning",
"module:clear_current is deprecated:DeprecationWarning",
"module:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning",
]
[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
pretty = true
show_error_context = true
show_error_codes = true
strict_equality = true
warn_unused_configs = true
warn_unused_ignores = true
warn_redundant_casts = true
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = [
"A",
"B",
"C",
"E",
"F",
"FBT",
"I",
"N",
"Q",
"RUF",
"S",
"T",
"UP",
"W",
"YTT",
]
ignore = [
# FBT001 Boolean positional arg in function definition
"FBT001",
"FBT002",
"FBT003",
]
[tool.ruff.lint.per-file-ignores]
# S101 Use of `assert` detected
"jupyter_mcp_server/tests/*" = ["S101"]
# Test modules commonly rely on assert statements, dummy credentials, and
# simple mutable class-level fixtures/mocks.
"tests/*" = ["S101", "S106", "RUF012"]