Docs

Connect an application to the gateway

Submit a supported request with the correct caller identity and inspect the response before treating it as success.

Product v2.0.0Explanation / guide

This page is a rebuild draft for team review. Check your deployed version before applying its instructions.

Outcome and prerequisites

This guide describes the central gateway integration. You need a writable configured Data Plane, a discovered server and tool ID, an appropriate published policy, and the supported actor or user credential. For local enforcement, start with the request map and the enforcement reference.

The caller credential identifies the actor or user. A separate upstream MCP credential may be required by the server.

Construct the request

The gateway invocation endpoint is /api/dp/v1/gateway/invoke. A minimal tool request has this shape; replace the IDs with entries from your catalog:

{
  "mcpServerId": "YOUR_SERVER_ID",
  "toolId": "YOUR_TOOL_ID",
  "action": "invoke",
  "arguments": {"message": "Hello from the tutorial"}
}

Use Authorization: Bearer <actor-key-or-user-token> according to your deployment's identity configuration. The delegated-user path additionally uses X-User-Token. The upstream pass-through credential uses X-MCP-Token when appropriate. Do not substitute model/application provenance headers for authentication.

Check before invoking

A request to /api/dp/v1/gateway/check evaluates policy without forwarding the tool operation. It is useful for inspecting a candidate request. The ordinary invoke endpoint can execute work in observe and simulate mode.

Handle the full outcome

Read decision, allowed, and policyMode together. If a call is permitted, inspect result for the actual upstream outcome. Find invocationId and the associated evidence for a real invocation.

A caller should present policy denial, invalid identity, and upstream failure as separate outcomes. Avoid retrying a policy-denied operation without a reason to expect a different decision.

Verify with a known simple tool

Run the starter exercise before integrating a business-critical tool. The script creates a scoped actor key, checks a real result, checks a real deny, and cleans up its records.

Next: Identity explained, inspect a decision, or gateway API reference.

About this page and its source

Knowledge ID: guides.connect-application. Reference snapshot: c60ee75. Generated 2026-10-28. Authored explanations accompany source-derived facts; a build date does not establish runtime support.