mcp-searxng 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ An [MCP server](https://modelcontextprotocol.io/introduction) implementation tha
|
|
|
19
19
|
- **searxng_web_search**
|
|
20
20
|
- Execute web searches with pagination
|
|
21
21
|
- Inputs:
|
|
22
|
-
- `query` (string):
|
|
22
|
+
- `query` (string): The search query. This string is passed to external search services.
|
|
23
23
|
- `pageno` (number, optional): Search page number, starts at 1 (default 1)
|
|
24
24
|
- `time_range` (string, optional): Filter results by time range - one of: "day", "month", "year" (default: none)
|
|
25
25
|
- `language` (string, optional): Language code for results (e.g., "en", "fr", "de") or "all" (default: "all")
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const WEB_SEARCH_TOOL = {
|
|
|
12
12
|
properties: {
|
|
13
13
|
query: {
|
|
14
14
|
type: "string",
|
|
15
|
-
description: "
|
|
15
|
+
description: "The search query. This string is passed to external search services.",
|
|
16
16
|
},
|
|
17
17
|
pageno: {
|
|
18
18
|
type: "number",
|
|
@@ -58,7 +58,7 @@ const READ_URL_TOOL = {
|
|
|
58
58
|
// Server implementation
|
|
59
59
|
const server = new Server({
|
|
60
60
|
name: "ihor-sokoliuk/mcp-searxng",
|
|
61
|
-
version: "0.3.
|
|
61
|
+
version: "0.3.1",
|
|
62
62
|
}, {
|
|
63
63
|
capabilities: {
|
|
64
64
|
resources: {},
|
|
@@ -146,7 +146,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
146
146
|
if (!isSearXNGWebSearchArgs(args)) {
|
|
147
147
|
throw new Error("Invalid arguments for searxng_web_search");
|
|
148
148
|
}
|
|
149
|
-
const { query, pageno = 1, time_range = "", language = "all", safesearch } = args;
|
|
149
|
+
const { query, pageno = 1, time_range = "", language = "all", safesearch, } = args;
|
|
150
150
|
const results = await performWebSearch(query, pageno, time_range, language, safesearch);
|
|
151
151
|
return {
|
|
152
152
|
content: [{ type: "text", text: results }],
|