mcp-trino-python 0.8.0__tar.gz → 0.8.1__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.
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.claude-plugin/plugin.json +1 -1
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.env.example +12 -12
- mcp_trino_python-0.8.1/.gitattributes +2 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.github/ISSUE_TEMPLATE/bug_report.md +29 -29
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.github/ISSUE_TEMPLATE/feature_request.md +19 -19
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.github/pull_request_template.md +24 -24
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.github/workflows/docker.yml +60 -60
- mcp_trino_python-0.8.1/.github/workflows/docs.yml +41 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.github/workflows/test.yml +35 -35
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.gitignore +1 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/LICENSE +201 -201
- mcp_trino_python-0.8.1/PKG-INFO +122 -0
- mcp_trino_python-0.8.1/README.md +101 -0
- mcp_trino_python-0.8.1/docs/clients.md +115 -0
- mcp_trino_python-0.8.1/docs/configuration.md +40 -0
- mcp_trino_python-0.8.1/docs/deployment.md +53 -0
- mcp_trino_python-0.8.1/docs/development.md +62 -0
- mcp_trino_python-0.8.1/docs/getting-started.md +46 -0
- mcp_trino_python-0.8.1/docs/index.md +50 -0
- mcp_trino_python-0.8.1/docs/tools.md +62 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/mcpb/manifest.json +200 -200
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/mcpb/pack.sh +11 -11
- mcp_trino_python-0.8.1/mkdocs.yml +44 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/pyproject.toml +50 -47
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/ruff.toml +49 -49
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/server.json +3 -3
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/src/mcp_trino/trino_client.py +175 -175
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/uv.lock +341 -1
- mcp_trino_python-0.8.0/PKG-INFO +0 -351
- mcp_trino_python-0.8.0/README.md +0 -330
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.claude-plugin/marketplace.json +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.dockerignore +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.github/CODEOWNERS +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.github/FUNDING.yml +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.github/workflows/publish.yml +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/.python-version +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/Dockerfile +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/docker-compose.yml +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/src/mcp_trino/__init__.py +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/src/mcp_trino/config.py +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/src/mcp_trino/server.py +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/tests/conftest.py +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/tests/test_server.py +0 -0
- {mcp_trino_python-0.8.0 → mcp_trino_python-0.8.1}/tests/test_trino_client.py +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
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
|
|
13
13
|
|
|
14
14
|
# Optional: only allow read statements and hide maintenance tools
|
|
15
15
|
# TRINO_READ_ONLY=true
|
|
@@ -1,29 +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.
|
|
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.
|
|
@@ -1,19 +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.
|
|
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.
|
|
@@ -1,24 +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.
|
|
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.
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
name: Docker
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request:
|
|
8
|
-
branches:
|
|
9
|
-
- main
|
|
10
|
-
# Called by publish.yml on release so the image exists before registry publishing
|
|
11
|
-
workflow_call:
|
|
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
|
|
1
|
+
name: Docker
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
# Called by publish.yml on release so the image exists before registry publishing
|
|
11
|
+
workflow_call:
|
|
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,41 @@
|
|
|
1
|
+
name: Docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
paths: ["docs/**", "mkdocs.yml", ".github/workflows/docs.yml"]
|
|
7
|
+
pull_request:
|
|
8
|
+
paths: ["docs/**", "mkdocs.yml", ".github/workflows/docs.yml"]
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- uses: astral-sh/setup-uv@v6
|
|
18
|
+
with:
|
|
19
|
+
enable-cache: true
|
|
20
|
+
|
|
21
|
+
- name: Build site
|
|
22
|
+
run: uv run --frozen --only-group docs mkdocs build --strict
|
|
23
|
+
|
|
24
|
+
- uses: actions/upload-pages-artifact@v3
|
|
25
|
+
if: github.event_name != 'pull_request'
|
|
26
|
+
with:
|
|
27
|
+
path: site
|
|
28
|
+
|
|
29
|
+
deploy:
|
|
30
|
+
if: github.event_name != 'pull_request'
|
|
31
|
+
needs: build
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
permissions:
|
|
34
|
+
pages: write
|
|
35
|
+
id-token: write
|
|
36
|
+
environment:
|
|
37
|
+
name: github-pages
|
|
38
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
39
|
+
steps:
|
|
40
|
+
- id: deployment
|
|
41
|
+
uses: actions/deploy-pages@v4
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
name: Test
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [main]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v4
|
|
14
|
-
|
|
15
|
-
- name: Start Trino
|
|
16
|
-
run: docker compose up -d --wait trino
|
|
17
|
-
|
|
18
|
-
- uses: astral-sh/setup-uv@v6
|
|
19
|
-
with:
|
|
20
|
-
enable-cache: true
|
|
21
|
-
|
|
22
|
-
- name: Install
|
|
23
|
-
run: uv sync --frozen
|
|
24
|
-
|
|
25
|
-
- name: Lint
|
|
26
|
-
run: uv run ruff check && uv run ruff format --check
|
|
27
|
-
|
|
28
|
-
- name: Test
|
|
29
|
-
run: uv run pytest -v
|
|
30
|
-
|
|
31
|
-
- name: Validate server.json
|
|
32
|
-
run: uvx check-jsonschema --schemafile "$(jq -r '."$schema"' server.json)" server.json
|
|
33
|
-
|
|
34
|
-
- name: Validate Claude Desktop manifest
|
|
35
|
-
run: npx -y @anthropic-ai/mcpb@2.1.2 validate mcpb/manifest.json
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
|
|
15
|
+
- name: Start Trino
|
|
16
|
+
run: docker compose up -d --wait trino
|
|
17
|
+
|
|
18
|
+
- uses: astral-sh/setup-uv@v6
|
|
19
|
+
with:
|
|
20
|
+
enable-cache: true
|
|
21
|
+
|
|
22
|
+
- name: Install
|
|
23
|
+
run: uv sync --frozen
|
|
24
|
+
|
|
25
|
+
- name: Lint
|
|
26
|
+
run: uv run ruff check && uv run ruff format --check
|
|
27
|
+
|
|
28
|
+
- name: Test
|
|
29
|
+
run: uv run pytest -v
|
|
30
|
+
|
|
31
|
+
- name: Validate server.json
|
|
32
|
+
run: uvx check-jsonschema --schemafile "$(jq -r '."$schema"' server.json)" server.json
|
|
33
|
+
|
|
34
|
+
- name: Validate Claude Desktop manifest
|
|
35
|
+
run: npx -y @anthropic-ai/mcpb@2.1.2 validate mcpb/manifest.json
|