Skip to content

Commit 6c38dcd

Browse files
committed
Fix schema syntax
1 parent fc4b688 commit 6c38dcd

File tree

3 files changed

+31
-10
lines changed

3 files changed

+31
-10
lines changed

modules/ai-agents/pages/mcp/remote/manage-servers.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,14 @@ Data Plane API::
3737
+
3838
[,bash]
3939
----
40-
curl -X PATCH "https://<dataplane-api-url>/v1/redpanda-connect/mcp-servers/<mcp-server-id>" \
40+
curl -X PATCH "https://<dataplane-api-url>/v1/redpanda-connect/mcp-servers/<mcp-server-id>?update_mask=display_name,description" \
4141
-H "Authorization: Bearer <token>" \
4242
-H "Content-Type: application/json" \
4343
-d '{
4444
"mcp_server": {
4545
"display_name": "updated-name",
4646
"description": "Updated description"
47-
},
48-
"update_mask": "display_name,description"
47+
}
4948
}'
5049
----
5150
--

modules/ai-agents/pages/mcp/remote/pipeline-patterns.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ redpanda:
8686
tls:
8787
enabled: true
8888
sasl:
89-
mechanism: "${REDPANDA_SASL_MECHANISM}"
90-
username: "${REDPANDA_SASL_USERNAME}"
91-
password: "${REDPANDA_SASL_PASSWORD}"
89+
- mechanism: "${REDPANDA_SASL_MECHANISM}"
90+
username: "${REDPANDA_SASL_USERNAME}"
91+
password: "${REDPANDA_SASL_PASSWORD}"
9292
----
9393

9494
See also: xref:develop:connect/components/inputs/redpanda.adoc[`redpanda` input]

modules/ai-agents/pages/mcp/remote/quickstart.adoc

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,29 @@ It may take a few seconds to start. The status changes from *Starting* to *Runni
187187
Data Plane API::
188188
+
189189
--
190-
. Using the Data Plane API URL and token from the previous section, make a request to link:/api/doc/cloud-dataplane/operation/operation-mcpserverservice_createmcpserver[`POST /v1/redpanda-connect/mcp-servers`] to create the MCP server:
190+
. Create a service account using the link:/api/doc/cloud-controlplane/operation/operation-serviceaccountservice_createserviceaccount[Control Plane API]:
191+
+
192+
[,bash]
193+
----
194+
curl -X POST "https://api.redpanda.com/v1/service-accounts" \
195+
-H "Authorization: Bearer <token>" \
196+
-H "Content-Type: application/json" \
197+
-d '{
198+
"service_account": {
199+
"name": "mcp-server-demo",
200+
"description": "Service account for MCP server demo"
201+
}
202+
}'
203+
----
204+
+
205+
The response includes `client_id` and `client_secret`. Save these values.
206+
207+
. Store the service account credentials in the xref:develop:connect/configuration/secret-management.adoc[Secrets Store]:
208+
+
209+
* Create secret `REDPANDA_SA_CLIENT_ID` with the service account `client_id`.
210+
* Create secret `REDPANDA_SA_CLIENT_SECRET` with the service account `client_secret`.
211+
212+
. Using the Data Plane API URL from the previous section, make a request to link:/api/doc/cloud-dataplane/operation/operation-mcpserverservice_createmcpserver[`POST /v1/redpanda-connect/mcp-servers`] to create the MCP server:
191213
+
192214
[,bash]
193215
----
@@ -207,8 +229,8 @@ curl -X POST "https://<dataplane-api-url>/v1/redpanda-connect/mcp-servers" \
207229
"cpu_shares": "100m"
208230
},
209231
"service_account": {
210-
"client_id": "${secrets.redpanda_sa.client_id}",
211-
"client_secret": "${secrets.redpanda_sa.client_secret}"
232+
"client_id": "${secrets.REDPANDA_SA_CLIENT_ID}",
233+
"client_secret": "${secrets.REDPANDA_SA_CLIENT_SECRET}"
212234
},
213235
"tools": {
214236
"generate_input": {
@@ -217,7 +239,7 @@ curl -X POST "https://<dataplane-api-url>/v1/redpanda-connect/mcp-servers" \
217239
},
218240
"redpanda_output": {
219241
"component_type": "COMPONENT_TYPE_OUTPUT",
220-
"config_yaml": "kafka_franz:\n seed_brokers: [ \"${REDPANDA_BROKERS}\" ]\n topic: events\n tls:\n enabled: true\n sasl:\n mechanism: \"${REDPANDA_SASL_MECHANISM}\"\n username: \"${REDPANDA_SASL_USERNAME}\"\n password: \"${REDPANDA_SASL_PASSWORD}\""
242+
"config_yaml": "redpanda:\n seed_brokers: [ \"${REDPANDA_BROKERS}\" ]\n topic: events\n tls:\n enabled: true\n"
221243
}
222244
}
223245
}

0 commit comments

Comments
 (0)