TD2 verwendet Benutzernamen und Passwort mit BASE64-Kodierung für die Authentifizierung.
Wichtig: Die TD2-Authentifizierungsmethode ist für AI Studio Lite automatisch aktiviert.
- Um die TD2-Authentifizierung für Teradata Enterprise MCP-Software oder Teradata Enterprise MCP auf TMS zu aktivieren, legen Sie den folgenden Wert in der MCP Server Datei .env fest.
# Authentication method TD_BASIC_AUTH_ENABLED=true
- Authentifizieren Sie sich mit einer der folgenden Methoden.
- Für Enterprise MCP-Software und Enterprise MCP auf TMS:
# The -u flag automatically handles BASE64 encoding curl -X POST http://localhost:8001/mcp \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -u username:password \ -d '{ "jsonrpc": "2.0", "method": "tools/list", "id": 1 }'Tipp: Verwenden Sie die Option -u, um Anmeldeinformationen zu übergeben.Der cURL-Client verarbeitet die BASE64-Kodierung automatisch.
from requests.auth import HTTPBasicAuth import requests response = requests.post( 'http://localhost:8001/mcp', auth=HTTPBasicAuth('username', 'password'), json={ "jsonrpc": "2.0", "method": "tools/list", "id": 1 } ) - Für AI Studio Lite:
# The -u flag automatically handles BASE64 encoding curl -X POST http://localhost:8001/mcp \ -H "Content-Type: application/json" \ -H "AuthType: basic" \ -H "Accept: application/json" \ -u username:password \ -d '{ "jsonrpc": "2.0", "method": "tools/list", "id": 1 }'Tipp: Verwenden Sie die Option -u, um Anmeldeinformationen zu übergeben.Der cURL-Client übernimmt die BASE64-Kodierung automatisch.
from requests.auth import HTTPBasicAuth import requests response = requests.post( 'http://localhost:8001/mcp', auth=HTTPBasicAuth('username', 'password'), json={ "jsonrpc": "2.0", "method": "tools/list", "id": 1 } )
- Für Enterprise MCP-Software und Enterprise MCP auf TMS:
Nach erfolgreicher Authentifizierung gibt der MCP Server die Liste der dem authentifizierten Benutzer zur Verfügung stehenden Tools auf Basis der RBAC zurück.