mcp-trino-python 0.5.0__tar.gz → 0.7.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.
Files changed (29) hide show
  1. mcp_trino_python-0.7.0/.dockerignore +13 -0
  2. mcp_trino_python-0.7.0/.env.example +12 -0
  3. mcp_trino_python-0.7.0/.github/CODEOWNERS +1 -0
  4. mcp_trino_python-0.7.0/.github/ISSUE_TEMPLATE/bug_report.md +29 -0
  5. mcp_trino_python-0.7.0/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
  6. mcp_trino_python-0.7.0/.github/pull_request_template.md +24 -0
  7. mcp_trino_python-0.7.0/.github/workflows/docker.yml +60 -0
  8. mcp_trino_python-0.7.0/.github/workflows/publish.yml +29 -0
  9. mcp_trino_python-0.7.0/.gitignore +176 -0
  10. mcp_trino_python-0.7.0/.python-version +1 -0
  11. mcp_trino_python-0.7.0/Dockerfile +35 -0
  12. {mcp_trino_python-0.5.0 → mcp_trino_python-0.7.0}/PKG-INFO +443 -315
  13. mcp_trino_python-0.5.0/src/mcp_trino_python.egg-info/PKG-INFO → mcp_trino_python-0.7.0/README.md +150 -45
  14. mcp_trino_python-0.7.0/docker-compose.yml +79 -0
  15. {mcp_trino_python-0.5.0 → mcp_trino_python-0.7.0}/pyproject.toml +25 -9
  16. mcp_trino_python-0.5.0/src/mcp_trino_python.egg-info/requires.txt → mcp_trino_python-0.7.0/requirements.txt +4 -4
  17. mcp_trino_python-0.7.0/ruff.toml +40 -0
  18. mcp_trino_python-0.7.0/smithery.yaml +64 -0
  19. {mcp_trino_python-0.5.0 → mcp_trino_python-0.7.0}/src/server.py +69 -6
  20. mcp_trino_python-0.7.0/uv.lock +947 -0
  21. mcp_trino_python-0.5.0/README.md +0 -294
  22. mcp_trino_python-0.5.0/setup.cfg +0 -4
  23. mcp_trino_python-0.5.0/src/mcp_trino_python.egg-info/SOURCES.txt +0 -12
  24. mcp_trino_python-0.5.0/src/mcp_trino_python.egg-info/dependency_links.txt +0 -1
  25. mcp_trino_python-0.5.0/src/mcp_trino_python.egg-info/top_level.txt +0 -4
  26. {mcp_trino_python-0.5.0 → mcp_trino_python-0.7.0}/LICENSE +0 -0
  27. {mcp_trino_python-0.5.0 → mcp_trino_python-0.7.0}/src/__init__.py +0 -0
  28. {mcp_trino_python-0.5.0 → mcp_trino_python-0.7.0}/src/config.py +0 -0
  29. {mcp_trino_python-0.5.0 → mcp_trino_python-0.7.0}/src/trino_client.py +0 -0
