Skip to content

Commit f984343

Browse files
authored
RHIDP-12608/12573: MCP doc updates for 1.10 (redhat-developer#2168)
* MCP doc updates for 1.10 * CQA changes * CQA updates * Incorporating Judy's comments * Minor change * Incorporated Judy's comments * Update CQA error
1 parent 8c15e18 commit f984343

31 files changed

Lines changed: 391 additions & 91 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
ifdef::context[:parent-context: {context}]
3+
4+
[id="automate-software-resource-creation-with-scaffolder-mcp-tools_{context}"]
5+
= Automate software resource creation with Scaffolder MCP tools
6+
:context: automate-software-resource-creation-with-scaffolder-mcp-tools
7+
8+
[role="_abstract"]
9+
You can expose Scaffolder actions to AI agents by using Scaffolder Model Context Protocol (MCP) tools in {product}.
10+
11+
These tools enable AI agents to understand and involve Scaffolder capabilities through natural language input within an IDE or chat interface. You can validate template logic by using sandboxed dry-runs and monitor the progress of automated tasks. To maintain security, these tools must adhere to existing role-based access control (RBAC) permissions and maintain a consistent audit trail.
12+
13+
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/con-software-template-validation-with-scaffolder-dry-run-tools.adoc[leveloffset=+1]
14+
15+
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/ref-scaffolder-dry-run-tool-reference.adoc[leveloffset=+1]
16+
17+
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/con-software-template-execution-with-scaffolder-mcp-tools.adoc[leveloffset=+1]
18+
19+
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/ref-scaffolder-execution-tool-reference.adoc[leveloffset=+1]
20+
21+
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/con-scaffolder-task-monitoring-with-mcp-tools.adoc[leveloffset=+1]
22+
23+
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/ref-scaffolder-tasks-list-tool-reference.adoc[leveloffset=+1]
24+
25+
ifdef::parent-context[:context: {parent-context}]
26+
ifndef::parent-context[:!context:]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
ifdef::context[:parent-context: {context}]
3+
4+
[id="automate-software-templates-by-using-scaffolder-mcp-tools_{context}"]
5+
= Automate Software Templates by using Scaffolder MCP tools
6+
:context: automate-software-templates-by-using-scaffolder-mcp-tools
7+
8+
[role="_abstract"]
9+
Use the Scaffolder Model Context Protocol (MCP) (`scaffolder-mcp-extras`) tools to query available actions, validate template dry-runs, and retrieve task logs during Software Template development in {product-very-short}.
10+
11+
These tools use provided credentials and adhere to existing role-based access control (RBAC) permissions.
12+
13+
[IMPORTANT]
14+
====
15+
All operations performed through Scaffolder MCP tools use the `On Behalf Of the User` (OBOU) security model. The system uses the bearer token from the MCP client to ensure that actions adhere to existing RBAC permissions and maintain a consistent audit trail.
16+
====
17+
18+
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/ref-list-scaffolder-actions.adoc[leveloffset=+1]
19+
20+
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/ref-get-scaffolder-task-logs.adoc[leveloffset=+1]
21+
22+
23+
ifdef::parent-context[:context: {parent-context}]
24+
ifndef::parent-context[:!context:]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
ifdef::context[:parent-context: {context}]
3+
4+
[id="install-the-mcp-server-and-tool-plugins-in-rhdh_{context}"]
5+
= Install the MCP server and tool plugins in {product}
6+
:context: install-the-mcp-server-and-tool-plugins-in-rhdh
7+
8+
[role="_abstract"]
9+
As an administrator, you can enable Model Context Protocol (MCP) support in {product} by installing the backend server and tool plugins.
10+
11+
The backend MCP server plugin runs the MCP tools, while the individual tool plugins expose specific capabilities for the Software Catalog, TechDocs, and Scaffolder features.
12+
13+
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/proc-install-the-backend-mcp-server-plugin.adoc[leveloffset=+1]
14+
15+
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/proc-install-the-mcp-tool-plugins.adoc[leveloffset=+1]
16+
17+
18+
ifdef::parent-context[:context: {parent-context}]
19+
ifndef::parent-context[:!context:]

assemblies/integrate_interacting-with-model-context-protocol-tools-for-rhdh/assembly-troubleshoot-mcp-server-and-client-problems.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Diagnose and resolve common issues with MCP server installation, client configur
1010

1111
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/proc-verify-successful-installation-of-mcp-plugins.adoc[leveloffset=+1]
1212

13-
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/ref-checking-mcp-tool-logs-for-status-and-errors.adoc[leveloffset=+1]
13+
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/ref-check-mcp-tool-logs-for-status-and-errors.adoc[leveloffset=+1]
1414

15-
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/con-understand-and-respond-to-mcp-tool-error-messages.adoc[leveloffset=+1]
15+
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/con-mcp-tool-error-messages.adoc[leveloffset=+1]
1616

1717
include::../modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/proc-resolve-the-model-does-not-support-tool-calling-error.adoc[leveloffset=+1]
1818

modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/con-understand-and-respond-to-mcp-tool-error-messages.adoc renamed to modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/con-mcp-tool-error-messages.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
:_mod-docs-content-type: CONCEPT
22

3-
[id="understand-and-respond-to-mcp-tool-error-messages_{context}"]
4-
= Understand and respond to MCP tool error messages
3+
[id="mcp-tool-error-messages_{context}"]
4+
= MCP tool error messages
55

66
[role="_abstract"]
77
MCP tools provide optional error messages that communicate issues including input validation errors encountered during tool use.
88

9-
The MCP tools response provides an optional error message that communicates any issues encountered during the use of the tool, including potential input validation errors.
9+
The MCP tools response provides an optional error message that communicates any issues encountered during the use of the tool, including potential input validation errors.

modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/con-understanding-model-context-protocol.adoc renamed to modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/con-model-context-protocol.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:_mod-docs-content-type: CONCEPT
22

3-
[id="understanding-model-context-protocol_{context}"]
4-
= Understanding Model Context Protocol
3+
[id="model-context-protocol_{context}"]
4+
= Model Context Protocol
55

66
[role="_abstract"]
77
Model Context Protocol (MCP) connects AI applications to external systems, enabling {product-short} MCP tools through the mcp-actions-backend plugin.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:_mod-docs-content-type: CONCEPT
2+
3+
[id="scaffolder-task-monitoring-with-mcp-tools_{context}"]
4+
= Scaffolder task monitoring with MCP tools
5+
6+
[role="_abstract"]
7+
Scaffolder task monitoring provides visibility into the lifecycle of automated resource creation. By using MCP tools, you can track the progress of templates and retrieve execution results for workflows initiated by an AI agent.
8+
9+
Monitoring capabilities include the following features:
10+
11+
* User interaction: You must ask for a status update on your tasks or a list of recent activities.
12+
* Agent invocation: The AI agent calls the task list tool. To restrict results to only include your own tasks, the agent must set the `owned` parameter to `true`.
13+
* Outcome processing: The AI agent filters and summarizes the `tasks[]` list, reporting statuses such as `processing`, `completed`, or `failed`.
14+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:_mod-docs-content-type: CONCEPT
2+
3+
[id="software-template-execution-with-scaffolder-mcp-tools_{context}"]
4+
= Software Template execution with Scaffolder MCP tools
5+
6+
[role="_abstract"]
7+
Automate resource creation, such as repositories or components, by executing Software Templates through the AI agent.
8+
9+
By using Scaffolder MCP tools, the AI agent interacts directly with your existing software templates to streamline the development lifecycle.
10+
11+
The execution process relies on three core components:
12+
13+
* User interaction: You must identify a reference for the target template (for example, `template:default/create-node`) and provide the necessary input `values` and `secrets`.
14+
* Agent invocation: The AI agent maps the data to the `templateRef`, `values`, and `secrets` parameters to execute the template.
15+
* Outcome processing: The AI agent confirms the execution and provides the `taskId` to the user for progress tracking.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
:_mod-docs-content-type: CONCEPT
2+
3+
[id="software-template-validation-with-scaffolder-dry-run-tools_{context}"]
4+
= Software Template validation with Scaffolder dry-run tools
5+
6+
[role="_abstract"]
7+
With Software Template validation, you can verify YAML configuration and execution logic in a sandboxed environment. This preliminary testing ensures that your templates function as intended before you deploy them to a production environment.
8+
9+
The validation process involves the following key components:
10+
11+
* User interaction: You must provide the template YAML content, required input values, and any additional files.
12+
* Agent invocation: The AI agent maps these inputs to the `templateYAML`, `values`, and `files` parameters to invoke the dry-run tool.
13+
* Outcome processing: The AI agent interprets the `valid` status and execution logs to provide a plain-language summary or troubleshooting steps if validation fails.

modules/integrate_interacting-with-model-context-protocol-tools-for-rhdh/proc-configure-mcp-clients-to-access-the-rhdh-server.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You must configure an MCP client before it can interact with the MCP server. For
1717
+
1818
[NOTE]
1919
====
20-
If a client does not yet support the Streamable endpoint, you must use the SSE endpoint.
20+
Some clients do not yet support the Streamable endpoint. Use the SSE (Legacy) endpoint if your client requires it.
2121
====
2222

2323
* You have set the `MCP_TOKEN` environment variable in your MCP server configuration as the bearer token for authentication.

0 commit comments

Comments
 (0)