clickhouse-mcp-server 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ # Clickhouse Connection Settings
2
+ CLICKHOUSE_HOST=localhost
3
+ CLICKHOUSE_USER=default
4
+ CLICKHOUSE_PASSWORD=
5
+ CLICKHOUSE_DATABASE=
6
+ CLICKHOUSE_READONLY=false
@@ -0,0 +1,16 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+
12
+ # MacOS
13
+ .DS_Store
14
+
15
+ # Environment variables
16
+ .env
@@ -0,0 +1 @@
1
+ 3.11
@@ -0,0 +1,15 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.0] - 2025-03-17
9
+
10
+ ### Added
11
+ - Initial MCP server implementation for Clickhouse database integration
12
+ - Python 3.11+ support
13
+ - Clickhouse integration
14
+
15
+ [0.1.0]: https://github.com/burakdirin/clickhouse-mcp-server/releases/tag/v0.1.0
@@ -0,0 +1,22 @@
1
+ # Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2
+ FROM python:3.11-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy necessary project files
8
+ COPY pyproject.toml ./
9
+ COPY README.md ./
10
+ COPY src/ ./src/
11
+
12
+ # Upgrade pip and install build dependencies
13
+ RUN pip install --upgrade pip \
14
+ && pip install hatchling
15
+
16
+ # Install the package (skip prepare scripts if any)
17
+ RUN pip install --ignore-installed --no-cache-dir .
18
+
19
+ # MCP server runs over stdio so no ports are exposed
20
+
21
+ # Start the MCP server using the entrypoint installed by setup
22
+ CMD ["clickhouse-mcp-server"]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Burak Dirin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,167 @@
1
+ Metadata-Version: 2.4
2
+ Name: clickhouse-mcp-server
3
+ Version: 0.1.0
4
+ Summary: A MCP server implementation for ClickHouse database integration
5
+ Project-URL: Homepage, https://github.com/burakdirin/clickhouse-mcp-server
6
+ Project-URL: Repository, https://github.com/burakdirin/clickhouse-mcp-server
7
+ Project-URL: Bug Tracker, https://github.com/burakdirin/clickhouse-mcp-server/issues
8
+ Author-email: Burak Dirin <burakdirin@gmail.com>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Requires-Python: >=3.11
12
+ Requires-Dist: clickhouse-driver>=0.2.9
13
+ Requires-Dist: mcp>=1.4.1
14
+ Requires-Dist: python-dotenv>=1.0.1
15
+ Description-Content-Type: text/markdown
16
+
17
+ # Clickhouse MCP server
18
+ [![smithery badge](https://smithery.ai/badge/@burakdirin/clickhouse-mcp-server)](https://smithery.ai/server/@burakdirin/clickhouse-mcp-server)
19
+
20
+ A Clickhouse database MCP server project.
21
+
22
+ ## Installation
23
+
24
+ You can install the package using `uv`:
25
+
26
+ ```bash
27
+ uv pip install clickhouse-mcp-server
28
+ ```
29
+
30
+ Or using `pip`:
31
+
32
+ ```bash
33
+ pip install clickhouse-mcp-server
34
+ ```
35
+
36
+ ## Components
37
+
38
+ ### Tools
39
+
40
+ The server provides two tools:
41
+ - `connect_database`: Connects to a specific Clickhouse database
42
+ - `database` parameter: Name of the database to connect to (string)
43
+ - Returns a confirmation message when connection is successful
44
+
45
+ - `execute_query`: Executes Clickhouse queries
46
+ - `query` parameter: SQL query/queries to execute (string)
47
+ - Returns query results in JSON format
48
+ - Multiple queries can be sent separated by semicolons
49
+
50
+ ## Configuration
51
+
52
+ The server uses the following environment variables:
53
+
54
+ - `CLICKHOUSE_HOST`: Clickhouse server address (default: "localhost")
55
+ - `CLICKHOUSE_USER`: Clickhouse username (default: "root")
56
+ - `CLICKHOUSE_PASSWORD`: Clickhouse password (default: "")
57
+ - `CLICKHOUSE_DATABASE`: Initial database (optional)
58
+ - `CLICKHOUSE_READONLY`: Read-only mode (set to 1/true to enable, default: false)
59
+
60
+ ## Quickstart
61
+
62
+ ### Installation
63
+
64
+ #### Claude Desktop
65
+
66
+ MacOS: `~/Library/Application\ Support/Claude/claude_desktop_config.json`
67
+
68
+ Windows: `%APPDATA%/Claude/claude_desktop_config.json`
69
+
70
+ <details>
71
+ <summary>Development/Unpublished Server Configuration</summary>
72
+
73
+ ```json
74
+ {
75
+ "mcpServers": {
76
+ "clickhouse-mcp-server": {
77
+ "command": "uv",
78
+ "args": [
79
+ "--directory",
80
+ "/Users/burakdirin/Projects/clickhouse-mcp-server",
81
+ "run",
82
+ "clickhouse-mcp-server"
83
+ ],
84
+ "env": {
85
+ "CLICKHOUSE_HOST": "localhost",
86
+ "CLICKHOUSE_USER": "root",
87
+ "CLICKHOUSE_PASSWORD": "password",
88
+ "CLICKHOUSE_DATABASE": "[optional]",
89
+ "CLICKHOUSE_READONLY": "true"
90
+ }
91
+ }
92
+ }
93
+ }
94
+ ```
95
+ </details>
96
+
97
+ <details>
98
+ <summary>Published Server Configuration</summary>
99
+
100
+ ```json
101
+ {
102
+ "mcpServers": {
103
+ "clickhouse-mcp-server": {
104
+ "command": "uvx",
105
+ "args": [
106
+ "clickhouse-mcp-server"
107
+ ],
108
+ "env": {
109
+ "CLICKHOUSE_HOST": "localhost",
110
+ "CLICKHOUSE_USER": "root",
111
+ "CLICKHOUSE_PASSWORD": "password",
112
+ "CLICKHOUSE_DATABASE": "[optional]",
113
+ "CLICKHOUSE_READONLY": "true"
114
+ }
115
+ }
116
+ }
117
+ }
118
+ ```
119
+ </details>
120
+
121
+ ### Installing via Smithery
122
+
123
+ To install Clickhouse Database Integration Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@burakdirin/clickhouse-mcp-server):
124
+
125
+ ```bash
126
+ npx -y @smithery/cli install @burakdirin/clickhouse-mcp-server --client claude
127
+ ```
128
+
129
+ ## Development
130
+
131
+ ### Building and Publishing
132
+
133
+ To prepare the package for distribution:
134
+
135
+ 1. Sync dependencies and update lockfile:
136
+ ```bash
137
+ uv sync
138
+ ```
139
+
140
+ 2. Build package distributions:
141
+ ```bash
142
+ uv build
143
+ ```
144
+
145
+ This will create source and wheel distributions in the `dist/` directory.
146
+
147
+ 3. Publish to PyPI:
148
+ ```bash
149
+ uv publish
150
+ ```
151
+
152
+ Note: You'll need to set PyPI credentials via environment variables or command flags:
153
+ - Token: `--token` or `UV_PUBLISH_TOKEN`
154
+ - Or username/password: `--username`/`UV_PUBLISH_USERNAME` and `--password`/`UV_PUBLISH_PASSWORD`
155
+
156
+ ### Debugging
157
+
158
+ Since MCP servers run over stdio, debugging can be challenging. For the best debugging
159
+ experience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).
160
+
161
+ You can launch the MCP Inspector via [`npm`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) with this command:
162
+
163
+ ```bash
164
+ npx @modelcontextprotocol/inspector uv --directory /Users/burakdirin/Projects/clickhouse-mcp-server run clickhouse-mcp-server
165
+ ```
166
+
167
+ Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
@@ -0,0 +1,151 @@
1
+ # Clickhouse MCP server
2
+ [![smithery badge](https://smithery.ai/badge/@burakdirin/clickhouse-mcp-server)](https://smithery.ai/server/@burakdirin/clickhouse-mcp-server)
3
+
4
+ A Clickhouse database MCP server project.
5
+
6
+ ## Installation
7
+
8
+ You can install the package using `uv`:
9
+
10
+ ```bash
11
+ uv pip install clickhouse-mcp-server
12
+ ```
13
+
14
+ Or using `pip`:
15
+
16
+ ```bash
17
+ pip install clickhouse-mcp-server
18
+ ```
19
+
20
+ ## Components
21
+
22
+ ### Tools
23
+
24
+ The server provides two tools:
25
+ - `connect_database`: Connects to a specific Clickhouse database
26
+ - `database` parameter: Name of the database to connect to (string)
27
+ - Returns a confirmation message when connection is successful
28
+
29
+ - `execute_query`: Executes Clickhouse queries
30
+ - `query` parameter: SQL query/queries to execute (string)
31
+ - Returns query results in JSON format
32
+ - Multiple queries can be sent separated by semicolons
33
+
34
+ ## Configuration
35
+
36
+ The server uses the following environment variables:
37
+
38
+ - `CLICKHOUSE_HOST`: Clickhouse server address (default: "localhost")
39
+ - `CLICKHOUSE_USER`: Clickhouse username (default: "root")
40
+ - `CLICKHOUSE_PASSWORD`: Clickhouse password (default: "")
41
+ - `CLICKHOUSE_DATABASE`: Initial database (optional)
42
+ - `CLICKHOUSE_READONLY`: Read-only mode (set to 1/true to enable, default: false)
43
+
44
+ ## Quickstart
45
+
46
+ ### Installation
47
+
48
+ #### Claude Desktop
49
+
50
+ MacOS: `~/Library/Application\ Support/Claude/claude_desktop_config.json`
51
+
52
+ Windows: `%APPDATA%/Claude/claude_desktop_config.json`
53
+
54
+ <details>
55
+ <summary>Development/Unpublished Server Configuration</summary>
56
+
57
+ ```json
58
+ {
59
+ "mcpServers": {
60
+ "clickhouse-mcp-server": {
61
+ "command": "uv",
62
+ "args": [
63
+ "--directory",
64
+ "/Users/burakdirin/Projects/clickhouse-mcp-server",
65
+ "run",
66
+ "clickhouse-mcp-server"
67
+ ],
68
+ "env": {
69
+ "CLICKHOUSE_HOST": "localhost",
70
+ "CLICKHOUSE_USER": "root",
71
+ "CLICKHOUSE_PASSWORD": "password",
72
+ "CLICKHOUSE_DATABASE": "[optional]",
73
+ "CLICKHOUSE_READONLY": "true"
74
+ }
75
+ }
76
+ }
77
+ }
78
+ ```
79
+ </details>
80
+
81
+ <details>
82
+ <summary>Published Server Configuration</summary>
83
+
84
+ ```json
85
+ {
86
+ "mcpServers": {
87
+ "clickhouse-mcp-server": {
88
+ "command": "uvx",
89
+ "args": [
90
+ "clickhouse-mcp-server"
91
+ ],
92
+ "env": {
93
+ "CLICKHOUSE_HOST": "localhost",
94
+ "CLICKHOUSE_USER": "root",
95
+ "CLICKHOUSE_PASSWORD": "password",
96
+ "CLICKHOUSE_DATABASE": "[optional]",
97
+ "CLICKHOUSE_READONLY": "true"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ ```
103
+ </details>
104
+
105
+ ### Installing via Smithery
106
+
107
+ To install Clickhouse Database Integration Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@burakdirin/clickhouse-mcp-server):
108
+
109
+ ```bash
110
+ npx -y @smithery/cli install @burakdirin/clickhouse-mcp-server --client claude
111
+ ```
112
+
113
+ ## Development
114
+
115
+ ### Building and Publishing
116
+
117
+ To prepare the package for distribution:
118
+
119
+ 1. Sync dependencies and update lockfile:
120
+ ```bash
121
+ uv sync
122
+ ```
123
+
124
+ 2. Build package distributions:
125
+ ```bash
126
+ uv build
127
+ ```
128
+
129
+ This will create source and wheel distributions in the `dist/` directory.
130
+
131
+ 3. Publish to PyPI:
132
+ ```bash
133
+ uv publish
134
+ ```
135
+
136
+ Note: You'll need to set PyPI credentials via environment variables or command flags:
137
+ - Token: `--token` or `UV_PUBLISH_TOKEN`
138
+ - Or username/password: `--username`/`UV_PUBLISH_USERNAME` and `--password`/`UV_PUBLISH_PASSWORD`
139
+
140
+ ### Debugging
141
+
142
+ Since MCP servers run over stdio, debugging can be challenging. For the best debugging
143
+ experience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).
144
+
145
+ You can launch the MCP Inspector via [`npm`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) with this command:
146
+
147
+ ```bash
148
+ npx @modelcontextprotocol/inspector uv --directory /Users/burakdirin/Projects/clickhouse-mcp-server run clickhouse-mcp-server
149
+ ```
150
+
151
+ Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
@@ -0,0 +1,31 @@
1
+ [project]
2
+ name = "clickhouse-mcp-server"
3
+ version = "0.1.0"
4
+ description = "A MCP server implementation for ClickHouse database integration"
5
+ readme = "README.md"
6
+ requires-python = ">=3.11"
7
+ license = "MIT"
8
+ dependencies = [
9
+ "mcp>=1.4.1",
10
+ "clickhouse-driver>=0.2.9",
11
+ "python-dotenv>=1.0.1",
12
+ ]
13
+
14
+ [project.urls]
15
+ Homepage = "https://github.com/burakdirin/clickhouse-mcp-server"
16
+ Repository = "https://github.com/burakdirin/clickhouse-mcp-server"
17
+ "Bug Tracker" = "https://github.com/burakdirin/clickhouse-mcp-server/issues"
18
+
19
+ [[project.authors]]
20
+ name = "Burak Dirin"
21
+ email = "burakdirin@gmail.com"
22
+
23
+ [build-system]
24
+ requires = [ "hatchling",]
25
+ build-backend = "hatchling.build"
26
+
27
+ [project.scripts]
28
+ clickhouse-mcp-server = "clickhouse_mcp_server:main"
29
+
30
+ [tool.hatch.build.targets.wheel]
31
+ packages = ["src/clickhouse_mcp_server"]
@@ -0,0 +1,3 @@
1
+ mcp>=1.4.1
2
+ python-dotenv>=1.0.1
3
+ clickhouse-driver>=0.2.9
@@ -0,0 +1,48 @@
1
+ # Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
2
+
3
+ startCommand:
4
+ type: stdio
5
+ configSchema:
6
+ # JSON Schema defining the configuration options for the MCP.
7
+ type: object
8
+ properties:
9
+ CLICKHOUSE_HOST:
10
+ type: string
11
+ default: localhost
12
+ description: ClickHouse server address
13
+ CLICKHOUSE_USER:
14
+ type: string
15
+ default: root
16
+ description: ClickHouse username
17
+ CLICKHOUSE_PASSWORD:
18
+ type: string
19
+ default: ""
20
+ description: ClickHouse password
21
+ CLICKHOUSE_DATABASE:
22
+ type: string
23
+ default: ""
24
+ description: Initial database (optional)
25
+ CLICKHOUSE_READONLY:
26
+ type: boolean
27
+ default: false
28
+ description: Read-only mode, set true to enable
29
+ commandFunction:
30
+ # A JS function that produces the CLI command based on the given config to start the MCP on stdio.
31
+ |-
32
+ (config) => ({
33
+ command: 'clickhouse-mcp-server',
34
+ args: [],
35
+ env: {
36
+ CLICKHOUSE_HOST: config.CLICKHOUSE_HOST,
37
+ CLICKHOUSE_USER: config.CLICKHOUSE_USER,
38
+ CLICKHOUSE_PASSWORD: config.CLICKHOUSE_PASSWORD,
39
+ CLICKHOUSE_DATABASE: config.CLICKHOUSE_DATABASE,
40
+ CLICKHOUSE_READONLY: config.CLICKHOUSE_READONLY.toString()
41
+ }
42
+ })
43
+ exampleConfig:
44
+ CLICKHOUSE_HOST: localhost
45
+ CLICKHOUSE_USER: root
46
+ CLICKHOUSE_PASSWORD: password
47
+ CLICKHOUSE_DATABASE: ""
48
+ CLICKHOUSE_READONLY: false
@@ -0,0 +1,15 @@
1
+ """
2
+ ClickHouse MCP Server
3
+
4
+ A server for interacting with ClickHouse databases through MCP.
5
+ """
6
+
7
+ from .server import mcp
8
+
9
+
10
+ def main() -> None:
11
+ """Run the ClickHouse MCP server"""
12
+ mcp.run()
13
+
14
+
15
+ __all__ = ['mcp', 'main']
@@ -0,0 +1,208 @@
1
+ import json
2
+ import os
3
+ from contextlib import asynccontextmanager
4
+ from dataclasses import dataclass
5
+ from typing import Any, AsyncIterator, Dict, List, Optional
6
+
7
+ from clickhouse_driver import Client
8
+ from dotenv import load_dotenv
9
+ from mcp.server.fastmcp import Context, FastMCP
10
+
11
+
12
+ class ClickHouseServerError(Exception):
13
+ """Base exception for ClickHouse server errors"""
14
+
15
+ pass
16
+
17
+
18
+ class ConnectionError(ClickHouseServerError):
19
+ """Raised when there's an issue with the database connection"""
20
+ pass
21
+
22
+
23
+ class QueryError(ClickHouseServerError):
24
+ """Raised when there's an issue executing a query"""
25
+ pass
26
+
27
+
28
+ @dataclass
29
+ class ClickHouseContext:
30
+ """Context for ClickHouse connection"""
31
+ host: str
32
+ port: int
33
+ user: str
34
+ password: str
35
+ database: Optional[str]
36
+ readonly: bool
37
+ client: Optional[Client] = None
38
+
39
+ def ensure_connected(self) -> None:
40
+ """Ensure database connection is available, connecting lazily if needed"""
41
+ if not self.client:
42
+ settings = {
43
+ 'host': self.host,
44
+ 'port': self.port,
45
+ 'user': self.user,
46
+ 'password': self.password,
47
+ # Convert bool to int
48
+ 'settings': {'readonly': 1 if self.readonly else 0}
49
+ }
50
+ if self.database:
51
+ settings['database'] = self.database
52
+
53
+ try:
54
+ self.client = Client(**settings)
55
+ # Test connection
56
+ self.client.execute('SELECT 1')
57
+ except Exception as e:
58
+ raise ConnectionError(
59
+ f"Failed to connect to database: {str(e)}")
60
+
61
+
62
+ class QueryExecutor:
63
+ """Handles ClickHouse query execution and result processing"""
64
+
65
+ def __init__(self, context: ClickHouseContext):
66
+ self.context = context
67
+
68
+ def _format_datetime(self, value: Any) -> Any:
69
+ """Format datetime values to string"""
70
+ return value.strftime('%Y-%m-%d %H:%M:%S') if hasattr(value, 'strftime') else value
71
+
72
+ def _process_row(self, row: Dict[str, Any]) -> Dict[str, Any]:
73
+ """Process a single row of results"""
74
+ return {key: self._format_datetime(value) for key, value in row.items()}
75
+
76
+ def _is_use_statement(self, query: str) -> bool:
77
+ """Check if the query is a USE statement"""
78
+ return query.strip().upper().startswith('USE')
79
+
80
+ def execute_single_query(self, query: str) -> Dict[str, Any]:
81
+ """Execute a single query and return results"""
82
+ self.context.ensure_connected()
83
+
84
+ try:
85
+ # Handle USE statements
86
+ if self._is_use_statement(query):
87
+ db_name = query.strip().split()[-1].strip('`').strip()
88
+ self.context.database = db_name
89
+ self.context.client.execute(f'USE {db_name}')
90
+ return {"message": f"Switched to database: {db_name}"}
91
+
92
+ # Execute query
93
+ result = self.context.client.execute(query, with_column_types=True)
94
+
95
+ if not result:
96
+ return {"affected_rows": 0}
97
+
98
+ rows, columns = result
99
+ if not rows:
100
+ return {"affected_rows": 0}
101
+
102
+ # Convert rows to dictionaries
103
+ column_names = [col[0] for col in columns]
104
+ results = []
105
+ for row in rows:
106
+ row_dict = dict(zip(column_names, row))
107
+ results.append(self._process_row(row_dict))
108
+
109
+ return results if len(results) > 0 else {"affected_rows": 0}
110
+
111
+ except Exception as e:
112
+ raise QueryError(f"Error executing query: {str(e)}")
113
+
114
+ def execute_multiple_queries(self, query: str) -> List[Dict[str, Any]]:
115
+ """Execute multiple queries and return results"""
116
+ queries = [q.strip() for q in query.split(';') if q.strip()]
117
+ results = []
118
+
119
+ for single_query in queries:
120
+ try:
121
+ result = self.execute_single_query(single_query)
122
+ results.append(result)
123
+ except QueryError as e:
124
+ results.append({"error": str(e)})
125
+
126
+ return results
127
+
128
+
129
+ def get_env_vars() -> tuple[str, int, str, str, Optional[str], bool]:
130
+ """Get ClickHouse connection settings from environment variables
131
+
132
+ Returns:
133
+ Tuple of (host, port, user, password, database, readonly)
134
+ """
135
+ load_dotenv()
136
+
137
+ host = os.getenv("CLICKHOUSE_HOST", "localhost")
138
+ port = int(os.getenv("CLICKHOUSE_PORT", "9000"))
139
+ user = os.getenv("CLICKHOUSE_USER", "default")
140
+ password = os.getenv("CLICKHOUSE_PASSWORD", "")
141
+ database = os.getenv("CLICKHOUSE_DATABASE") # Optional
142
+ readonly = os.getenv("CLICKHOUSE_READONLY", "0") in ("1", "true", "True")
143
+
144
+ return host, port, user, password, database, readonly
145
+
146
+
147
+ @asynccontextmanager
148
+ async def clickhouse_lifespan(server: FastMCP) -> AsyncIterator[ClickHouseContext]:
149
+ """ClickHouse connection lifecycle manager"""
150
+ # Get connection settings from environment variables
151
+ host, port, user, password, database, readonly = get_env_vars()
152
+
153
+ # Initialize context without connecting
154
+ ctx = ClickHouseContext(
155
+ host=host,
156
+ port=port,
157
+ user=user,
158
+ password=password,
159
+ database=database,
160
+ readonly=readonly,
161
+ client=None # Don't connect immediately
162
+ )
163
+
164
+ try:
165
+ yield ctx
166
+ finally:
167
+ if ctx.client:
168
+ # ClickHouse driver doesn't require explicit connection closing
169
+ ctx.client = None
170
+
171
+
172
+ # Create MCP server instance
173
+ mcp = FastMCP("ClickHouse Explorer", lifespan=clickhouse_lifespan)
174
+
175
+
176
+ def _get_executor(ctx: Context) -> QueryExecutor:
177
+ """Helper function to get QueryExecutor from context"""
178
+ clickhouse_ctx = ctx.request_context.lifespan_context
179
+ return QueryExecutor(clickhouse_ctx)
180
+
181
+
182
+ @mcp.tool()
183
+ def connect_database(database: str, ctx: Context) -> str:
184
+ """Connect to a specific ClickHouse database"""
185
+ try:
186
+ executor = _get_executor(ctx)
187
+ result = executor.execute_single_query(f"USE {database}")
188
+ return json.dumps(result, indent=2)
189
+ except (ConnectionError, QueryError) as e:
190
+ return str(e)
191
+
192
+
193
+ @mcp.tool()
194
+ def execute_query(query: str, ctx: Context) -> str:
195
+ """Execute ClickHouse queries"""
196
+ try:
197
+ executor = _get_executor(ctx)
198
+ results = executor.execute_multiple_queries(query)
199
+
200
+ if len(results) == 1:
201
+ return json.dumps(results[0], indent=2)
202
+ return json.dumps(results, indent=2)
203
+ except (ConnectionError, QueryError) as e:
204
+ return str(e)
205
+
206
+
207
+ if __name__ == "__main__":
208
+ mcp.run()
@@ -0,0 +1,362 @@
1
+ version = 1
2
+ revision = 1
3
+ requires-python = ">=3.11"
4
+
5
+ [[package]]
6
+ name = "annotated-types"
7
+ version = "0.7.0"
8
+ source = { registry = "https://pypi.org/simple" }
9
+ sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081 }
10
+ wheels = [
11
+ { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643 },
12
+ ]
13
+
14
+ [[package]]
15
+ name = "anyio"
16
+ version = "4.9.0"
17
+ source = { registry = "https://pypi.org/simple" }
18
+ dependencies = [
19
+ { name = "idna" },
20
+ { name = "sniffio" },
21
+ { name = "typing-extensions", marker = "python_full_version < '3.13'" },
22
+ ]
23
+ sdist = { url = "https://files.pythonhosted.org/packages/95/7d/4c1bd541d4dffa1b52bd83fb8527089e097a106fc90b467a7313b105f840/anyio-4.9.0.tar.gz", hash = "sha256:673c0c244e15788651a4ff38710fea9675823028a6f08a5eda409e0c9840a028", size = 190949 }
24
+ wheels = [
25
+ { url = "https://files.pythonhosted.org/packages/a1/ee/48ca1a7c89ffec8b6a0c5d02b89c305671d5ffd8d3c94acf8b8c408575bb/anyio-4.9.0-py3-none-any.whl", hash = "sha256:9f76d541cad6e36af7beb62e978876f3b41e3e04f2c1fbf0884604c0a9c4d93c", size = 100916 },
26
+ ]
27
+
28
+ [[package]]
29
+ name = "certifi"
30
+ version = "2025.1.31"
31
+ source = { registry = "https://pypi.org/simple" }
32
+ sdist = { url = "https://files.pythonhosted.org/packages/1c/ab/c9f1e32b7b1bf505bf26f0ef697775960db7932abeb7b516de930ba2705f/certifi-2025.1.31.tar.gz", hash = "sha256:3d5da6925056f6f18f119200434a4780a94263f10d1c21d032a6f6b2baa20651", size = 167577 }
33
+ wheels = [
34
+ { url = "https://files.pythonhosted.org/packages/38/fc/bce832fd4fd99766c04d1ee0eead6b0ec6486fb100ae5e74c1d91292b982/certifi-2025.1.31-py3-none-any.whl", hash = "sha256:ca78db4565a652026a4db2bcdf68f2fb589ea80d0be70e03929ed730746b84fe", size = 166393 },
35
+ ]
36
+
37
+ [[package]]
38
+ name = "click"
39
+ version = "8.1.8"
40
+ source = { registry = "https://pypi.org/simple" }
41
+ dependencies = [
42
+ { name = "colorama", marker = "sys_platform == 'win32'" },
43
+ ]
44
+ sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593 }
45
+ wheels = [
46
+ { url = "https://files.pythonhosted.org/packages/7e/d4/7ebdbd03970677812aac39c869717059dbb71a4cfc033ca6e5221787892c/click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2", size = 98188 },
47
+ ]
48
+
49
+ [[package]]
50
+ name = "clickhouse-driver"
51
+ version = "0.2.9"
52
+ source = { registry = "https://pypi.org/simple" }
53
+ dependencies = [
54
+ { name = "pytz" },
55
+ { name = "tzlocal" },
56
+ ]
57
+ sdist = { url = "https://files.pythonhosted.org/packages/bf/0b/3790274f7591fc55b1f91bcc8e576338859cc632b1b17288b5bab79b769d/clickhouse-driver-0.2.9.tar.gz", hash = "sha256:050ea4870ead993910b39e7fae965dc1c347b2e8191dcd977cd4b385f9e19f87", size = 357752 }
58
+ wheels = [
59
+ { url = "https://files.pythonhosted.org/packages/53/e9/8bf043fbac34e06eebb7d58647c1a28616bf065cdc3334c8d771902c8902/clickhouse_driver-0.2.9-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:5a7353a7a08eee3aa0001d8a5d771cb1f37e2acae1b48178002431f23892121a", size = 220413 },
60
+ { url = "https://files.pythonhosted.org/packages/88/6d/e8b534bee11c809f52b1c9d77160da48a3d84c775d7e547a73f2d2ba1f9f/clickhouse_driver-0.2.9-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:6af1c6cbc3481205503ab72a34aa76d6519249c904aa3f7a84b31e7b435555be", size = 215881 },
61
+ { url = "https://files.pythonhosted.org/packages/f0/5e/894f789b47a4deaff0a84b2660323b4b3e692c3ff5cc0783d59a7945b50d/clickhouse_driver-0.2.9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:48033803abd1100bfff6b9a1769d831b672cd3cda5147e0323b956fd1416d38d", size = 1015584 },
62
+ { url = "https://files.pythonhosted.org/packages/ab/91/951e0aa20d110f8d801023fec28c9cbbb0cfa9c596170e732e66bb30bf9d/clickhouse_driver-0.2.9-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1f202a58a540c85e47c31dabc8f84b6fe79dca5315c866450a538d58d6fa0571", size = 1058755 },
63
+ { url = "https://files.pythonhosted.org/packages/7a/25/2ff96df78d078150e5bc01307657a21b8bd29f040c11bffed7841228eabe/clickhouse_driver-0.2.9-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e4df50fd84bfa4aa1eb7b52d48136066bfb64fabb7ceb62d4c318b45a296200b", size = 1058250 },
64
+ { url = "https://files.pythonhosted.org/packages/f7/08/1b08d596dab964bd306a45d4d3fe84c1740888d5a392374621a5fac8f186/clickhouse_driver-0.2.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:433a650571a0d7766eb6f402e8f5930222997686c2ee01ded22f1d8fd46af9d4", size = 1026785 },
65
+ { url = "https://files.pythonhosted.org/packages/8e/34/8b34c729719617373f645ad4cdff38ff7f7903b417208ad97859407edb3f/clickhouse_driver-0.2.9-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:232ee260475611cbf7adb554b81db6b5790b36e634fe2164f4ffcd2ca3e63a71", size = 988253 },
66
+ { url = "https://files.pythonhosted.org/packages/f0/b0/d36ec521179b7d2966831ae875e2049800c653d6a6697e96c3143e09b66c/clickhouse_driver-0.2.9-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:09049f7e71f15c9c9a03f597f77fc1f7b61ababd155c06c0d9e64d1453d945d7", size = 1016946 },
67
+ { url = "https://files.pythonhosted.org/packages/0f/90/74e9cc608a9c0aca8fc58e3fa1dc5f8dda4e0c00bd3d4be8c9abd31a4e54/clickhouse_driver-0.2.9-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:424153d1d5f5a807f596a48cc88119f9fb3213ca7e38f57b8d15dcc964dd91f7", size = 993030 },
68
+ { url = "https://files.pythonhosted.org/packages/29/b5/7831b1eefb8450e12b263cc8d9e60615e361d698485ffc66fd8704145381/clickhouse_driver-0.2.9-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:4f078fd1cf19c4ca63b8d1e0803df665310c8d5b644c5b02bf2465e8d6ef8f55", size = 1053397 },
69
+ { url = "https://files.pythonhosted.org/packages/fc/d2/4c2206105f7e8d5a06b1aea6ea345fadf42d299f0b642b89b86c3be8b726/clickhouse_driver-0.2.9-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:f138d939e26e767537f891170b69a55a88038919f5c10d8865b67b8777fe4848", size = 1061742 },
70
+ { url = "https://files.pythonhosted.org/packages/10/1c/0951208141bb26681c06ea0c84a0fe5e4374b1560c38abe8b5f93da6bbb5/clickhouse_driver-0.2.9-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:9aafabc7e32942f85dcb46f007f447ab69024831575df97cae28c6ed127654d1", size = 1031183 },
71
+ { url = "https://files.pythonhosted.org/packages/23/94/2e533b5638fddb6abfb3f3de41f9938445661aae781209c5d6634d53b40f/clickhouse_driver-0.2.9-cp311-cp311-win32.whl", hash = "sha256:935e16ebf1a1998d8493979d858821a755503c9b8af572d9c450173d4b88868c", size = 198031 },
72
+ { url = "https://files.pythonhosted.org/packages/45/87/163e4469d298d5f74a61328a129494c84404932ae25d7c585b172609def7/clickhouse_driver-0.2.9-cp311-cp311-win_amd64.whl", hash = "sha256:306b3102cba278b5dfec6f5f7dc8b78416c403901510475c74913345b56c9e42", size = 213510 },
73
+ { url = "https://files.pythonhosted.org/packages/60/58/acc74be412330aa4d681df2d13e013e84e27cc767dea73a507cb71c74cff/clickhouse_driver-0.2.9-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:fcb2fd00e58650ae206a6d5dbc83117240e622471aa5124733fbf2805eb8bda0", size = 221487 },
74
+ { url = "https://files.pythonhosted.org/packages/f5/bc/09b69a1be0155e02a0df9ecafb63c9a2f7d9e412c865dd3c711e07967e85/clickhouse_driver-0.2.9-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b7a3e6b0a1eb218e3d870a94c76daaf65da46dca8f6888ea6542f94905c24d88", size = 217362 },
75
+ { url = "https://files.pythonhosted.org/packages/ed/58/79eadc238d6ee0d7920ae36f0ea3a6479a8310bffb6c97ea6aa060a98434/clickhouse_driver-0.2.9-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4a8d8e2888a857d8db3d98765a5ad23ab561241feaef68bbffc5a0bd9c142342", size = 1018173 },
76
+ { url = "https://files.pythonhosted.org/packages/44/61/1647a0d8aae2c4a3d8c3093d1799f943ff38a0cb81d5e4050be18993f3fa/clickhouse_driver-0.2.9-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:85d50c011467f5ff6772c4059345968b854b72e07a0219030b7c3f68419eb7f7", size = 1046542 },
77
+ { url = "https://files.pythonhosted.org/packages/77/23/32bab0efeec64d56313b90c73d067440829630f9a5980de73cb52350a4c9/clickhouse_driver-0.2.9-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:93b395c1370629ccce8fb3e14cd5be2646d227bd32018c21f753c543e9a7e96b", size = 1057508 },
78
+ { url = "https://files.pythonhosted.org/packages/07/8e/9b79fd85d28a9e83b87a8722a8e736d69ef5edde8cee5d1dde6950aa512f/clickhouse_driver-0.2.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6dbcee870c60d9835e5dce1456ab6b9d807e6669246357f4b321ef747b90fa43", size = 1032860 },
79
+ { url = "https://files.pythonhosted.org/packages/bd/ca/208358dd8d80a25633b5f19a9acadb1fb23b55be7f2123e5e70d132de204/clickhouse_driver-0.2.9-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fffa5a5f317b1ec92e406a30a008929054cf3164d2324a3c465d0a0330273bf8", size = 984133 },
80
+ { url = "https://files.pythonhosted.org/packages/19/e1/9767cea5bfc9451b7a2680d5b0d4bd3261c56db92002f90ce716209f59c1/clickhouse_driver-0.2.9-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:476702740a279744badbd177ae1c4a2d089ec128bd676861219d1f92078e4530", size = 1020897 },
81
+ { url = "https://files.pythonhosted.org/packages/f5/bc/62511b61fbee97c8ab1c64ab4bf33045bcc132d236e61a65831c0de32b82/clickhouse_driver-0.2.9-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:5cd6d95fab5ff80e9dc9baedc9a926f62f74072d42d5804388d63b63bec0bb63", size = 989911 },
82
+ { url = "https://files.pythonhosted.org/packages/a0/a8/e3ff5cbc24dbc087acf0733c47fe7a6a6a2f3225e9c168af2414fb803f3c/clickhouse_driver-0.2.9-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:05027d32d7cf3e46cb8d04f8c984745ae01bd1bc7b3579f9dadf9b3cca735697", size = 1045389 },
83
+ { url = "https://files.pythonhosted.org/packages/d6/58/29f56e340094cfec72080773e3d94c7963c2e69f70edff83f2a139965d38/clickhouse_driver-0.2.9-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:3d11831842250b4c1b26503a6e9c511fc03db096608b7c6af743818c421a3032", size = 1063242 },
84
+ { url = "https://files.pythonhosted.org/packages/ff/0f/161626812ad2bd9480ff390a96489983709d94b33da68f028ace9d1367be/clickhouse_driver-0.2.9-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:81b4b671b785ebb0b8aeabf2432e47072413d81db959eb8cfd8b6ab58c5799c6", size = 1039703 },
85
+ { url = "https://files.pythonhosted.org/packages/4a/29/e353c4e835d722b4f6b259d668c2ac47f35bf6a0053414a80522df649ff5/clickhouse_driver-0.2.9-cp312-cp312-win32.whl", hash = "sha256:e893bd4e014877174a59e032b0e99809c95ec61328a0e6bd9352c74a2f6111a8", size = 198390 },
86
+ { url = "https://files.pythonhosted.org/packages/5b/09/ff81e99e9ecbb85f2ada57a690b1d0cfee6f2e1eff59ee08609a160d5644/clickhouse_driver-0.2.9-cp312-cp312-win_amd64.whl", hash = "sha256:de6624e28eeffd01668803d28ae89e3d4e359b1bff8b60e4933e1cb3c6f86f18", size = 213585 },
87
+ ]
88
+
89
+ [[package]]
90
+ name = "clickhouse-mcp-server"
91
+ version = "0.1.0"
92
+ source = { editable = "." }
93
+ dependencies = [
94
+ { name = "clickhouse-driver" },
95
+ { name = "mcp" },
96
+ { name = "python-dotenv" },
97
+ ]
98
+
99
+ [package.metadata]
100
+ requires-dist = [
101
+ { name = "clickhouse-driver", specifier = ">=0.2.9" },
102
+ { name = "mcp", specifier = ">=1.4.1" },
103
+ { name = "python-dotenv", specifier = ">=1.0.1" },
104
+ ]
105
+
106
+ [[package]]
107
+ name = "colorama"
108
+ version = "0.4.6"
109
+ source = { registry = "https://pypi.org/simple" }
110
+ sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 }
111
+ wheels = [
112
+ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 },
113
+ ]
114
+
115
+ [[package]]
116
+ name = "h11"
117
+ version = "0.14.0"
118
+ source = { registry = "https://pypi.org/simple" }
119
+ sdist = { url = "https://files.pythonhosted.org/packages/f5/38/3af3d3633a34a3316095b39c8e8fb4853a28a536e55d347bd8d8e9a14b03/h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d", size = 100418 }
120
+ wheels = [
121
+ { url = "https://files.pythonhosted.org/packages/95/04/ff642e65ad6b90db43e668d70ffb6736436c7ce41fcc549f4e9472234127/h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761", size = 58259 },
122
+ ]
123
+
124
+ [[package]]
125
+ name = "httpcore"
126
+ version = "1.0.7"
127
+ source = { registry = "https://pypi.org/simple" }
128
+ dependencies = [
129
+ { name = "certifi" },
130
+ { name = "h11" },
131
+ ]
132
+ sdist = { url = "https://files.pythonhosted.org/packages/6a/41/d7d0a89eb493922c37d343b607bc1b5da7f5be7e383740b4753ad8943e90/httpcore-1.0.7.tar.gz", hash = "sha256:8551cb62a169ec7162ac7be8d4817d561f60e08eaa485234898414bb5a8a0b4c", size = 85196 }
133
+ wheels = [
134
+ { url = "https://files.pythonhosted.org/packages/87/f5/72347bc88306acb359581ac4d52f23c0ef445b57157adedb9aee0cd689d2/httpcore-1.0.7-py3-none-any.whl", hash = "sha256:a3fff8f43dc260d5bd363d9f9cf1830fa3a458b332856f34282de498ed420edd", size = 78551 },
135
+ ]
136
+
137
+ [[package]]
138
+ name = "httpx"
139
+ version = "0.28.1"
140
+ source = { registry = "https://pypi.org/simple" }
141
+ dependencies = [
142
+ { name = "anyio" },
143
+ { name = "certifi" },
144
+ { name = "httpcore" },
145
+ { name = "idna" },
146
+ ]
147
+ sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406 }
148
+ wheels = [
149
+ { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517 },
150
+ ]
151
+
152
+ [[package]]
153
+ name = "httpx-sse"
154
+ version = "0.4.0"
155
+ source = { registry = "https://pypi.org/simple" }
156
+ sdist = { url = "https://files.pythonhosted.org/packages/4c/60/8f4281fa9bbf3c8034fd54c0e7412e66edbab6bc74c4996bd616f8d0406e/httpx-sse-0.4.0.tar.gz", hash = "sha256:1e81a3a3070ce322add1d3529ed42eb5f70817f45ed6ec915ab753f961139721", size = 12624 }
157
+ wheels = [
158
+ { url = "https://files.pythonhosted.org/packages/e1/9b/a181f281f65d776426002f330c31849b86b31fc9d848db62e16f03ff739f/httpx_sse-0.4.0-py3-none-any.whl", hash = "sha256:f329af6eae57eaa2bdfd962b42524764af68075ea87370a2de920af5341e318f", size = 7819 },
159
+ ]
160
+
161
+ [[package]]
162
+ name = "idna"
163
+ version = "3.10"
164
+ source = { registry = "https://pypi.org/simple" }
165
+ sdist = { url = "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9", size = 190490 }
166
+ wheels = [
167
+ { url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442 },
168
+ ]
169
+
170
+ [[package]]
171
+ name = "mcp"
172
+ version = "1.4.1"
173
+ source = { registry = "https://pypi.org/simple" }
174
+ dependencies = [
175
+ { name = "anyio" },
176
+ { name = "httpx" },
177
+ { name = "httpx-sse" },
178
+ { name = "pydantic" },
179
+ { name = "pydantic-settings" },
180
+ { name = "sse-starlette" },
181
+ { name = "starlette" },
182
+ { name = "uvicorn" },
183
+ ]
184
+ sdist = { url = "https://files.pythonhosted.org/packages/50/cc/5c5bb19f1a0f8f89a95e25cb608b0b07009e81fd4b031e519335404e1422/mcp-1.4.1.tar.gz", hash = "sha256:b9655d2de6313f9d55a7d1df62b3c3fe27a530100cc85bf23729145b0dba4c7a", size = 154942 }
185
+ wheels = [
186
+ { url = "https://files.pythonhosted.org/packages/e8/0e/885f156ade60108e67bf044fada5269da68e29d758a10b0c513f4d85dd76/mcp-1.4.1-py3-none-any.whl", hash = "sha256:a7716b1ec1c054e76f49806f7d96113b99fc1166fc9244c2c6f19867cb75b593", size = 72448 },
187
+ ]
188
+
189
+ [[package]]
190
+ name = "pydantic"
191
+ version = "2.10.6"
192
+ source = { registry = "https://pypi.org/simple" }
193
+ dependencies = [
194
+ { name = "annotated-types" },
195
+ { name = "pydantic-core" },
196
+ { name = "typing-extensions" },
197
+ ]
198
+ sdist = { url = "https://files.pythonhosted.org/packages/b7/ae/d5220c5c52b158b1de7ca89fc5edb72f304a70a4c540c84c8844bf4008de/pydantic-2.10.6.tar.gz", hash = "sha256:ca5daa827cce33de7a42be142548b0096bf05a7e7b365aebfa5f8eeec7128236", size = 761681 }
199
+ wheels = [
200
+ { url = "https://files.pythonhosted.org/packages/f4/3c/8cc1cc84deffa6e25d2d0c688ebb80635dfdbf1dbea3e30c541c8cf4d860/pydantic-2.10.6-py3-none-any.whl", hash = "sha256:427d664bf0b8a2b34ff5dd0f5a18df00591adcee7198fbd71981054cef37b584", size = 431696 },
201
+ ]
202
+
203
+ [[package]]
204
+ name = "pydantic-core"
205
+ version = "2.27.2"
206
+ source = { registry = "https://pypi.org/simple" }
207
+ dependencies = [
208
+ { name = "typing-extensions" },
209
+ ]
210
+ sdist = { url = "https://files.pythonhosted.org/packages/fc/01/f3e5ac5e7c25833db5eb555f7b7ab24cd6f8c322d3a3ad2d67a952dc0abc/pydantic_core-2.27.2.tar.gz", hash = "sha256:eb026e5a4c1fee05726072337ff51d1efb6f59090b7da90d30ea58625b1ffb39", size = 413443 }
211
+ wheels = [
212
+ { url = "https://files.pythonhosted.org/packages/c2/89/f3450af9d09d44eea1f2c369f49e8f181d742f28220f88cc4dfaae91ea6e/pydantic_core-2.27.2-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:8e10c99ef58cfdf2a66fc15d66b16c4a04f62bca39db589ae8cba08bc55331bc", size = 1893421 },
213
+ { url = "https://files.pythonhosted.org/packages/9e/e3/71fe85af2021f3f386da42d291412e5baf6ce7716bd7101ea49c810eda90/pydantic_core-2.27.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:26f32e0adf166a84d0cb63be85c562ca8a6fa8de28e5f0d92250c6b7e9e2aff7", size = 1814998 },
214
+ { url = "https://files.pythonhosted.org/packages/a6/3c/724039e0d848fd69dbf5806894e26479577316c6f0f112bacaf67aa889ac/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8c19d1ea0673cd13cc2f872f6c9ab42acc4e4f492a7ca9d3795ce2b112dd7e15", size = 1826167 },
215
+ { url = "https://files.pythonhosted.org/packages/2b/5b/1b29e8c1fb5f3199a9a57c1452004ff39f494bbe9bdbe9a81e18172e40d3/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5e68c4446fe0810e959cdff46ab0a41ce2f2c86d227d96dc3847af0ba7def306", size = 1865071 },
216
+ { url = "https://files.pythonhosted.org/packages/89/6c/3985203863d76bb7d7266e36970d7e3b6385148c18a68cc8915fd8c84d57/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d9640b0059ff4f14d1f37321b94061c6db164fbe49b334b31643e0528d100d99", size = 2036244 },
217
+ { url = "https://files.pythonhosted.org/packages/0e/41/f15316858a246b5d723f7d7f599f79e37493b2e84bfc789e58d88c209f8a/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:40d02e7d45c9f8af700f3452f329ead92da4c5f4317ca9b896de7ce7199ea459", size = 2737470 },
218
+ { url = "https://files.pythonhosted.org/packages/a8/7c/b860618c25678bbd6d1d99dbdfdf0510ccb50790099b963ff78a124b754f/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1c1fd185014191700554795c99b347d64f2bb637966c4cfc16998a0ca700d048", size = 1992291 },
219
+ { url = "https://files.pythonhosted.org/packages/bf/73/42c3742a391eccbeab39f15213ecda3104ae8682ba3c0c28069fbcb8c10d/pydantic_core-2.27.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d81d2068e1c1228a565af076598f9e7451712700b673de8f502f0334f281387d", size = 1994613 },
220
+ { url = "https://files.pythonhosted.org/packages/94/7a/941e89096d1175d56f59340f3a8ebaf20762fef222c298ea96d36a6328c5/pydantic_core-2.27.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:1a4207639fb02ec2dbb76227d7c751a20b1a6b4bc52850568e52260cae64ca3b", size = 2002355 },
221
+ { url = "https://files.pythonhosted.org/packages/6e/95/2359937a73d49e336a5a19848713555605d4d8d6940c3ec6c6c0ca4dcf25/pydantic_core-2.27.2-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:3de3ce3c9ddc8bbd88f6e0e304dea0e66d843ec9de1b0042b0911c1663ffd474", size = 2126661 },
222
+ { url = "https://files.pythonhosted.org/packages/2b/4c/ca02b7bdb6012a1adef21a50625b14f43ed4d11f1fc237f9d7490aa5078c/pydantic_core-2.27.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:30c5f68ded0c36466acede341551106821043e9afaad516adfb6e8fa80a4e6a6", size = 2153261 },
223
+ { url = "https://files.pythonhosted.org/packages/72/9d/a241db83f973049a1092a079272ffe2e3e82e98561ef6214ab53fe53b1c7/pydantic_core-2.27.2-cp311-cp311-win32.whl", hash = "sha256:c70c26d2c99f78b125a3459f8afe1aed4d9687c24fd677c6a4436bc042e50d6c", size = 1812361 },
224
+ { url = "https://files.pythonhosted.org/packages/e8/ef/013f07248041b74abd48a385e2110aa3a9bbfef0fbd97d4e6d07d2f5b89a/pydantic_core-2.27.2-cp311-cp311-win_amd64.whl", hash = "sha256:08e125dbdc505fa69ca7d9c499639ab6407cfa909214d500897d02afb816e7cc", size = 1982484 },
225
+ { url = "https://files.pythonhosted.org/packages/10/1c/16b3a3e3398fd29dca77cea0a1d998d6bde3902fa2706985191e2313cc76/pydantic_core-2.27.2-cp311-cp311-win_arm64.whl", hash = "sha256:26f0d68d4b235a2bae0c3fc585c585b4ecc51382db0e3ba402a22cbc440915e4", size = 1867102 },
226
+ { url = "https://files.pythonhosted.org/packages/d6/74/51c8a5482ca447871c93e142d9d4a92ead74de6c8dc5e66733e22c9bba89/pydantic_core-2.27.2-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:9e0c8cfefa0ef83b4da9588448b6d8d2a2bf1a53c3f1ae5fca39eb3061e2f0b0", size = 1893127 },
227
+ { url = "https://files.pythonhosted.org/packages/d3/f3/c97e80721735868313c58b89d2de85fa80fe8dfeeed84dc51598b92a135e/pydantic_core-2.27.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:83097677b8e3bd7eaa6775720ec8e0405f1575015a463285a92bfdfe254529ef", size = 1811340 },
228
+ { url = "https://files.pythonhosted.org/packages/9e/91/840ec1375e686dbae1bd80a9e46c26a1e0083e1186abc610efa3d9a36180/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:172fce187655fece0c90d90a678424b013f8fbb0ca8b036ac266749c09438cb7", size = 1822900 },
229
+ { url = "https://files.pythonhosted.org/packages/f6/31/4240bc96025035500c18adc149aa6ffdf1a0062a4b525c932065ceb4d868/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:519f29f5213271eeeeb3093f662ba2fd512b91c5f188f3bb7b27bc5973816934", size = 1869177 },
230
+ { url = "https://files.pythonhosted.org/packages/fa/20/02fbaadb7808be578317015c462655c317a77a7c8f0ef274bc016a784c54/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:05e3a55d124407fffba0dd6b0c0cd056d10e983ceb4e5dbd10dda135c31071d6", size = 2038046 },
231
+ { url = "https://files.pythonhosted.org/packages/06/86/7f306b904e6c9eccf0668248b3f272090e49c275bc488a7b88b0823444a4/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9c3ed807c7b91de05e63930188f19e921d1fe90de6b4f5cd43ee7fcc3525cb8c", size = 2685386 },
232
+ { url = "https://files.pythonhosted.org/packages/8d/f0/49129b27c43396581a635d8710dae54a791b17dfc50c70164866bbf865e3/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6fb4aadc0b9a0c063206846d603b92030eb6f03069151a625667f982887153e2", size = 1997060 },
233
+ { url = "https://files.pythonhosted.org/packages/0d/0f/943b4af7cd416c477fd40b187036c4f89b416a33d3cc0ab7b82708a667aa/pydantic_core-2.27.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:28ccb213807e037460326424ceb8b5245acb88f32f3d2777427476e1b32c48c4", size = 2004870 },
234
+ { url = "https://files.pythonhosted.org/packages/35/40/aea70b5b1a63911c53a4c8117c0a828d6790483f858041f47bab0b779f44/pydantic_core-2.27.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:de3cd1899e2c279b140adde9357c4495ed9d47131b4a4eaff9052f23398076b3", size = 1999822 },
235
+ { url = "https://files.pythonhosted.org/packages/f2/b3/807b94fd337d58effc5498fd1a7a4d9d59af4133e83e32ae39a96fddec9d/pydantic_core-2.27.2-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:220f892729375e2d736b97d0e51466252ad84c51857d4d15f5e9692f9ef12be4", size = 2130364 },
236
+ { url = "https://files.pythonhosted.org/packages/fc/df/791c827cd4ee6efd59248dca9369fb35e80a9484462c33c6649a8d02b565/pydantic_core-2.27.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a0fcd29cd6b4e74fe8ddd2c90330fd8edf2e30cb52acda47f06dd615ae72da57", size = 2158303 },
237
+ { url = "https://files.pythonhosted.org/packages/9b/67/4e197c300976af185b7cef4c02203e175fb127e414125916bf1128b639a9/pydantic_core-2.27.2-cp312-cp312-win32.whl", hash = "sha256:1e2cb691ed9834cd6a8be61228471d0a503731abfb42f82458ff27be7b2186fc", size = 1834064 },
238
+ { url = "https://files.pythonhosted.org/packages/1f/ea/cd7209a889163b8dcca139fe32b9687dd05249161a3edda62860430457a5/pydantic_core-2.27.2-cp312-cp312-win_amd64.whl", hash = "sha256:cc3f1a99a4f4f9dd1de4fe0312c114e740b5ddead65bb4102884b384c15d8bc9", size = 1989046 },
239
+ { url = "https://files.pythonhosted.org/packages/bc/49/c54baab2f4658c26ac633d798dab66b4c3a9bbf47cff5284e9c182f4137a/pydantic_core-2.27.2-cp312-cp312-win_arm64.whl", hash = "sha256:3911ac9284cd8a1792d3cb26a2da18f3ca26c6908cc434a18f730dc0db7bfa3b", size = 1885092 },
240
+ { url = "https://files.pythonhosted.org/packages/41/b1/9bc383f48f8002f99104e3acff6cba1231b29ef76cfa45d1506a5cad1f84/pydantic_core-2.27.2-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:7d14bd329640e63852364c306f4d23eb744e0f8193148d4044dd3dacdaacbd8b", size = 1892709 },
241
+ { url = "https://files.pythonhosted.org/packages/10/6c/e62b8657b834f3eb2961b49ec8e301eb99946245e70bf42c8817350cbefc/pydantic_core-2.27.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:82f91663004eb8ed30ff478d77c4d1179b3563df6cdb15c0817cd1cdaf34d154", size = 1811273 },
242
+ { url = "https://files.pythonhosted.org/packages/ba/15/52cfe49c8c986e081b863b102d6b859d9defc63446b642ccbbb3742bf371/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:71b24c7d61131bb83df10cc7e687433609963a944ccf45190cfc21e0887b08c9", size = 1823027 },
243
+ { url = "https://files.pythonhosted.org/packages/b1/1c/b6f402cfc18ec0024120602bdbcebc7bdd5b856528c013bd4d13865ca473/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fa8e459d4954f608fa26116118bb67f56b93b209c39b008277ace29937453dc9", size = 1868888 },
244
+ { url = "https://files.pythonhosted.org/packages/bd/7b/8cb75b66ac37bc2975a3b7de99f3c6f355fcc4d89820b61dffa8f1e81677/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ce8918cbebc8da707ba805b7fd0b382816858728ae7fe19a942080c24e5b7cd1", size = 2037738 },
245
+ { url = "https://files.pythonhosted.org/packages/c8/f1/786d8fe78970a06f61df22cba58e365ce304bf9b9f46cc71c8c424e0c334/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:eda3f5c2a021bbc5d976107bb302e0131351c2ba54343f8a496dc8783d3d3a6a", size = 2685138 },
246
+ { url = "https://files.pythonhosted.org/packages/a6/74/d12b2cd841d8724dc8ffb13fc5cef86566a53ed358103150209ecd5d1999/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bd8086fa684c4775c27f03f062cbb9eaa6e17f064307e86b21b9e0abc9c0f02e", size = 1997025 },
247
+ { url = "https://files.pythonhosted.org/packages/a0/6e/940bcd631bc4d9a06c9539b51f070b66e8f370ed0933f392db6ff350d873/pydantic_core-2.27.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8d9b3388db186ba0c099a6d20f0604a44eabdeef1777ddd94786cdae158729e4", size = 2004633 },
248
+ { url = "https://files.pythonhosted.org/packages/50/cc/a46b34f1708d82498c227d5d80ce615b2dd502ddcfd8376fc14a36655af1/pydantic_core-2.27.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:7a66efda2387de898c8f38c0cf7f14fca0b51a8ef0b24bfea5849f1b3c95af27", size = 1999404 },
249
+ { url = "https://files.pythonhosted.org/packages/ca/2d/c365cfa930ed23bc58c41463bae347d1005537dc8db79e998af8ba28d35e/pydantic_core-2.27.2-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:18a101c168e4e092ab40dbc2503bdc0f62010e95d292b27827871dc85450d7ee", size = 2130130 },
250
+ { url = "https://files.pythonhosted.org/packages/f4/d7/eb64d015c350b7cdb371145b54d96c919d4db516817f31cd1c650cae3b21/pydantic_core-2.27.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ba5dd002f88b78a4215ed2f8ddbdf85e8513382820ba15ad5ad8955ce0ca19a1", size = 2157946 },
251
+ { url = "https://files.pythonhosted.org/packages/a4/99/bddde3ddde76c03b65dfd5a66ab436c4e58ffc42927d4ff1198ffbf96f5f/pydantic_core-2.27.2-cp313-cp313-win32.whl", hash = "sha256:1ebaf1d0481914d004a573394f4be3a7616334be70261007e47c2a6fe7e50130", size = 1834387 },
252
+ { url = "https://files.pythonhosted.org/packages/71/47/82b5e846e01b26ac6f1893d3c5f9f3a2eb6ba79be26eef0b759b4fe72946/pydantic_core-2.27.2-cp313-cp313-win_amd64.whl", hash = "sha256:953101387ecf2f5652883208769a79e48db18c6df442568a0b5ccd8c2723abee", size = 1990453 },
253
+ { url = "https://files.pythonhosted.org/packages/51/b2/b2b50d5ecf21acf870190ae5d093602d95f66c9c31f9d5de6062eb329ad1/pydantic_core-2.27.2-cp313-cp313-win_arm64.whl", hash = "sha256:ac4dbfd1691affb8f48c2c13241a2e3b60ff23247cbcf981759c768b6633cf8b", size = 1885186 },
254
+ ]
255
+
256
+ [[package]]
257
+ name = "pydantic-settings"
258
+ version = "2.8.1"
259
+ source = { registry = "https://pypi.org/simple" }
260
+ dependencies = [
261
+ { name = "pydantic" },
262
+ { name = "python-dotenv" },
263
+ ]
264
+ sdist = { url = "https://files.pythonhosted.org/packages/88/82/c79424d7d8c29b994fb01d277da57b0a9b09cc03c3ff875f9bd8a86b2145/pydantic_settings-2.8.1.tar.gz", hash = "sha256:d5c663dfbe9db9d5e1c646b2e161da12f0d734d422ee56f567d0ea2cee4e8585", size = 83550 }
265
+ wheels = [
266
+ { url = "https://files.pythonhosted.org/packages/0b/53/a64f03044927dc47aafe029c42a5b7aabc38dfb813475e0e1bf71c4a59d0/pydantic_settings-2.8.1-py3-none-any.whl", hash = "sha256:81942d5ac3d905f7f3ee1a70df5dfb62d5569c12f51a5a647defc1c3d9ee2e9c", size = 30839 },
267
+ ]
268
+
269
+ [[package]]
270
+ name = "python-dotenv"
271
+ version = "1.0.1"
272
+ source = { registry = "https://pypi.org/simple" }
273
+ sdist = { url = "https://files.pythonhosted.org/packages/bc/57/e84d88dfe0aec03b7a2d4327012c1627ab5f03652216c63d49846d7a6c58/python-dotenv-1.0.1.tar.gz", hash = "sha256:e324ee90a023d808f1959c46bcbc04446a10ced277783dc6ee09987c37ec10ca", size = 39115 }
274
+ wheels = [
275
+ { url = "https://files.pythonhosted.org/packages/6a/3e/b68c118422ec867fa7ab88444e1274aa40681c606d59ac27de5a5588f082/python_dotenv-1.0.1-py3-none-any.whl", hash = "sha256:f7b63ef50f1b690dddf550d03497b66d609393b40b564ed0d674909a68ebf16a", size = 19863 },
276
+ ]
277
+
278
+ [[package]]
279
+ name = "pytz"
280
+ version = "2025.1"
281
+ source = { registry = "https://pypi.org/simple" }
282
+ sdist = { url = "https://files.pythonhosted.org/packages/5f/57/df1c9157c8d5a05117e455d66fd7cf6dbc46974f832b1058ed4856785d8a/pytz-2025.1.tar.gz", hash = "sha256:c2db42be2a2518b28e65f9207c4d05e6ff547d1efa4086469ef855e4ab70178e", size = 319617 }
283
+ wheels = [
284
+ { url = "https://files.pythonhosted.org/packages/eb/38/ac33370d784287baa1c3d538978b5e2ea064d4c1b93ffbd12826c190dd10/pytz-2025.1-py2.py3-none-any.whl", hash = "sha256:89dd22dca55b46eac6eda23b2d72721bf1bdfef212645d81513ef5d03038de57", size = 507930 },
285
+ ]
286
+
287
+ [[package]]
288
+ name = "sniffio"
289
+ version = "1.3.1"
290
+ source = { registry = "https://pypi.org/simple" }
291
+ sdist = { url = "https://files.pythonhosted.org/packages/a2/87/a6771e1546d97e7e041b6ae58d80074f81b7d5121207425c964ddf5cfdbd/sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc", size = 20372 }
292
+ wheels = [
293
+ { url = "https://files.pythonhosted.org/packages/e9/44/75a9c9421471a6c4805dbf2356f7c181a29c1879239abab1ea2cc8f38b40/sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2", size = 10235 },
294
+ ]
295
+
296
+ [[package]]
297
+ name = "sse-starlette"
298
+ version = "2.2.1"
299
+ source = { registry = "https://pypi.org/simple" }
300
+ dependencies = [
301
+ { name = "anyio" },
302
+ { name = "starlette" },
303
+ ]
304
+ sdist = { url = "https://files.pythonhosted.org/packages/71/a4/80d2a11af59fe75b48230846989e93979c892d3a20016b42bb44edb9e398/sse_starlette-2.2.1.tar.gz", hash = "sha256:54470d5f19274aeed6b2d473430b08b4b379ea851d953b11d7f1c4a2c118b419", size = 17376 }
305
+ wheels = [
306
+ { url = "https://files.pythonhosted.org/packages/d9/e0/5b8bd393f27f4a62461c5cf2479c75a2cc2ffa330976f9f00f5f6e4f50eb/sse_starlette-2.2.1-py3-none-any.whl", hash = "sha256:6410a3d3ba0c89e7675d4c273a301d64649c03a5ef1ca101f10b47f895fd0e99", size = 10120 },
307
+ ]
308
+
309
+ [[package]]
310
+ name = "starlette"
311
+ version = "0.46.1"
312
+ source = { registry = "https://pypi.org/simple" }
313
+ dependencies = [
314
+ { name = "anyio" },
315
+ ]
316
+ sdist = { url = "https://files.pythonhosted.org/packages/04/1b/52b27f2e13ceedc79a908e29eac426a63465a1a01248e5f24aa36a62aeb3/starlette-0.46.1.tar.gz", hash = "sha256:3c88d58ee4bd1bb807c0d1acb381838afc7752f9ddaec81bbe4383611d833230", size = 2580102 }
317
+ wheels = [
318
+ { url = "https://files.pythonhosted.org/packages/a0/4b/528ccf7a982216885a1ff4908e886b8fb5f19862d1962f56a3fce2435a70/starlette-0.46.1-py3-none-any.whl", hash = "sha256:77c74ed9d2720138b25875133f3a2dae6d854af2ec37dceb56aef370c1d8a227", size = 71995 },
319
+ ]
320
+
321
+ [[package]]
322
+ name = "typing-extensions"
323
+ version = "4.12.2"
324
+ source = { registry = "https://pypi.org/simple" }
325
+ sdist = { url = "https://files.pythonhosted.org/packages/df/db/f35a00659bc03fec321ba8bce9420de607a1d37f8342eee1863174c69557/typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8", size = 85321 }
326
+ wheels = [
327
+ { url = "https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d", size = 37438 },
328
+ ]
329
+
330
+ [[package]]
331
+ name = "tzdata"
332
+ version = "2025.1"
333
+ source = { registry = "https://pypi.org/simple" }
334
+ sdist = { url = "https://files.pythonhosted.org/packages/43/0f/fa4723f22942480be4ca9527bbde8d43f6c3f2fe8412f00e7f5f6746bc8b/tzdata-2025.1.tar.gz", hash = "sha256:24894909e88cdb28bd1636c6887801df64cb485bd593f2fd83ef29075a81d694", size = 194950 }
335
+ wheels = [
336
+ { url = "https://files.pythonhosted.org/packages/0f/dd/84f10e23edd882c6f968c21c2434fe67bd4a528967067515feca9e611e5e/tzdata-2025.1-py2.py3-none-any.whl", hash = "sha256:7e127113816800496f027041c570f50bcd464a020098a3b6b199517772303639", size = 346762 },
337
+ ]
338
+
339
+ [[package]]
340
+ name = "tzlocal"
341
+ version = "5.3.1"
342
+ source = { registry = "https://pypi.org/simple" }
343
+ dependencies = [
344
+ { name = "tzdata", marker = "sys_platform == 'win32'" },
345
+ ]
346
+ sdist = { url = "https://files.pythonhosted.org/packages/8b/2e/c14812d3d4d9cd1773c6be938f89e5735a1f11a9f184ac3639b93cef35d5/tzlocal-5.3.1.tar.gz", hash = "sha256:cceffc7edecefea1f595541dbd6e990cb1ea3d19bf01b2809f362a03dd7921fd", size = 30761 }
347
+ wheels = [
348
+ { url = "https://files.pythonhosted.org/packages/c2/14/e2a54fabd4f08cd7af1c07030603c3356b74da07f7cc056e600436edfa17/tzlocal-5.3.1-py3-none-any.whl", hash = "sha256:eb1a66c3ef5847adf7a834f1be0800581b683b5608e74f86ecbcef8ab91bb85d", size = 18026 },
349
+ ]
350
+
351
+ [[package]]
352
+ name = "uvicorn"
353
+ version = "0.34.0"
354
+ source = { registry = "https://pypi.org/simple" }
355
+ dependencies = [
356
+ { name = "click" },
357
+ { name = "h11" },
358
+ ]
359
+ sdist = { url = "https://files.pythonhosted.org/packages/4b/4d/938bd85e5bf2edeec766267a5015ad969730bb91e31b44021dfe8b22df6c/uvicorn-0.34.0.tar.gz", hash = "sha256:404051050cd7e905de2c9a7e61790943440b3416f49cb409f965d9dcd0fa73e9", size = 76568 }
360
+ wheels = [
361
+ { url = "https://files.pythonhosted.org/packages/61/14/33a3a1352cfa71812a3a21e8c9bfb83f60b0011f5e36f2b1399d51928209/uvicorn-0.34.0-py3-none-any.whl", hash = "sha256:023dc038422502fa28a09c7a30bf2b6991512da7dcdb8fd35fe57cfc154126f4", size = 62315 },
362
+ ]