Skip to content

Commit 5047477

Browse files
committed
Add 'score' to the result, update dependencies
1 parent fea5d58 commit 5047477

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ interface SearXNGWeb {
9898
title: string;
9999
content: string;
100100
url: string;
101+
score: number;
101102
}>;
102103
}
103104

@@ -177,10 +178,11 @@ async function performWebSearch(
177178
title: result.title || "",
178179
content: result.content || "",
179180
url: result.url || "",
181+
score: result.score || 0,
180182
}));
181183

182184
return results
183-
.map((r) => `Title: ${r.title}\nDescription: ${r.content}\nURL: ${r.url}`)
185+
.map((r) => `Title: ${r.title}\nDescription: ${r.content}\nURL: ${r.url}\nRelevance Score: ${r.score.toFixed(3)}`)
184186
.join("\n\n");
185187
}
186188

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@
4040
"postversion": "node scripts/update-version.js && git add index.ts && git commit --amend --no-edit"
4141
},
4242
"dependencies": {
43-
"@modelcontextprotocol/sdk": "1.10.1",
4443
"mcp-evals": "^1.0.18",
45-
"@modelcontextprotocol/sdk": "1.15.0",
44+
"@modelcontextprotocol/sdk": "1.17.2",
4645
"node-html-markdown": "^1.3.0"
4746
},
4847
"devDependencies": {

0 commit comments

Comments
 (0)