Skip to content

Commit 1d92734

Browse files
committed
Moved lightspeed section here
1 parent da41cc1 commit 1d92734

File tree

4 files changed

+66
-7
lines changed

4 files changed

+66
-7
lines changed

assemblies/assembly-model-context-protocol-tools.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ include::modules/model-context-protocol-tools/proc-configuring-model-context-pro
1212

1313
include::modules/model-context-protocol-tools/proc-configuring-mcp-clients-to-access-the-rhdh-server.adoc[leveloffset=+2]
1414

15+
include::modules/model-context-protocol-tools/proc-configuring-mcp-tools-for-developer-lightspeed.adoc[leveloffset=+1]
16+
1517
include::assembly-using-the-mcp-tools-to-access-data.adoc[leveloffset=+1]
1618

1719
include::assembly-troubleshooting-mcp-server-and-client-problems.adoc[leveloffset=+1]

modules/model-context-protocol-tools/artifacts/snip-developer-preview.adoc

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="proc-configure-mcp-tools-for-developer-lightspeed_{context}"]
4+
= Configuring the {product-very-short} Model Context Protocol (MCP) tools for {ls-short} (Optional)
5+
6+
To leverage Model Context Protocol (MCP) servers like, the {model-context-protocol-link}[server in {product-very-short} with {ls-short}], you must first integrate them into the Llama Stack service. Configuring MCP in {lcs-short} enables the deployed {lcs-short} and Llama Stack to use external tools and retrieve real-time data. This integration allows the virtual assistant to execute complex actions and incorporate current operational context into its responses.
7+
8+
Configuration requires synchronizing settings across three components: the Llama Stack tool definition, the {lcs-short} MCP server endpoint definition, and the {ls-brand-name} plugin MCP authorization token.
9+
10+
.Prerequisites
11+
12+
* You have configured {model-context-protocol-link}[MCP tools in your {product} instance].
13+
14+
.Procedure
15+
. Configure the Llama Stack tool definition by defining the MCP provider in the `tool_runtime` section of the Llama Stack configuration file (`run.yaml`), as shown in the following code:
16+
+
17+
[source,yaml]
18+
----
19+
providers:
20+
tool_runtime:
21+
- provider_id: model-context-protocol
22+
provider_type: remote::model-context-protocol
23+
config: {}
24+
----
25+
26+
. Configure the {lcs-short} MCP server endpoint by defining the MCP server endpoints in the {lcs-short} configuration file (`lightspeed-stack.yaml`), as shown in the following code:
27+
+
28+
[source,yaml]
29+
----
30+
mcp_servers:
31+
- name: mcp::backstage
32+
provider_id: model-context-protocol
33+
url: https://<RHDH_HOST>/api/mcp-actions/v1
34+
----
35+
36+
where:
37+
38+
`<RHDH_HOST>`:: Hostname of your {product-very-short} instance
39+
+
40+
[IMPORTANT]
41+
====
42+
`provider_id` must match the Llama Stack definition (`model-context-protocol`).
43+
====
44+
45+
. Configure the {ls-brand-name} plugin authorization token by specifying the MCP servers and providing the token for authentication in the {ls-brand-name} plugin configuration file (`lightspeed-app-config.yaml`), as shown in the following code:
46+
+
47+
[source,yaml]
48+
----
49+
lightspeed:
50+
mcpServers:
51+
- name: mcp::backstage
52+
token: ${MCP_TOKEN}
53+
----
54+
+
55+
[IMPORTANT]
56+
====
57+
`name` must match the {lcs-name} definition (`mcp::backstage`).
58+
====
59+
60+
[NOTE]
61+
====
62+
Self-hosted models might provide inconsistent or poor performance when using tool calling features, such as the Model Context Protocol (MCP). It is recommended to use the latest foundation models from providers like `OpenAI`` when experimenting with this integration to ensure the most reliable functionality.
63+
====

modules/model-context-protocol-tools/proc-retrieving-software-catalog-data-through-mcp-tool.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The following examples show common queries:
1717

1818
.Procedure
1919
* Use the parameters as shown in the following table to configure your Software Catalog MCP tool plugin.
20-
20+
+
2121
|===
2222
| Name | Description | Example
2323

0 commit comments

Comments
 (0)