Ein Model Context Protocol (MCP)-Server fungiert als Proxy zwischen einem externen Dienst, der einem Large Language Model (LLM) oder einer KI-Anwendung Kontext, Daten oder Funktionen bereitstellt. MCP-Server verbinden KI-Anwendungen mit externen Systemen wie Datenbanken und Webdiensten und übersetzen deren Antworten in ein Format, das die KI-Anwendung versteht.
Server einrichten
Sie müssen MCP-Server aktivieren und die Authentifizierung einrichten, bevor Sie sie verwenden können. Weitere Informationen zur Verwendung von Remote-MCP-Servern von Google und Google Cloud finden Sie unter Google Cloud-MCP-Server – Übersicht.
Serverendpunkte
Ein MCP-Dienstendpunkt ist die Netzwerkadresse und Kommunikationsschnittstelle (in der Regel eine URL) des MCP-Servers, über die eine KI-Anwendung (der Host für den MCP-Client) eine sichere, standardisierte Verbindung herstellt. Es ist der Ansprechpartner für das LLM, um Kontext anzufordern, ein Tool aufzurufen oder auf eine Ressource zuzugreifen. Google MCP-Endpunkte können global oder regional sein.
Der MCP-Server der App Lifecycle Manager API hat den folgenden MCP-Endpunkt:
- https://saasservicemgmt.googleapis.com/mcp
MCP-Tools
Ein MCP-Tool ist eine Funktion oder ausführbare Funktion, die ein MCP-Server einem LLM oder einer KI-Anwendung zur Ausführung einer Aktion in der realen Welt zur Verfügung stellt.
Der MCP-Server „saasservicemgmt“ hat die folgenden Tools:
| MCP-Tools | |
|---|---|
| list_saas | Listet SaaS-Ressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_saas | Ruft eine SaaS-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/saas/my-saas“). |
| create_saas | Erstellt eine SaaS-Ressource. Erforderliche Parameter: „parent“ (z.B. projects/my-project/locations/us-central1), „saas_id“, „saas“. Optionale Parameter: „validate_only“, „request_id“. |
| list_tenants | Listet Mandantenressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_tenant | Ruft eine Tenant-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/tenants/my-tenant“). |
| create_tenant | Erstellt eine Mandantenressource. Erforderliche Parameter: „parent“ (z.B. projects/my-project/locations/us-central1), „tenant_id“, „tenant“. Optionale Parameter: „validate_only“, „request_id“. |
| list_unit_kinds | Listet UnitKind-Ressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_unit_kind | Ruft eine UnitKind-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/unitKinds/my-unitkind“). |
| create_unit_kind | Erstellt eine UnitKind-Ressource. Erforderliche Parameter: „parent“ (z.B. projects/my-project/locations/us-central1), „unit_kind_id“, „unit_kind“. Optionale Parameter: „validate_only“, „request_id“. |
| list_units | Listet Einheitenressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_unit | Ruft eine Unit-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/units/my-unit“). |
| create_unit | Erstellt eine Unit-Ressource. Erforderliche Parameter: „parent“ (z.B. projects/my-project/locations/us-central1), „unit_id“, „unit“. Optionale Parameter: „validate_only“, „request_id“. |
| list_unit_operations | Listet UnitOperation-Ressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_unit_operation | Ruft eine UnitOperation-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/unitOperations/my-unitoperation“). |
| list_releases | Listet Release-Ressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_release | Ruft eine Release-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/releases/my-release“). |
| create_release | Erstellt eine Release-Ressource. Erforderliche Parameter: „parent“ (z.B. projects/my-project/locations/us-central1), „release_id“, „release“. Optionale Parameter: „validate_only“, „request_id“. |
| list_rollouts | Listet Rollout-Ressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_rollout | Ruft eine Rollout-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/rollouts/my-rollout“). |
| list_rollout_kinds | Listet „RolloutKind“-Ressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_rollout_kind | Ruft eine RolloutKind-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/rolloutKinds/my-rolloutkind“). |
| create_rollout_kind | Erstellt eine RolloutKind-Ressource. Erforderliche Parameter: „parent“ (z.B. projects/my-project/locations/us-central1), „rollout_kind_id“, „rollout_kind“. Optionale Parameter: „validate_only“, „request_id“. |
| list_maintenances | Listet Wartungsressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_maintenance | Ruft eine Maintenance-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/maintenances/my-maintenance“). |
| create_maintenance | Erstellt eine Wartungsressource. Erforderliche Parameter: „parent“ (z.B. projects/my-project/locations/us-central1), „maintenance_id“, „maintenance“. Optionale Parameter: „validate_only“, „request_id“. |
| list_resource_maintenances | Listet ResourceMaintenance-Ressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_resource_maintenance | Ruft eine ResourceMaintenance-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/resourceMaintenances/my-resourcemaintenance“). |
| list_flags | Listet Flag-Ressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_flag | Ruft eine Flag-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/flags/my-flag“). |
| create_flag | Erstellt eine Flag-Ressource. Erforderliche Parameter: „parent“ (z.B. projects/my-project/locations/us-central1), „flag_id“, „flag“. Optionale Parameter: „validate_only“, „request_id“. |
| list_flag_revisions | Listet FlagRevision-Ressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_flag_revision | Ruft eine FlagRevision-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/flagRevisions/my-flagrevision“). |
| create_flag_revision | Erstellt eine FlagRevision-Ressource. Erforderliche Parameter: „parent“ (z.B. projects/my-project/locations/us-central1), „flag_revision_id“, „flag_revision“. Optionale Parameter: „validate_only“, „request_id“. |
| list_flag_releases | Listet FlagRelease-Ressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_flag_release | Ruft eine FlagRelease-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/flagReleases/my-flagrelease“). |
| create_flag_release | Erstellt eine FlagRelease-Ressource. Erforderliche Parameter: „parent“ (z.B. projects/my-project/locations/us-central1), „flag_release_id“, „flag_release“. Optionale Parameter: „validate_only“, „request_id“. |
| list_flag_attributes | Listet FlagAttribute-Ressourcen auf. Erforderlicher Parameter: „parent“ (z.B. „projects/my-project/locations/us-central1“). Optionale Parameter: „page_size“, „page_token“, „filter“, „order_by“. |
| get_flag_attribute | Ruft eine FlagAttribute-Ressource ab. Erforderlicher Parameter: „name“ (z.B. „projects/my-project/locations/us-central1/flagAttributes/my-flagattribute“). |
| create_flag_attribute | Erstellt eine FlagAttribute-Ressource. Erforderliche Parameter: „parent“ (z.B. projects/my-project/locations/us-central1), „flag_attribute_id“, „flag_attribute“. Optionale Parameter: „validate_only“, „request_id“. |
Spezifikationen für MCP-Tools abrufen
Wenn Sie die MCP-Tool-Spezifikationen für alle Tools auf einem MCP-Server abrufen möchten, verwenden Sie die Methode tools/list. Im folgenden Beispiel wird gezeigt, wie Sie mit curl alle Tools und ihre Spezifikationen auflisten, die derzeit auf dem MCP-Server verfügbar sind.
| Curl-Anfrage |
|---|
curl --location 'https://saasservicemgmt.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/list", "jsonrpc": "2.0", "id": 1 }' |