You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -548,6 +522,7 @@ curl -X POST http://localhost:8000/ \
548
522
"method": "message/send",
549
523
"params": {
550
524
"message": {
525
+
"messageId": "1",
551
526
"role": "user",
552
527
"parts": [{"type": "text", "text": "Show my systems"}]
553
528
}
@@ -860,12 +835,12 @@ This separation ensures:
860
835
The MCP server runs as a sidecar container and provides tools for the agent to interact with Red Hat Insights APIs:
861
836
862
837
1. **Agent receives a request** (e.g., "Show me my system vulnerabilities")
863
-
2. **Agent calls MCP tools** via HTTP to the MCP server (localhost:8081), passing credentials in headers
864
-
3. **MCP server authenticates** with console.redhat.com using the credentials from headers
838
+
2. **Agent calls MCP tools** via HTTP to the MCP server (localhost:8081), forwarding the caller's JWT token in the Authorization header
839
+
3. **MCP server authenticates** with console.redhat.com using the forwarded JWT token
865
840
4. **MCP server calls Insights APIs** and returns results to the agent
866
841
5. **Agent formats the response** and returns it to the user
867
842
868
-
The Lightspeed credentials (`LIGHTSPEED_CLIENT_ID` and `LIGHTSPEED_CLIENT_SECRET`) are configured on the **agent** container, which passes them to the MCP server via HTTP headers on each request. The MCP server itself does not need credentials configured.
843
+
The agent forwards the caller's JWT token to the MCP server via the `Authorization: Bearer` header on each request. The MCP server itself does not need credentials configured.
Copy file name to clipboardExpand all lines: deploy/cloudrun/README.md
+7-35Lines changed: 7 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ The deployment consists of **two separate Cloud Run services** plus **Cloud Memo
62
62
2.**Deploy Marketplace Handler first** - Must be running to receive provisioning events
63
63
3.**Deploy Agent after provisioning** - Can be deployed when customers are ready to use the agent
64
64
65
-
The MCP server runs as a sidecar in the Agent service. The agent forwards the caller's JWT token to the MCP server, which uses it to authenticate with console.redhat.com on behalf of the user. Alternatively, if Lightspeed service account credentials are configured, the agent sends those instead (see [MCP Authentication](#mcp-authentication)).
65
+
The MCP server runs as a sidecar in the Agent service. The agent forwards the caller's JWT token to the MCP server, which uses it to authenticate with console.redhat.com on behalf of the user (see [MCP Authentication](#mcp-authentication)).
66
66
67
67
## Service Accounts
68
68
@@ -551,30 +551,20 @@ When the agent needs to access Insights data (e.g., system vulnerabilities, reco
551
551
552
552
### MCP Authentication
553
553
554
-
The agent supports two modes for authenticating with the MCP server, determined
555
-
by whether Lightspeed credentials are configured:
556
-
557
-
| Mode | When | Headers sent to MCP |
558
-
|------|------|---------------------|
559
-
| **JWT pass-through** (default) | `LIGHTSPEED_CLIENT_ID/SECRET` not set | `Authorization: Bearer <caller's token>` |
**JWT pass-through** is the recommended mode. The caller's Red Hat SSO token
563
-
is forwarded to the MCP server, which uses it to call console.redhat.com APIs
564
-
on behalf of the user.
554
+
The agent forwards the caller's JWT token to the MCP server via the
555
+
`Authorization: Bearer` header. The MCP server uses this token to call
556
+
console.redhat.com APIs on behalf of the user.
565
557
566
558
### Credential Flow
567
559
568
-
**Mode A: JWT pass-through (default)**
569
-
570
560
```
571
561
Client Agent MCP Server console.redhat.com
572
562
│ │ │ │
573
563
│ POST / (A2A) │ │ │
574
564
│ Authorization: Bearer T │ │ │
575
565
├─────────────────────────►│ │ │
576
566
│ │ MCP tool call │ │
577
-
│ │ Authorization: Bearer T| │
567
+
│ │ Authorization: Bearer T│ │
578
568
│ ├────────────────────────►│ │
579
569
│ │ │ API Request + T │
580
570
│ │ ├────────────────────►│
@@ -586,24 +576,6 @@ Client Agent MCP Server console.red
586
576
│◄─────────────────────────┤ │ │
587
577
```
588
578
589
-
**Mode B: Lightspeed credentials (optional)**
590
-
591
-
```
592
-
Secret Manager MCP Server console.redhat.com
593
-
│ │ │
594
-
│ LIGHTSPEED_CLIENT_ID │ │
595
-
│ LIGHTSPEED_CLIENT_SECRET │ │
596
-
├──────────────────────────────►│ │
597
-
│ │ OAuth2 Token Request │
598
-
│ ├──────────────────────────►│
599
-
│ │ Access Token │
600
-
│ │◄──────────────────────────┤
601
-
│ │ API Request + Token │
602
-
│ ├──────────────────────────►│
603
-
│ │ API Response │
604
-
│ │◄──────────────────────────┤
605
-
```
606
-
607
579
## Authentication
608
580
609
581
The agent uses **Red Hat SSO** (Keycloak) for authentication via **token
@@ -635,7 +607,7 @@ Bearer token that is active and carries the `agent:insights` scope.
635
607
│ ├───────────────────►│ │ │
636
608
│ │ │ │ │
637
609
│ │ 5. MCP tool call │ │ │
638
-
│ │ + Bearer token (or Lightspeed creds) │ │
610
+
│ │ + Bearer token │ │ │
639
611
│ ├───────────────────────────────────────►│ │
640
612
│ │ │ │ 6. Insights API │
641
613
│ │ │ │ (using token) │
@@ -650,7 +622,7 @@ Bearer token that is active and carries the `agent:insights` scope.
650
622
651
623
**Credential sets:**
652
624
- **Red Hat SSO credentials** (`RED_HAT_SSO_CLIENT_ID/SECRET`): Used by the agent as Resource Server credentials for token introspection (step 4)
653
-
- **MCP authentication** (step 5): By default the caller's Bearer token is forwarded. If `LIGHTSPEED_CLIENT_ID/SECRET` are configured, those are sent instead (see [MCP Authentication](#mcp-authentication))
625
+
- **MCP authentication** (step 5): The caller's Bearer token is forwarded to the MCP server (see [MCP Authentication](#mcp-authentication))
0 commit comments