tableau-graphql-mcp 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.
- tableau_graphql_mcp-0.1.0/.coverage +0 -0
- tableau_graphql_mcp-0.1.0/.env.example +26 -0
- tableau_graphql_mcp-0.1.0/.github/CODEOWNERS +2 -0
- tableau_graphql_mcp-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +62 -0
- tableau_graphql_mcp-0.1.0/.github/ISSUE_TEMPLATE/config.yml +8 -0
- tableau_graphql_mcp-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +22 -0
- tableau_graphql_mcp-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +15 -0
- tableau_graphql_mcp-0.1.0/.github/dependabot.yml +10 -0
- tableau_graphql_mcp-0.1.0/.github/workflows/ci.yml +38 -0
- tableau_graphql_mcp-0.1.0/.github/workflows/codeql.yml +27 -0
- tableau_graphql_mcp-0.1.0/.github/workflows/release.yml +34 -0
- tableau_graphql_mcp-0.1.0/.github/workflows/scorecard.yml +30 -0
- tableau_graphql_mcp-0.1.0/.gitignore +24 -0
- tableau_graphql_mcp-0.1.0/.pre-commit-config.yaml +15 -0
- tableau_graphql_mcp-0.1.0/.python-version +1 -0
- tableau_graphql_mcp-0.1.0/CHANGELOG.md +45 -0
- tableau_graphql_mcp-0.1.0/CODE_OF_CONDUCT.md +73 -0
- tableau_graphql_mcp-0.1.0/CONTRIBUTING.md +42 -0
- tableau_graphql_mcp-0.1.0/LICENSE +21 -0
- tableau_graphql_mcp-0.1.0/PKG-INFO +249 -0
- tableau_graphql_mcp-0.1.0/README.md +212 -0
- tableau_graphql_mcp-0.1.0/SECURITY.md +26 -0
- tableau_graphql_mcp-0.1.0/SUPPORT.md +15 -0
- tableau_graphql_mcp-0.1.0/docs/images/architecture.svg +85 -0
- tableau_graphql_mcp-0.1.0/docs/images/banner.png +0 -0
- tableau_graphql_mcp-0.1.0/docs/images/banner.svg +54 -0
- tableau_graphql_mcp-0.1.0/docs/images/demo.gif +0 -0
- tableau_graphql_mcp-0.1.0/docs/images/social-preview.png +0 -0
- tableau_graphql_mcp-0.1.0/docs/images/social-preview.svg +41 -0
- tableau_graphql_mcp-0.1.0/pyproject.toml +90 -0
- tableau_graphql_mcp-0.1.0/server.json +45 -0
- tableau_graphql_mcp-0.1.0/src/tableau_graphql_mcp/__init__.py +3 -0
- tableau_graphql_mcp-0.1.0/src/tableau_graphql_mcp/__main__.py +6 -0
- tableau_graphql_mcp-0.1.0/src/tableau_graphql_mcp/client.py +217 -0
- tableau_graphql_mcp-0.1.0/src/tableau_graphql_mcp/config.py +78 -0
- tableau_graphql_mcp-0.1.0/src/tableau_graphql_mcp/examples.py +508 -0
- tableau_graphql_mcp-0.1.0/src/tableau_graphql_mcp/impact.py +159 -0
- tableau_graphql_mcp-0.1.0/src/tableau_graphql_mcp/lineage.py +219 -0
- tableau_graphql_mcp-0.1.0/src/tableau_graphql_mcp/py.typed +0 -0
- tableau_graphql_mcp-0.1.0/src/tableau_graphql_mcp/search.py +140 -0
- tableau_graphql_mcp-0.1.0/src/tableau_graphql_mcp/server.py +233 -0
- tableau_graphql_mcp-0.1.0/tests/test_client.py +187 -0
- tableau_graphql_mcp-0.1.0/tests/test_config.py +39 -0
- tableau_graphql_mcp-0.1.0/tests/test_examples.py +19 -0
- tableau_graphql_mcp-0.1.0/tests/test_impact.py +52 -0
- tableau_graphql_mcp-0.1.0/tests/test_lineage.py +106 -0
- tableau_graphql_mcp-0.1.0/tests/test_live.py +34 -0
- tableau_graphql_mcp-0.1.0/tests/test_properties.py +41 -0
- tableau_graphql_mcp-0.1.0/tests/test_search.py +78 -0
- tableau_graphql_mcp-0.1.0/tests/test_server_smoke.py +69 -0
- tableau_graphql_mcp-0.1.0/tests/test_server_tools.py +97 -0
- tableau_graphql_mcp-0.1.0/tests/test_tool_contract.py +55 -0
- tableau_graphql_mcp-0.1.0/tests/tool_contract.json +52 -0
- tableau_graphql_mcp-0.1.0/uv.lock +1470 -0
|
Binary file
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Copy to .env and fill in, or set these in your MCP client's "env" block.
|
|
2
|
+
# Works with Tableau Server (on-prem) and Tableau Cloud.
|
|
3
|
+
|
|
4
|
+
# --- Required: your Tableau server ---
|
|
5
|
+
# On-prem: https://tableau.company.com
|
|
6
|
+
# Tableau Cloud: https://<pod>.online.tableau.com (pod = the prefix in your browser URL, e.g. 10ax)
|
|
7
|
+
TABLEAU_SERVER=https://10ax.online.tableau.com
|
|
8
|
+
|
|
9
|
+
# Site content URL (the slug in /#/site/<contentUrl>/...).
|
|
10
|
+
# Empty = the Default site (Tableau Server only). Tableau Cloud always has a site.
|
|
11
|
+
TABLEAU_SITE_CONTENT_URL=
|
|
12
|
+
|
|
13
|
+
# --- Recommended auth: a Personal Access Token ---
|
|
14
|
+
# Create one under your Tableau account settings. The secret is ONE string, do not split it.
|
|
15
|
+
TABLEAU_PAT_NAME=my-token-name
|
|
16
|
+
TABLEAU_PAT_SECRET=the-full-secret-string
|
|
17
|
+
|
|
18
|
+
# --- Optional ---
|
|
19
|
+
# TABLEAU_TIMEOUT=60
|
|
20
|
+
# TABLEAU_API_VERSION=3.25 # else auto-detected from /api/serverinfo
|
|
21
|
+
# TABLEAU_METADATA_PATH=/api/metadata/graphql # else auto-detected (falls back to /relationship-service-war/graphql)
|
|
22
|
+
|
|
23
|
+
# --- Advanced fallback for SSO tenants where PATs are disabled ---
|
|
24
|
+
# Grab an X-Tableau-Auth token, or the full Cookie header, from an authenticated browser session.
|
|
25
|
+
# TABLEAU_AUTH_TOKEN=
|
|
26
|
+
# TABLEAU_COOKIE=
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Something isn't working
|
|
3
|
+
labels: ["bug"]
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
Thanks for the report! Please **redact your PAT / auth token** from every field below.
|
|
9
|
+
- type: textarea
|
|
10
|
+
id: what-happened
|
|
11
|
+
attributes:
|
|
12
|
+
label: What happened?
|
|
13
|
+
description: What did you do, what did you expect, and what happened instead?
|
|
14
|
+
placeholder: I asked "..." and the tool returned ...
|
|
15
|
+
validations:
|
|
16
|
+
required: true
|
|
17
|
+
- type: input
|
|
18
|
+
id: mcp-client
|
|
19
|
+
attributes:
|
|
20
|
+
label: MCP client and version
|
|
21
|
+
placeholder: Claude Desktop 0.x / Claude Code / Cursor / Cline ...
|
|
22
|
+
validations:
|
|
23
|
+
required: true
|
|
24
|
+
- type: dropdown
|
|
25
|
+
id: tableau-kind
|
|
26
|
+
attributes:
|
|
27
|
+
label: Tableau deployment
|
|
28
|
+
options:
|
|
29
|
+
- Tableau Server (on-prem)
|
|
30
|
+
- Tableau Cloud
|
|
31
|
+
validations:
|
|
32
|
+
required: true
|
|
33
|
+
- type: input
|
|
34
|
+
id: tableau-version
|
|
35
|
+
attributes:
|
|
36
|
+
label: Tableau version
|
|
37
|
+
placeholder: e.g. 2025.1.8
|
|
38
|
+
- type: dropdown
|
|
39
|
+
id: auth-mode
|
|
40
|
+
attributes:
|
|
41
|
+
label: Auth mode
|
|
42
|
+
options:
|
|
43
|
+
- Personal Access Token (PAT)
|
|
44
|
+
- TABLEAU_AUTH_TOKEN
|
|
45
|
+
- TABLEAU_COOKIE
|
|
46
|
+
validations:
|
|
47
|
+
required: true
|
|
48
|
+
- type: textarea
|
|
49
|
+
id: tool-call
|
|
50
|
+
attributes:
|
|
51
|
+
label: Exact tool call and error
|
|
52
|
+
description: The tool name, arguments, and the full error text.
|
|
53
|
+
render: text
|
|
54
|
+
validations:
|
|
55
|
+
required: true
|
|
56
|
+
- type: checkboxes
|
|
57
|
+
id: redacted
|
|
58
|
+
attributes:
|
|
59
|
+
label: Confirmation
|
|
60
|
+
options:
|
|
61
|
+
- label: I redacted my PAT / auth token and any private content from this report
|
|
62
|
+
required: true
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
blank_issues_enabled: false
|
|
2
|
+
contact_links:
|
|
3
|
+
- name: Questions and ideas (Discussions)
|
|
4
|
+
url: https://github.com/tdries/tableau-graphQL-mcp/discussions
|
|
5
|
+
about: How do I connect it, which auth, general how-to. Please ask here, not in issues.
|
|
6
|
+
- name: Security vulnerability
|
|
7
|
+
url: https://github.com/tdries/tableau-graphQL-mcp/security/policy
|
|
8
|
+
about: Report privately. Do not open a public issue for security reports.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Suggest an idea or improvement
|
|
3
|
+
labels: ["enhancement"]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: problem
|
|
7
|
+
attributes:
|
|
8
|
+
label: What problem does this solve?
|
|
9
|
+
description: The lineage/metadata question or workflow you can't do today.
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: proposal
|
|
14
|
+
attributes:
|
|
15
|
+
label: Proposed solution
|
|
16
|
+
description: A new tool, argument, or behavior. Remember this server is read-only.
|
|
17
|
+
validations:
|
|
18
|
+
required: true
|
|
19
|
+
- type: textarea
|
|
20
|
+
id: alternatives
|
|
21
|
+
attributes:
|
|
22
|
+
label: Alternatives considered
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Thanks for contributing! Keep PRs focused and small where possible. -->
|
|
2
|
+
|
|
3
|
+
## What and why
|
|
4
|
+
|
|
5
|
+
<!-- What does this change, and why? Link any related issue: Closes #123 -->
|
|
6
|
+
|
|
7
|
+
## Checklist
|
|
8
|
+
|
|
9
|
+
- [ ] `uv run pytest` passes (and I added/updated tests for the change)
|
|
10
|
+
- [ ] `uv run ruff check .` and `uv run ruff format --check .` are clean
|
|
11
|
+
- [ ] `uv run mypy` is clean (strict)
|
|
12
|
+
- [ ] No new **runtime** dependency (this project is stdlib + `mcp` only)
|
|
13
|
+
- [ ] The server stays **read-only** (no mutations, no shell, no writes)
|
|
14
|
+
- [ ] README / CHANGELOG updated if behavior or the tool schema changed
|
|
15
|
+
- [ ] If a tool name or argument changed, I updated `tests/tool_contract.json` **on purpose** and noted it in the CHANGELOG (the tool schema is the public API)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ${{ matrix.os }}
|
|
14
|
+
strategy:
|
|
15
|
+
fail-fast: false
|
|
16
|
+
matrix:
|
|
17
|
+
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
18
|
+
python: ["3.10", "3.11", "3.12", "3.13"]
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
21
|
+
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
|
|
22
|
+
with:
|
|
23
|
+
python-version: ${{ matrix.python }}
|
|
24
|
+
- run: uv sync --all-extras
|
|
25
|
+
- run: uv run ruff check .
|
|
26
|
+
- run: uv run ruff format --check .
|
|
27
|
+
- name: Type-check (mypy --strict)
|
|
28
|
+
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.12'
|
|
29
|
+
run: uv run mypy
|
|
30
|
+
- run: uv run pytest -q --cov=tableau_graphql_mcp --cov-report=xml
|
|
31
|
+
- name: Upload coverage to Codecov
|
|
32
|
+
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.12'
|
|
33
|
+
uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5
|
|
34
|
+
with:
|
|
35
|
+
files: coverage.xml
|
|
36
|
+
fail_ci_if_error: false
|
|
37
|
+
env:
|
|
38
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: CodeQL
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
schedule:
|
|
9
|
+
- cron: "27 4 * * 1"
|
|
10
|
+
|
|
11
|
+
permissions: {}
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
analyze:
|
|
15
|
+
name: Analyze (python)
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
permissions:
|
|
18
|
+
actions: read
|
|
19
|
+
contents: read
|
|
20
|
+
security-events: write
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
23
|
+
- uses: github/codeql-action/init@02c5e83432fe5497fd85b873b6c9f16a8578e1d9 # v3
|
|
24
|
+
with:
|
|
25
|
+
languages: python
|
|
26
|
+
queries: security-and-quality
|
|
27
|
+
- uses: github/codeql-action/analyze@02c5e83432fe5497fd85b873b6c9f16a8578e1d9 # v3
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Tag a version (vX.Y.Z) to build and publish to PyPI via Trusted Publishing (OIDC),
|
|
4
|
+
# then cut a GitHub Release with generated notes.
|
|
5
|
+
# Requires a PyPI project + a configured trusted publisher for this repo/workflow.
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
tags: ["v*"]
|
|
9
|
+
|
|
10
|
+
permissions: {}
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
publish:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
environment: pypi
|
|
16
|
+
permissions:
|
|
17
|
+
id-token: write # OIDC for Trusted Publishing + PEP 740 attestations
|
|
18
|
+
contents: read
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
21
|
+
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
|
|
22
|
+
- run: uv build
|
|
23
|
+
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
|
|
24
|
+
|
|
25
|
+
github-release:
|
|
26
|
+
needs: publish
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
permissions:
|
|
29
|
+
contents: write # create the GitHub Release
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
32
|
+
- uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
|
|
33
|
+
with:
|
|
34
|
+
generate_release_notes: true
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Scorecard
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
branch_protection_rule:
|
|
5
|
+
schedule:
|
|
6
|
+
- cron: "30 5 * * 1"
|
|
7
|
+
push:
|
|
8
|
+
branches: [main]
|
|
9
|
+
|
|
10
|
+
permissions: read-all
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
analysis:
|
|
14
|
+
name: Scorecard analysis
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
permissions:
|
|
17
|
+
security-events: write # upload the SARIF result
|
|
18
|
+
id-token: write # publish results to the OpenSSF API (badge)
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
21
|
+
with:
|
|
22
|
+
persist-credentials: false
|
|
23
|
+
- uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
|
|
24
|
+
with:
|
|
25
|
+
results_file: results.sarif
|
|
26
|
+
results_format: sarif
|
|
27
|
+
publish_results: true
|
|
28
|
+
- uses: github/codeql-action/upload-sarif@02c5e83432fe5497fd85b873b6c9f16a8578e1d9 # v3
|
|
29
|
+
with:
|
|
30
|
+
sarif_file: results.sarif
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
.eggs/
|
|
6
|
+
build/
|
|
7
|
+
dist/
|
|
8
|
+
.venv/
|
|
9
|
+
venv/
|
|
10
|
+
env/
|
|
11
|
+
.pytest_cache/
|
|
12
|
+
.ruff_cache/
|
|
13
|
+
.mypy_cache/
|
|
14
|
+
|
|
15
|
+
# Secrets: never commit real credentials
|
|
16
|
+
.env
|
|
17
|
+
.env.local
|
|
18
|
+
*.pat
|
|
19
|
+
|
|
20
|
+
# OS / editor
|
|
21
|
+
.DS_Store
|
|
22
|
+
.idea/
|
|
23
|
+
.vscode/
|
|
24
|
+
*.swp
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Local guardrails that mirror CI. Install once: `pipx run pre-commit install`
|
|
2
|
+
repos:
|
|
3
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
4
|
+
rev: v0.6.9
|
|
5
|
+
hooks:
|
|
6
|
+
- id: ruff
|
|
7
|
+
args: [--fix]
|
|
8
|
+
- id: ruff-format
|
|
9
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
10
|
+
rev: v1.11.2
|
|
11
|
+
hooks:
|
|
12
|
+
- id: mypy
|
|
13
|
+
args: [--strict]
|
|
14
|
+
files: ^src/
|
|
15
|
+
additional_dependencies: ["mcp>=1.2.0"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.11
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format is based on
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/) and this project adheres to
|
|
5
|
+
[Semantic Versioning](https://semver.org/). Note that the **tool schema is the public
|
|
6
|
+
API**: renaming a tool or a required argument is a MAJOR change.
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- `impact_analysis` tool: full transitive **multi-hop** downstream blast radius of a column,
|
|
12
|
+
field, or table (every dependent field, plus affected sheets, dashboards, workbooks, and the
|
|
13
|
+
de-duplicated owners to notify) — no longer leaves the recursion to the model.
|
|
14
|
+
- `search_content` tool: case-insensitive **substring** search across workbooks, datasources,
|
|
15
|
+
tables (and optionally fields/columns), since the Metadata API filters are exact-match only.
|
|
16
|
+
- Read-only enforcement: `graphql_query` rejects `mutation`/`subscription` operations.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
- `graphql_query` flags `partial_results: true` with a `warning` when a query hits the
|
|
20
|
+
~20,000-node limit, instead of passing the truncation through silently.
|
|
21
|
+
- `search_content` adds an exact-match fast path (complete, instant) and reports per-type
|
|
22
|
+
`scanned`/`total` coverage so partial substring scans are explicit.
|
|
23
|
+
- Fully typed: the package ships a verified PEP 561 `py.typed` marker and passes
|
|
24
|
+
`mypy --strict` in CI, so consumers importing it get complete types.
|
|
25
|
+
|
|
26
|
+
### Internal
|
|
27
|
+
- CI now runs `ruff format --check` and `mypy --strict`, uploads coverage to Codecov
|
|
28
|
+
(85% floor), and scans with CodeQL and OpenSSF Scorecard. GitHub Actions are pinned to
|
|
29
|
+
commit SHAs; a tool-schema contract test guards the public tool API.
|
|
30
|
+
|
|
31
|
+
## [0.1.0] - 2026-07-09
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
- Initial release: a read-only MCP server over the Tableau Metadata API (GraphQL).
|
|
35
|
+
- Five tools: `graphql_query`, `introspect_schema`, `lineage_examples`, `where_used`, `server_info`.
|
|
36
|
+
- Generic auth for Tableau **Server** and **Cloud** via Personal Access Token, with a
|
|
37
|
+
cookie/token fallback for SSO tenants.
|
|
38
|
+
- Auto-detection of the REST API version (`/api/serverinfo`) and the GraphQL endpoint
|
|
39
|
+
(`/api/metadata/graphql`, falling back to `/relationship-service-war/graphql`).
|
|
40
|
+
- Robust `where_used` resolution via core lineage (works without the Data Management add-on).
|
|
41
|
+
- Embedded schema cheat-sheet and 28 curated question→GraphQL examples across 8 categories.
|
|
42
|
+
- `uvx`-runnable console entry point; no runtime dependencies beyond the MCP SDK.
|
|
43
|
+
|
|
44
|
+
[Unreleased]: https://github.com/tdries/tableau-graphQL-mcp/compare/v0.1.0...HEAD
|
|
45
|
+
[0.1.0]: https://github.com/tdries/tableau-graphQL-mcp/releases/tag/v0.1.0
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
+
orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
- Demonstrating empathy and kindness toward other people
|
|
21
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
- Giving and gracefully accepting constructive feedback
|
|
23
|
+
- Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
- Focusing on what is best not just for us as individuals, but for the overall
|
|
26
|
+
community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
- The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
+
any kind
|
|
32
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
- Public or private harassment
|
|
34
|
+
- Publishing others' private information, such as a physical or email address,
|
|
35
|
+
without their explicit permission
|
|
36
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
|
|
56
|
+
## Enforcement
|
|
57
|
+
|
|
58
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
59
|
+
reported to the community leaders responsible for enforcement at
|
|
60
|
+
**tim.dries@biztory.be**. All complaints will be reviewed and investigated
|
|
61
|
+
promptly and fairly.
|
|
62
|
+
|
|
63
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
64
|
+
reporter of any incident.
|
|
65
|
+
|
|
66
|
+
## Attribution
|
|
67
|
+
|
|
68
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
69
|
+
version 2.1, available at
|
|
70
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
71
|
+
|
|
72
|
+
[homepage]: https://www.contributor-covenant.org
|
|
73
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for your interest! This is a small, focused MCP server; contributions that keep it
|
|
4
|
+
that way are very welcome.
|
|
5
|
+
|
|
6
|
+
## Development setup
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
git clone https://github.com/tdries/tableau-graphQL-mcp && cd tableau-graphQL-mcp
|
|
10
|
+
uv sync # installs the package + dev tools
|
|
11
|
+
uv run pytest # tests run offline, no Tableau needed
|
|
12
|
+
uv run ruff check .
|
|
13
|
+
uv run ruff format .
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Run the server from source, pointed at your own Tableau site:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
export TABLEAU_SERVER=https://<pod>.online.tableau.com
|
|
20
|
+
export TABLEAU_SITE_CONTENT_URL=YourSite
|
|
21
|
+
export TABLEAU_PAT_NAME=... TABLEAU_PAT_SECRET=...
|
|
22
|
+
uv run tableau-graphql-mcp
|
|
23
|
+
# or exercise it interactively:
|
|
24
|
+
npx @modelcontextprotocol/inspector uv run tableau-graphql-mcp
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Guidelines
|
|
28
|
+
|
|
29
|
+
- **Keep the tool surface small.** Every tool is tokens in the model's context. Prefer
|
|
30
|
+
extending `graphql_query`/examples over adding a narrow tool.
|
|
31
|
+
- **Read-only.** No mutating operations.
|
|
32
|
+
- **Stdlib first.** The only runtime dependency is the MCP SDK; keep it that way unless there's
|
|
33
|
+
a strong reason.
|
|
34
|
+
- **Secrets via env only**, never as tool arguments, never logged.
|
|
35
|
+
- **No writes to stdout**: it carries the JSON-RPC protocol. Log to stderr.
|
|
36
|
+
- Add/adjust a test for behavior changes; update `CHANGELOG.md` under `[Unreleased]`.
|
|
37
|
+
- A tool rename or required-arg change is a **MAJOR** version bump; call it out in the PR.
|
|
38
|
+
|
|
39
|
+
## Reporting issues
|
|
40
|
+
|
|
41
|
+
Open an issue with your Tableau flavor (Server/Cloud + version), whether Data Management is
|
|
42
|
+
licensed, and the exact tool call and (sanitized) response.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tim Dries
|
|
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.
|