Skip to content

Commit 536540e

Browse files
authored
Merge pull request #1836 from vespa-engine/edvardwd/mcp-refactor
refactor(mcp-server-app): adapt sample app to MCP changes
2 parents 4a96a58 + e68f630 commit 536540e

File tree

4 files changed

+45
-7
lines changed

4 files changed

+45
-7
lines changed

examples/mcp-server-app/.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.venv
2-
*.sh
3-
uv.lock
2+
*.sh

examples/mcp-server-app/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ to your `claude_desktop_config.json` file under the `mcpServers` section.
7070
### Tools
7171
- **`executeQuery`**: Build and execute Vespa queries against the Vespa application.
7272
- **`getSchemas`**: Retrieve the schemas of the Vespa application.
73-
- **`searchDocumentation`**: Search the [Vespa documentation](https://docs.vespa.ai/) for relevant information based on a user input.
73+
- **`readQueryExamples`**: Allows the LLM to read the `queryExamples`-resource itself.
7474

7575
### Resources
7676
- **`queryExamples`**: Provides query examples to the MCP client for guidance on how to use the `executeQuery` tool.
@@ -83,7 +83,6 @@ Since the point of the sample app is to become familiar with Vespa's MCP server
8383
- Find a random candidate amongst your documents and try to find the best matching job for this candidate.
8484
- Of the jobs matching this candidate, where would our candidate have the best chances to land a job? Do any of the jobs have other better candidates?
8585
- Based on your skills and interests, do any of the jobs match your profile?
86-
- Ask the LLM other Vespa related questions and have it search the documentation for you.
8786
- Can the application be improved? Maybe the LLM can help you modify the schemas and datasets? Make sure `generate_data.py` actually generates data that matches the schemas if you modify them.
8887

8988
### Generating data

examples/mcp-server-app/app/services.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<services version="1.0" xmlns:deploy="vespa" xmlns:preprocess="properties">
33
<container id="default" version="1.0">
4-
<handler id="ai.vespa.mcp.McpJdiscHandler" bundle="mcp-server">
5-
<binding>http://*/mcp/*</binding>
6-
</handler>
74
<document-api/>
85
<search/>
6+
<component id="com.yahoo.search.mcp.McpSearchSpecProvider" bundle="container-search-and-docproc"/>
7+
<handler id="ai.vespa.mcp.McpRequestHandler" bundle="container-disc">
8+
<binding>http://*/mcp/*</binding>
9+
</handler>
910
<nodes>
1011
<node hostalias="node1"/>
1112
</nodes>

examples/mcp-server-app/script/uv.lock

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)