codemie-mcp-datasources 0.1.12__tar.gz → 0.1.27__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: codemie-mcp-datasources
3
- Version: 0.1.12
3
+ Version: 0.1.27
4
4
  Summary: MCP server for connecting to CodeMie Datasources
5
5
  Author: Nikita Levyankov
6
6
  Author-email: nikita_levyankov@epam.com
@@ -8,6 +8,6 @@ Requires-Python: >=3.12,<4.0
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Programming Language :: Python :: 3.12
10
10
  Requires-Dist: certifi (>=2025.1.31,<2026.0.0)
11
- Requires-Dist: codemie-sdk-python (==0.1.12)
11
+ Requires-Dist: codemie-sdk-python (==0.1.27)
12
12
  Requires-Dist: httpx (>=0.27.0,<0.28.0)
13
13
  Requires-Dist: mcp (>=1.6.0,<2.0.0)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "codemie-mcp-datasources"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  description = "MCP server for connecting to CodeMie Datasources"
5
5
  #readme = "README.md"
6
6
  packages = [
@@ -9,7 +9,7 @@ packages = [
9
9
 
10
10
  [tool.poetry]
11
11
  name = "codemie-mcp-datasources"
12
- version = "0.1.12"
12
+ version = "0.1.27"
13
13
  description = "MCP server for connecting to CodeMie Datasources"
14
14
  authors = [
15
15
  "Nikita Levyankov <nikita_levyankov@epam.com>",
@@ -23,7 +23,7 @@ packages = [
23
23
  python = "^3.12"
24
24
  mcp = "^1.6.0"
25
25
  httpx = "^0.27.0"
26
- codemie-sdk-python = "0.1.12"
26
+ codemie-sdk-python = "0.1.27"
27
27
  certifi = "^2025.1.31"
28
28
 
29
29
  [tool.poetry.group.dev.dependencies]
@@ -37,4 +37,4 @@ requires = ["poetry-core"]
37
37
  build-backend = "poetry.core.masonry.api"
38
38
 
39
39
  [tool.poetry.scripts]
40
- codemie-mcp-datasources = "src.datasources_mcp:main"
40
+ codemie-mcp-datasources = "src.server:main"
@@ -1,6 +1,7 @@
1
1
  """CodeMie MCP implementation for datasources."""
2
2
 
3
3
  import os
4
+ import sys
4
5
  from typing import Any, Dict, List, Optional, Literal
5
6
 
6
7
  from codemie_sdk import CodeMieClient
@@ -260,6 +261,15 @@ async def get_datasource_processing_info(datasource_id: str) -> Dict[str, Any]:
260
261
  }
261
262
 
262
263
 
264
+ def main():
265
+ try:
266
+ print("Starting CodeMie Datasources MCP server", file=sys.stdout)
267
+ # Initialize and run the server
268
+ mcp.run(transport="stdio")
269
+ except Exception as e:
270
+ print(f"Error starting MCP server: {str(e)}", file=sys.stderr)
271
+ sys.exit(1)
272
+
273
+
263
274
  if __name__ == "__main__":
264
- # Initialize and run the server
265
- mcp.run(transport="stdio")
275
+ main()