last30days-skill
AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
Governed MCP server for warehouse data: semantic layer, scoped access, PII controls and SQL guard.
제작자가 쓴 원문
이런 작업을 AI에게 가르치는 Skill, 이것과 함께 쓸 수 있습니다
AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…
목록은 사용 점수(100점 만점)로 정렬되며 구성은 다음과 같습니다
| 인기 | 0/80 | GitHub 별 또는 주간 다운로드: 큰 쪽 60, 작은 쪽 20 |
|---|---|---|
| 최신성 | 12/12 | 30일 안에 릴리스나 코드 변경이 있으면 만점 |
| 응답 중 | 0/8 | 마지막 점검 때 클라우드 엔드포인트가 응답 |
| 사용 점수 | 12/100 |
품질: 기본 점검 3/3개 통과(표시만, 정렬에는 안 씀) · 상승세: 데이터 없음 (급상승 탭에서만 사용)
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
한 문장으로 AI에게 설치 맡기기
Governed Warehouse 설치해 줘. https://mcp.popnx.com/i/tongliutl-governed-warehouse-mcp.md 를 따라 하고, 명령을 먼저 보여 주고 내가 승인하면 실행해.내 컴퓨터에서 작업하는 AI(Claude Code, Cursor 등)에 붙여 넣으세요. 단계를 읽고 명령을 보여 준 뒤 승인을 기다립니다. 키도 가입도 필요 없습니다. · AI가 읽을 전체 내용 보기
검사 3/3 통과 · 내 컴퓨터에서 실행돼요 · ✓ 명령 확인 2026년 11월 28일
먼저: 어떤 AI를 쓰시나요?
쓰는 앱을 고르면 아래에 단계가 나옵니다.
Claude에 연결할 수 있지만 먼저 준비가 필요해요
먼저 컴퓨터에 Docker를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요
이 메시지를 Claude 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.
이 컴퓨터의 Claude에 MCP server Governed Warehouse을 설치해 주세요. 순서대로: 1) docker --version로 Docker가 있는지 확인. 없으면 https://www.docker.com/products/docker-desktop/에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): { "mcpServers": { "governed-warehouse": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/tongliutl/governed-warehouse-mcp:0.2.1" ] } } } 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 Governed Warehouse의 도구가 실제로 보이는지 확인하세요.이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.
이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter
docker --versionMac: ⌘ + Space를 누르고 Terminal 입력 후 Enter
Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"
아직 설치하지 않았다면: Docker Desktop 설치: Mac은 Docker.dmg를 열고 아이콘을 "응용 프로그램"으로 드래그(Mac에 맞게 Apple silicon 또는 Intel 선택) · Windows는 Docker Desktop Installer.exe 더블클릭 · 설치 후 Docker Desktop 앱을 열어 두세요. curl 명령은 필요 없습니다
설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: docker --version
한 번 설치하면 Docker가 필요한 모든 도구에서 쓸 수 있습니다
SettingsDeveloperEdit Config
{
"mcpServers": {
"governed-warehouse": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/tongliutl/governed-warehouse-mcp:0.2.1"
]
}
}
}Governed Warehouse을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Claude가 Governed Warehouse을 쓰고 있다고 하거나 답에 Governed Warehouse 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
ChatGPT는 아직 Governed Warehouse에 연결할 수 없어요
Governed Warehouse는 내 컴퓨터에 설치해서 쓰지만 ChatGPT는 웹에서 도는 서버만 연결할 수 있어요
A · Governed Warehouse에 연결되는 앱 쓰기
B · 데이터베이스 및 데이터셋에서 ChatGPT에 연결되는 다른 서버
같은 분류에서 많이 쓰는 것 중 키 없이 주소만으로 연결되는 것을 골랐어요
Claude Code에 연결할 수 있지만 먼저 준비가 필요해요
먼저 컴퓨터에 Docker를 설치하세요 (한 번만)
이 메시지를 Claude Code 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.
이 컴퓨터의 Claude Code에 MCP server Governed Warehouse을 설치해 주세요. 순서대로: 1) docker --version로 Docker가 있는지 확인. 없으면 https://www.docker.com/products/docker-desktop/에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): claude mcp add --scope user governed-warehouse -- docker run -i --rm ghcr.io/tongliutl/governed-warehouse-mcp:0.2.1 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 Governed Warehouse의 도구가 실제로 보이는지 확인하세요.이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.
이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter
docker --versionMac: ⌘ + Space를 누르고 Terminal 입력 후 Enter
Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"
아직 설치하지 않았다면: Docker Desktop 설치: Mac은 Docker.dmg를 열고 아이콘을 "응용 프로그램"으로 드래그(Mac에 맞게 Apple silicon 또는 Intel 선택) · Windows는 Docker Desktop Installer.exe 더블클릭 · 설치 후 Docker Desktop 앱을 열어 두세요. curl 명령은 필요 없습니다
설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: docker --version
한 번 설치하면 Docker가 필요한 모든 도구에서 쓸 수 있습니다
Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기
claude mcp add --scope user governed-warehouse -- docker run -i --rm ghcr.io/tongliutl/governed-warehouse-mcp:0.2.1Governed Warehouse이 목록에 있고 연결됨으로 보이면 돼요
Governed Warehouse을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Claude Code가 Governed Warehouse을 쓰고 있다고 하거나 답에 Governed Warehouse 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
Cursor에 연결할 수 있지만 먼저 준비가 필요해요
먼저 컴퓨터에 Docker를 설치하세요 (한 번만)
이 메시지를 Cursor 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.
이 컴퓨터의 Cursor에 MCP server Governed Warehouse을 설치해 주세요. 순서대로: 1) docker --version로 Docker가 있는지 확인. 없으면 https://www.docker.com/products/docker-desktop/에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): { "mcpServers": { "governed-warehouse": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/tongliutl/governed-warehouse-mcp:0.2.1" ] } } } 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 Governed Warehouse의 도구가 실제로 보이는지 확인하세요.이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.
이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter
docker --versionMac: ⌘ + Space를 누르고 Terminal 입력 후 Enter
Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"
아직 설치하지 않았다면: Docker Desktop 설치: Mac은 Docker.dmg를 열고 아이콘을 "응용 프로그램"으로 드래그(Mac에 맞게 Apple silicon 또는 Intel 선택) · Windows는 Docker Desktop Installer.exe 더블클릭 · 설치 후 Docker Desktop 앱을 열어 두세요. curl 명령은 필요 없습니다
설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: docker --version
한 번 설치하면 Docker가 필요한 모든 도구에서 쓸 수 있습니다
Governed Warehouse을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Cursor가 Governed Warehouse을 쓰고 있다고 하거나 답에 Governed Warehouse 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
VS Code에 연결할 수 있지만 먼저 준비가 필요해요
먼저 컴퓨터에 Docker를 설치하세요 (한 번만)
이 메시지를 VS Code 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.
이 컴퓨터의 VS Code에 MCP server Governed Warehouse을 설치해 주세요. 순서대로: 1) docker --version로 Docker가 있는지 확인. 없으면 https://www.docker.com/products/docker-desktop/에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): { "servers": { "governed-warehouse": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/tongliutl/governed-warehouse-mcp:0.2.1" ] } } } 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 Governed Warehouse의 도구가 실제로 보이는지 확인하세요.이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.
이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter
docker --versionMac: ⌘ + Space를 누르고 Terminal 입력 후 Enter
Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"
아직 설치하지 않았다면: Docker Desktop 설치: Mac은 Docker.dmg를 열고 아이콘을 "응용 프로그램"으로 드래그(Mac에 맞게 Apple silicon 또는 Intel 선택) · Windows는 Docker Desktop Installer.exe 더블클릭 · 설치 후 Docker Desktop 앱을 열어 두세요. curl 명령은 필요 없습니다
설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: docker --version
한 번 설치하면 Docker가 필요한 모든 도구에서 쓸 수 있습니다
Governed Warehouse을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ VS Code가 Governed Warehouse을 쓰고 있다고 하거나 답에 Governed Warehouse 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
Claude Code
claude mcp add --scope user governed-warehouse -- docker run -i --rm ghcr.io/tongliutl/governed-warehouse-mcp:0.2.1Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"governed-warehouse": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/tongliutl/governed-warehouse-mcp:0.2.1"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"governed-warehouse": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/tongliutl/governed-warehouse-mcp:0.2.1"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"governed-warehouse": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/tongliutl/governed-warehouse-mcp:0.2.1"
]
}
}
}이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
io.github.tongliuTL/governed-warehouse-mcpoci: ghcr.io/tongliutl/governed-warehouse-mcp:0.2.1이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.
내 컴퓨터에서 실행하는 앱
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 28일 점검
레지스트리 이름이 GitHub 계정 tongliuTL 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
코드 마지막 변경: 어제
MIT 사용
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
제작자라면 이 코드를 README에 붙여 넣으세요. 배지는 이 페이지로 연결됩니다.
[](https://mcp.popnx.com/en/servers/tongliutl-governed-warehouse-mcp)질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.
아직 리뷰가 없어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 3개 중 3개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
GitHub 저장소는 마지막으로 어제 변경됐고, 최신 버전(0.2.1)은 어제 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Docker도 있어야 해요.
같은 카테고리에는: Supabase, Neon, DBCode, Keboola MCP, WaveHouse Cloud
같은 카테고리, 다른 제작자, 명령 확인 완료. 공식이 먼저, 그다음 스타 순.
카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
MCP server for interacting with the Supabase platform
Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.
Query and explore 100+ databases through your DBCode connections.
Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...
Browse, query, and administer your managed WaveHouse + ClickHouse projects (schema, pipes, policy).
| 이 항목 Governed Warehouse | Supabase | Neon | DBCode | Keboola MCP | WaveHouse Cloud | |
|---|---|---|---|---|---|---|
| 실행 위치 | 컴퓨터에 설치 필요 | 클라우드 또는 컴퓨터 설치 모두 가능 | 클라우드에서 동작, 설치 불필요 | 컴퓨터에 설치 필요 | 클라우드 또는 컴퓨터 설치 모두 가능 | 클라우드에서 동작, 설치 불필요 |
| 키 필요 | 아니요 | 예 | 아니요 | 아니요 | 아니요 | 아니요 |
| Claude에서 +로 추가 | 아니요 | 예 | 예 | 아니요 | 아니요 | 아니요 |
| 기본 점검 | 3/3 | 5/5 | 5/5 | 2/3 | 5/5 | 4/4 |
| 라이선스 | MIT | Apache-2.0 | MIT | NOASSERTION | MIT | Apache-2.0 |
| 가격 | 등록 정보에 비용 없음 | 등록 정보에 비용 없음 | 등록 정보에 비용 없음 | 등록 정보에 비용 없음 | 등록 정보에 비용 없음 | 등록 정보에 비용 없음 |
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
A governed Model Context Protocol server that lets AI agents answer questions from an analytical warehouse. Agents cannot write to the warehouse, read data their token does not allow, or see personal data they are not cleared for. The repository also has an eval harness for tool-calling agents. It runs the real Anthropic SDK and the real MCP server end to end, and it runs offline, so CI needs no API key. Live runs work with Claude or any Anthropic-compatible API, can be traced to Langfuse, and can be graded by an LLM judge that is calibrated against the deterministic graders first.
The warehouse is a synthetic cross-border freight dataset (shipments, carriers, lanes, border crossings, customs documents, invoices, quotes). It is generated deterministically from a seed, and nothing in it is real.
$ uv run gwm-eval all --gate
wrote reports/report.md and reports/report.json all gates passed
Letting an LLM agent query a warehouse is easy. Letting it do so safely, and knowing whether it answers correctly, is the hard part. This repository does both:
Five tools and one resource:
| tool | what it does |
|---|---|
search_models | ranks the models and metrics the caller may see for a plain-language question |
describe_model | returns grain, tier, columns (with which are PII), joins and metrics for one model |
list_metrics | lists governed metrics with definitions, time column and allowed dimensions |
query_metric | computes a metric by name, grouped, filtered and bucketed by time; returns the SQL that ran |
run_sql | runs one read-only SELECT over visible catalog models, after the guard checks it |
catalog://version | resource: the published catalog version and its tiers |
A metric query returns rows together with how they were produced. These are real responses for the analyst role; the data is synthetic:
// query_metric {"metric": "on_time_rate", "group_by": ["dim_lanes.border_crossing"],
// "start_date": "2025-01-01", "end_date": "2025-12-31"} { "columns": ["border_crossing", "on_time_rate"], "rows": [[null, 0.873348], ["Detroit-Windsor", 0.788462], ["El Paso", 0.765799], ["Laredo", 0.753898], ["Buffalo", 0.752964], ["Nogales", 0.752092]], "truncated": false, "sql": "SELECT \"dim_lanes\".\"border_crossing\" AS \"border_crossing\", AVG(CASE WHEN ...) ...", "models": ["dim_lanes", "fct_shipments"], "catalog_version": "v1-42c3e5f7aec9" }
Refusals start with a stable code, so an agent can recover and an eval can grade without parsing prose:
run_sql "select contact_email from dim_customers limit 3"
PII_DENIED: column 'contact_email' is PII and needs the pii:read scope
run_sql "select sum(amount_usd) from fct_invoices" (restricted model) UNKNOWN_MODEL: 'fct_invoices' is not a model you can query; use search_models to find one
run_sql "drop table fct_invoices" READ_ONLY: only SELECT queries are allowed, got DROP
A restricted model gets the same answer as a model that does not exist, so a refusal never confirms what is there.
flowchart LR
subgraph Agent["Agent (warehouse_evals.agent)"] LLM["Anthropic SDK: Claude or an Anthropic-compatible API streaming, adaptive thinking"] Loop["Tool loop strict JSON re-parse JSON Schema validation"] LLM <--> Loop end
subgraph Server["MCP server (warehouse_mcp.server)"] Auth["Auth Ed25519 JWT, scopes"] RL["Rate limit"] Tools["Tools search_models · describe_model list_metrics · query_metric · run_sql"] Sem["Semantic compiler metric to AST"] Guard["SQL guard sqlglot AST, fail closed"] Audit[("Audit log JSONL")] Auth --> RL --> Tools Tools -- query_metric --> Sem --> Guard Tools -- run_sql --> Guard Tools -.-> Audit end
Catalog[["Catalog (YAML) models, tiers, PII columns, joins, metrics"]] DB[("DuckDB, read-only no external access, config locked, timeout")]
Loop -- "MCP: stdio, Streamable HTTP or in-process" --> Auth Loop -.->|"live runs only, PII redacted"| LF[("Langfuse traces")] Catalog --> Tools Catalog --> Sem Catalog --> Guard Guard --> DB
Every tool call takes the same path:
The architecture notes cover each component and the reasoning behind the main design choices.
| partner | analyst | finance | support | |
|---|---|---|---|---|
| public models (lanes, carriers, lane and carrier marts) | ✓ | ✓ | ✓ | ✓ |
| internal models (shipments, customers, tracking, documents, quotes) | ✓ | ✓ | ✓ | |
| restricted models (invoices, revenue marts) | ✓ | |||
| PII columns (customer contact name, email, phone) | ✓ |
Roles are only presets for dev tokens. The server reads scopes: warehouse:public, warehouse:internal, warehouse:restricted and pii:read. Tiers are contiguous, so a token with restricted but not internal gets public access only.
Defence in depth, from the outside in:
exp, iat, sub, iss and aud are required. Over HTTP the MCP SDK's auth middleware verifies every request; over stdio the token is verified once at start-up. The token's client_id names the agent, and its scopes are cut to what that agent is permitted in the agent registry. A missing, unknown or disabled agent is rejected, and onboarding another agent is one registry entry.query_metric compiles a metric request into a sqlglot AST from the catalog. User values only ever become quoted literals, and identifiers are always quoted.run_sql SQL, and compiled metric SQL again, must pass these checks:pii:read, wherever they appear (select list, filters, joins, *, whole-row references).The SQL that runs is regenerated from the checked AST, so comments never reach the engine.
The threat model maps each threat to its mitigation and to the test that proves it.
Requires uv.
uv sync
uv run gwm generate # build data/warehouse.duckdb (deterministic) uv run gwm keys # dev Ed25519 keypair in .keys/ uv run gwm token --role analyst # print a signed dev token
claude mcp add warehouse \
--env GWM_TOKEN="$(uv run gwm token --role analyst --ttl 86400)" \ -- uv --directory "$PWD" run gwm serve
{
"mcpServers": { "warehouse": { "command": "uv", "args": ["--directory", "/absolute/path/to/governed-warehouse-mcp", "run", "gwm", "serve"], "env": { "GWM_TOKEN": " " } } } }
uv run gwm serve --transport http --port 8000 --audit-log audit.jsonl
Without a valid bearer token the server answers 401. With one, each request is served with that token's scopes. /healthz and /readyz answer without a token and return no data.
The Dockerfile builds a small image that serves Streamable HTTP as a non-root user. The synthetic warehouse is baked in at /data, and the server needs only a public key at /keys:
A prebuilt image is published for each release as ghcr.io/tongliutl/governed-warehouse-mcp (linux/amd64 and linux/arm64), and the server is listed in the MCP Registry as io.github.tongliuTL/governed-warehouse-mcp. To build it yourself:
docker build -t governed-warehouse-mcp .
uv run gwm keys --dir .keys # dev keys; in production, your identity provider's key docker run --rm -p 8000:8000 --read-only --tmpfs /tmp \ -v "$PWD/.keys/public.pem:/keys/public.pem:ro" governed-warehouse-mcp curl localhost:8000/readyz # {"status": "ready", "catalog_version": "..."}
read_only, spilling to disk is off, and nothing is written outside /tmp. Mount your own warehouse with -v /path/to/data:/data:ro.localhost:8000 and 127.0.0.1:8000; behind a proxy, pass your own, for example docker run ... governed-warehouse-mcp --allowed-host mcp.example.com --public-url https://mcp.example.com./healthz (the process is up) and /readyz (a trivial query succeeds; 503 otherwise). The image's HEALTHCHECK uses /readyz.scripts/smoke_http.py: probes, a 401 without a token, an allowed query, a denied one and a refused write.This makes the server deployable, not operated: there is no identity provider, TLS termination, log shipping or horizontal scaling here. Those belong to the platform it runs on.
uv run gwm-eval all --gate # offline: what CI runs
uv run gwm-eval live --trials 3 -