Skip to content

Commit 15bd2e5

Browse files
committed
re-order the doc
1 parent 87c936c commit 15bd2e5

File tree

4 files changed

+43
-3
lines changed

4 files changed

+43
-3
lines changed

docs/ai-models/embeddings/_category_.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"label": "Embeddings",
3-
"position": 1,
3+
"position": 3,
44
"link": {
55
"type": "generated-index"
66
}

docs/ai-models/llm/_category_.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"label": "LLM",
3-
"position": 1,
3+
"position": 2,
44
"link": {
55
"type": "generated-index"
66
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
sidebar_position: 3
3+
---
4+
5+
# Connect Another MCP Server
6+
7+
As an MCP client, **Llama-Nexus** supports connecting to multiple MCP servers. This article provides an example of how to add an additional MCP server.
8+
9+
## Modify `config.toml`
10+
11+
Assuming you have already [installed Llama-Nexus](../quick-start.md#install-the-llama-nexus-software) on your machine, you can add a new MCP server by editing the `config.toml` file:
12+
13+
```bash
14+
vi config.toml
15+
```
16+
17+
Add a new MCP server entry using the following format:
18+
19+
```
20+
[[mcp.server.tool]]
21+
name = "test-search"
22+
transport = "stream-http"
23+
url = "http://YOUR_IP_ADDRESS/mcp"
24+
enable = true
25+
```
26+
27+
> Make sure enable = true to activate the MCP service.
28+
29+
Next, [start the Llama-Nexus service and register an LLM that supports function calls with the MCP server.](../mcp/quick-start-with-mcp.md).
30+
31+
Once registered successfully, you can send requests using the OpenAI-compatible API. For example:
32+
33+
```
34+
curl -X POST http://localhost:3389/v1/chat/completions \
35+
-H 'accept: application/json' \
36+
-H 'Content-Type: application/json' \
37+
-d '{"messages":[{"role":"system", "content": "You are a helpful assisstant.If the user asks a question, you will use the tool call to answer user question."},{"role":"user", "content": "Send an email to [email protected] and told her the dinner is cancelled, becuase I have a business meeting."}]}'
38+
```
39+
40+
If everything goes well, the email will be sent automactailly

docs/llama-nexus/mcp/quick-start-with-mcp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 4
2+
sidebar_position: 1
33
---
44

55
# Quick start with MCP servers

0 commit comments

Comments
 (0)