@@ -0,0 +1,13 @@
1
+ .env
2
+ .venv/
3
+ .vscode/
4
+ .github/
5
+ dist/
6
+ __pycache__/
7
+ *.egg-info/
8
+ *.pyc
9
+ *.pyo
10
+ *.pyd
11
+ *.db
12
+
13
+ docker-compose.yaml
@@ -0,0 +1,12 @@
1
+ # Trino Connection Settings
2
+ TRINO_HOST=localhost
3
+ TRINO_PORT=8080
4
+ TRINO_USER=trino
5
+ TRINO_CATALOG=tpch
6
+ TRINO_SCHEMA=tiny
7
+ TRINO_HTTP_SCHEME=http
8
+ # TRINO_PASSWORD= # Optional: Set password if authentication is required
9
+
10
+ # Optional: Set default catalog and schema
11
+ # TRINO_CATALOG=iceberg
12
+ # TRINO_SCHEMA=default
@@ -0,0 +1 @@
1
+ * @alaturqua
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: "\U0001F41B Bug report"
3
+ about: Report a bug or unexpected behavior while using GitHub MCP Server
4
+ title: ""
5
+ labels: bug
6
+ assignees: ""
7
+ ---
8
+
9
+ ### Describe the bug
10
+
11
+ A clear and concise description of what the bug is.
12
+
13
+ ### Affected version
14
+
15
+ Please specify the version of the software where the bug was observed.
16
+
17
+ ### Steps to reproduce the behavior
18
+
19
+ 1. Type this '...'
20
+ 2. View the output '....'
21
+ 3. See error
22
+
23
+ ### Expected vs actual behavior
24
+
25
+ A clear and concise description of what you expected to happen and what actually happened.
26
+
27
+ ### Logs
28
+
29
+ Paste any available logs. Redact if needed.
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: "⭐ Submit a feature request"
3
+ about: Surface a feature or problem that you think should be solved
4
+ title: ""
5
+ labels: enhancement
6
+ assignees: ""
7
+ ---
8
+
9
+ ### Describe the feature or problem you’d like to solve
10
+
11
+ A clear and concise description of what the feature or problem is.
12
+
13
+ ### Proposed solution
14
+
15
+ How will it benefit GitHub MCP Server and its users?
16
+
17
+ ### Additional context
18
+
19
+ Add any other context like screenshots or mockups are helpful, if applicable.
@@ -0,0 +1,24 @@
1
+ ### Pull Request Title
2
+
3
+ ### Description
4
+
5
+ A clear and concise description of what this pull request does.
6
+
7
+ ### Related Issues
8
+
9
+ Link any related issues or pull requests.
10
+
11
+ ### Description
12
+
13
+ A clear and concise description of what this pull request does.
14
+
15
+ ### Related Issues
16
+
17
+ Link any related issues or pull requests.
18
+
19
+ ### Checklist
20
+
21
+ - [ ] I have added tests to cover my changes.
22
+ - [ ] All new and existing tests passed.
23
+ - [ ] I have updated the documentation accordingly.
24
+ - [ ] I have added a changelog entry.
@@ -0,0 +1,60 @@
1
+ name: Docker
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - "v*"
9
+ pull_request:
10
+ branches:
11
+ - main
12
+
13
+ env:
14
+ REGISTRY: ghcr.io
15
+ IMAGE_NAME: ${{ github.repository }}
16
+
17
+ jobs:
18
+ build:
19
+ runs-on: ubuntu-latest
20
+ permissions:
21
+ contents: read
22
+ packages: write
23
+
24
+ steps:
25
+ - name: Checkout repository
26
+ uses: actions/checkout@v4
27
+
28
+ - name: Set up Docker Buildx
29
+ uses: docker/setup-buildx-action@v3
30
+
31
+ - name: Log into registry ${{ env.REGISTRY }}
32
+ if: github.event_name != 'pull_request'
33
+ uses: docker/login-action@v3
34
+ with:
35
+ registry: ${{ env.REGISTRY }}
36
+ username: ${{ github.actor }}
37
+ password: ${{ secrets.GITHUB_TOKEN }}
38
+
39
+ - name: Extract Docker metadata
40
+ id: meta
41
+ uses: docker/metadata-action@v5
42
+ with:
43
+ images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
44
+ tags: |
45
+ type=ref,event=branch
46
+ type=ref,event=pr
47
+ type=semver,pattern={{version}}
48
+ type=semver,pattern={{major}}.{{minor}}
49
+ type=sha,format=long
50
+ type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
51
+
52
+ - name: Build and push Docker image
53
+ uses: docker/build-push-action@v5
54
+ with:
55
+ context: .
56
+ push: ${{ github.event_name != 'pull_request' }}
57
+ tags: ${{ steps.meta.outputs.tags }}
58
+ labels: ${{ steps.meta.outputs.labels }}
59
+ cache-from: type=gha
60
+ cache-to: type=gha,mode=max
@@ -0,0 +1,29 @@
1
+ # publish.yml
2
+
3
+ name: "Publish"
4
+
5
+ on:
6
+ release:
7
+ types: ["published"]
8
+
9
+ jobs:
10
+ run:
11
+ name: "Build and publish release"
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+
16
+ - name: Install uv
17
+ uses: astral-sh/setup-uv@v3
18
+ with:
19
+ enable-cache: true
20
+ cache-dependency-glob: uv.lock
21
+
22
+ - name: Set up Python
23
+ run: uv python install 3.11
24
+
25
+ - name: Build
26
+ run: uv build
27
+
28
+ - name: Publish
29
+ run: uv publish -t ${{ secrets.PYPI_TOKEN }}
@@ -0,0 +1,176 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+
110
+ # pdm
111
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112
+ #pdm.lock
113
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114
+ # in version control.
115
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116
+ .pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
169
+
170
+ # Ruff stuff:
171
+ .ruff_cache/
172
+
173
+ # PyPI configuration file
174
+ .pypirc
175
+
176
+ .vscode/
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,35 @@
1
+ FROM python:3.12-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Environment variables
6
+ ENV UV_COMPILE_BYTECODE=1 \
7
+ PYTHONUNBUFFERED=1 \
8
+ PYTHONDONTWRITEBYTECODE=1
9
+
10
+ # Install uv
11
+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
12
+
13
+ # Copy dependency files first for better caching
14
+ COPY pyproject.toml uv.lock ./
15
+
16
+ # Install dependencies
17
+ RUN --mount=type=cache,target=/root/.cache/uv \
18
+ uv sync --frozen --no-dev --no-editable
19
+
20
+ # Copy source code
21
+ COPY src/ src/
22
+
23
+ ENV PATH="/app/.venv/bin:$PATH"
24
+
25
+ # Default port for HTTP transports
26
+ EXPOSE 8000
27
+
28
+ # Default transport is stdio for MCP compatibility
29
+ # Override with --transport streamable-http or --transport sse for HTTP modes
30
+ ENTRYPOINT ["uv", "run", "src/server.py"]
31
+
32
+ # Default arguments (can be overridden)
33
+ # For stdio (default MCP transport): no args needed
34
+ # For HTTP: --transport streamable-http --host 0.0.0.0 --port 8000
35
+ CMD ["--transport", "stdio"]