Validiert und repariert strukturierte LLM-Outputs gegen Schemas und verwaltet die Ingestion sowie Quarantäne von Data Contracts.
Auch bekannt als nightmoose/contractgate, contractgate, @nightmoose/contractgate-mcp-server
- Stars
- 4
- Tools
- —
- Downloads, 30 Tage
- —
- Neueste Version
- 0.4.1
- Letzter Commit
- 14. Nov. 2026
- Lizenz
- MIT
Was ist ContractGate MCP?
Validiert und repariert strukturierte LLM-Outputs gegen Schemas und verwaltet die Ingestion sowie Quarantäne von Data Contracts.
Zusammenfassung generiert aus dem README des Projekts
Über ContractGate MCP server
Die Hauptfunktion dieses Servers besteht darin, sicherzustellen, dass strukturierte LLM-Outputs strikten Definitionen entsprechen, und den Lebenszyklus von Data Contracts zu verwalten. Er kombiniert zwei unterschiedliche Funktionen in einer einzigen Schnittstelle, indem er als schlanker stdio-Wrapper für eine remote HTTP API fungiert. Entwickler nutzen ihn, um strukturierte Modell-Antworten zu validieren und zu reparieren oder um die Daten-Ingestion durch Contract Enforcement zu steuern.
Nutzer verbinden sich via API-Key und können bei Bedarf eine benutzerdefinierte Base URL konfigurieren. Die AISchemaGate-Komponente bietet Tools wie egress_validate, um Outputs gegen JSON Schema oder Pydantic-Regeln zu prüfen, wobei Violation-Felder wie min, max, pattern, enum und compliance_mode für Reparaturen genutzt werden. Die DataContractGate-Komponente übernimmt die Ingestion und Inspektion von Data Contracts durch Tools wie validate_events und get_quarantine und unterstützt ODCS v3.1.0 und v3.2.0 Contracts.
Dieses Setup ermöglicht die automatisierte Korrektur von Modellfehlern und ein organisiertes Management von Daten in der Quarantäne. Es ist für Entwickler konzipiert, die zuverlässige Data Pipelines oder LLM-gestützte Anwendungen bauen, die eine hohe Präzision bei strukturierten Datenformaten erfordern.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du ContractGate MCP
Formate geprüft am 10. Nov. 2026Zu Cursor hinzufügenZu Goose hinzufügenContractGate MCP in Claude Code installieren
$ claude mcp add --env 'CONTRACTGATE_API_KEY=<YOUR_CONTRACTGATE_API_KEY>' contractgate -- npx -y @nightmoose/contractgate-mcp-serverContractGate MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"contractgate": {
"command": "npx",
"args": [
"-y",
"@nightmoose/contractgate-mcp-server"
],
"env": {
"CONTRACTGATE_API_KEY": "<YOUR_CONTRACTGATE_API_KEY>"
}
}
}
}ContractGate MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"contractgate": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@nightmoose/contractgate-mcp-server"
],
"env": {
"CONTRACTGATE_API_KEY": "<YOUR_CONTRACTGATE_API_KEY>"
}
}
}
}ContractGate MCP in VS Code CLI installieren
$ code --add-mcp '{"name":"contractgate","type":"stdio","command":"npx","args":["-y","@nightmoose/contractgate-mcp-server"],"env":{"CONTRACTGATE_API_KEY":"<YOUR_CONTRACTGATE_API_KEY>"}}'ContractGate MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"contractgate": {
"command": "npx",
"args": [
"-y",
"@nightmoose/contractgate-mcp-server"
],
"env": {
"CONTRACTGATE_API_KEY": "<YOUR_CONTRACTGATE_API_KEY>"
}
}
}
}ContractGate MCP in Codex installieren
$ codex mcp add contractgate --env 'CONTRACTGATE_API_KEY=<YOUR_CONTRACTGATE_API_KEY>' -- npx -y @nightmoose/contractgate-mcp-serverContractGate MCP in Codex config.toml installieren
~/.codex/config.toml
[mcp_servers.contractgate] command = "npx" args = ["-y", "@nightmoose/contractgate-mcp-server"] [mcp_servers.contractgate.env] CONTRACTGATE_API_KEY = "<YOUR_CONTRACTGATE_API_KEY>"
ContractGate MCP in Gemini CLI installieren
$ gemini mcp add -s user -e 'CONTRACTGATE_API_KEY=<YOUR_CONTRACTGATE_API_KEY>' contractgate npx -- -y @nightmoose/contractgate-mcp-serverContractGate MCP in Gemini settings.json installieren
~/.gemini/settings.json
{
"mcpServers": {
"contractgate": {
"command": "npx",
"args": [
"-y",
"@nightmoose/contractgate-mcp-server"
],
"env": {
"CONTRACTGATE_API_KEY": "<YOUR_CONTRACTGATE_API_KEY>"
}
}
}
}Konfiguration
CONTRACTGATE_API_KEYErforderlichSecretDataContractGate API key (cg_live_...). Create one at https://app.datacontractgate.com/account
CONTRACTGATE_BASE_URLGateway base URL. Defaults to https://api.datacontractgate.com
| Name | Beschreibung | Typ |
|---|---|---|
| CONTRACTGATE_API_KEY | DataContractGate API key (cg_live_...). Create one at https://app.datacontractgate.com/account | ErforderlichSecret |
| CONTRACTGATE_BASE_URL | Gateway base URL. Defaults to https://api.datacontractgate.com |
Automatisierte Checks
Geluften am 14. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbarnightmoose/contractgate is public and reachablegithub.com/nightmoose/contractgate ↗Bestanden
- Paket nennt dieses Repository als Quelle@nightmoose/contractgate-mcp-server names nightmoose/contractgate as sourcenpmjs.com/package/@nightmoose/contractgate-mcp-server ↗Bestanden
- Build-Provenienz (Sigstore-Attestierung)Sigstore attestation for @nightmoose/contractgate-mcp-servernpmjs.com/package/@nightmoose/contractgate-mcp-server/v/0.4. ↗Bestanden
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit or release 2026-11-12github.com/nightmoose/contractgate ↗Bestanden
- OpenSSF ScorecardNicht geprüft
- Package-Name ähnelt keinem populären PackageNo popular package one edit away from @nightmoose/contractgate-mcp-serverBestanden
- Keine kritischen Advisories im Paket oder seinen Abhängigkeiten4 resolved dependencies checked; no critical advisoryosv.dev ↗Bestanden
- Keine versteckten Anweisungen an das Modell0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersBestanden
- Destruktive Tools sind markiertNicht geprüft
- Remote-Endpoint beantwortet den MCP-HandshakeNicht geprüft
README
Auf GitHub ansehen@nightmoose/contractgate-mcp-server
AISchemaGate validates and repairs structured LLM output against a contract, plus DataContractGate data contracts. Repair uses the violation fields from that check. The contract checks values a JSON Schema or Pydantic validation can leave open.
Official Model Context Protocol server. Thin
stdio wrapper over the HTTP API at https://api.datacontractgate.com (override
with CONTRACTGATE_BASE_URL). The dashboard host
https://app.datacontractgate.com is not the gateway.
One server, two products, same API key:
- AISchemaGate — validates structured LLM output
(
egress_validate→POST /egress/{id}). Repair uses the violation fields from that check (min,max,pattern,enum,compliance_mode). Forwardpayloadfrom the tool result, not the original body. - DataContractGate — infer and deploy data contracts, validate ingest
(
validate_events→POST /v1/ingest/{id}), including ODCS v3.1.0 and v3.2.0 contracts, and inspect quarantine (get_quarantine). Replay stays on the HTTP API (POST /contracts/{id}/quarantine/replay).
Registry metadata for the Official MCP Registry is server.json.
The title and description lead with AISchemaGate (description is the
100-character registry field). The server name stays
io.github.nightmoose/contractgate. Keywords and the longer summary are under
_meta. Smithery config is smithery.yaml;
its default contractgateBaseUrl is the API gateway. npm keywords, this
README, and DIRECTORY_LISTINGS.md are the directory
listing.
See docs/mcp-reference.md for tools and auth.
AISchemaGate app integrations: docs/integrations/.
{
"mcpServers": {
"contractgate": {
"command": "npx",
"args": ["-y", "@nightmoose/contractgate-mcp-server"],
"env": {
"CONTRACTGATE_API_KEY": "${CONTRACTGATE_API_KEY}"
}
}
}
}
cd mcp
npm install
npm test
npm run build
ContractGate MCP Fragen
Wie füge ich ContractGate MCP zu Claude Code hinzu?
Führe claude mcp add --env 'CONTRACTGATE_API_KEY=<YOUR_CONTRACTGATE_API_KEY>' contractgate -- npx -y @nightmoose/contractgate-mcp-server in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich ContractGate MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Was macht AISchemaGate?
AISchemaGate validiert und repariert strukturierte LLM-Outputs gegen einen Contract unter Verwendung von Violation-Feldern wie min, max, pattern, enum und compliance_mode.
Kann ich eine benutzerdefinierte API-URL verwenden?
Ja, du kannst den standardmäßigen HTTP API Endpoint über die Umgebungsvariable CONTRACTGATE_BASE_URL überschreiben.
Was sind die Funktionen von DataContractGate?
DataContractGate ermöglicht es dir, Data Contracts zu inferieren und bereitzustellen, Ingest zu validieren (einschließlich ODCS v3.1.0 und v3.2.0) und die Quarantäne zu inspizieren.