@@ -64,10 +64,6 @@ Flags:
64
64
--transport string transport mode (stdio/sse) (default " stdio" )
65
65
```
66
66
67
- ### Environment Variables
68
-
69
- - ` OCM_OFFLINE_TOKEN ` : Your OCM offline token for authentication - only used in stdio transport
70
-
71
67
### TOML Configuration File
72
68
73
69
``` toml
@@ -81,6 +77,8 @@ sse_base_url = "https://example.com:8080"
81
77
82
78
### Stdio Transport (Local)
83
79
80
+ Stdio transport requires the ` OCM_OFFLINE_TOKEN ` environment variable for authentication.
81
+
84
82
``` bash
85
83
# Set your OCM token
86
84
export OCM_OFFLINE_TOKEN=" your-ocm-token-here"
@@ -91,14 +89,16 @@ export OCM_OFFLINE_TOKEN="your-ocm-token-here"
91
89
92
90
### SSE Transport (Remote)
93
91
92
+ SSE transport uses header-based authentication with the ` X-OCM-OFFLINE-TOKEN ` header. No environment variables required.
93
+
94
94
``` bash
95
95
# Start SSE server
96
96
./rosa-mcp-server --transport=sse --port=8080
97
97
98
98
# Server will be available at:
99
99
# - SSE stream: http://localhost:8080/sse
100
100
# - MCP messages: http://localhost:8080/message
101
- # Send X-OCM-OFFLINE-TOKEN header with requests
101
+ # Authentication: Send X-OCM-OFFLINE-TOKEN header with requests
102
102
```
103
103
104
104
## Authentication Setup
@@ -264,7 +264,9 @@ make undeploy # Remove from OpenShift
264
264
265
265
## Integration with AI Assistants
266
266
267
- Add to your mcpServers list:
267
+ ### Stdio Transport Configuration
268
+
269
+ For local stdio-based integration:
268
270
269
271
``` json
270
272
{
@@ -280,19 +282,21 @@ Add to your mcpServers list:
280
282
}
281
283
```
282
284
283
- ### SSE Integration
285
+ ### SSE Transport Configuration
284
286
285
- For remote integrations, use the SSE endpoints :
287
+ For remote SSE-based integration (no environment variables needed) :
286
288
287
- ``` bash
288
- # SSE stream endpoint (for Server-Sent Events)
289
- GET http://localhost:8080/sse
290
-
291
- # MCP message endpoint (for sending JSON-RPC messages)
292
- POST http://localhost:8080/message
293
-
294
- # Required header for both endpoints
295
- X-OCM-OFFLINE-TOKEN: your-token-here
289
+ ``` json
290
+ {
291
+ "mcpServers" : {
292
+ "rosa-hcp" : {
293
+ "url" : " http://your-server:8080/sse" ,
294
+ "headers" : {
295
+ "X-OCM-OFFLINE-TOKEN" : " your-token-here"
296
+ }
297
+ }
298
+ }
299
+ }
296
300
```
297
301
298
302
## Error Handling
0 commit comments