mcp-searxng 0.4.2 → 0.4.5

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -8
  2. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -3,14 +3,8 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
4
  import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
5
5
  import { NodeHtmlMarkdown } from "node-html-markdown";
6
- import { readFileSync } from "fs";
7
- import { join, dirname } from "path";
8
- import { fileURLToPath } from "url";
9
- const __filename = fileURLToPath(import.meta.url);
10
- const __dirname = dirname(__filename);
11
- // Read package.json to get the version
12
- const packageJson = JSON.parse(readFileSync(join(__dirname, "package.json"), "utf-8"));
13
- const packageVersion = packageJson.version;
6
+ // Use a static version string that will be updated by the version script
7
+ const packageVersion = "0.4.4";
14
8
  const WEB_SEARCH_TOOL = {
15
9
  name: "searxng_web_search",
16
10
  description: "Performs a web search using the SearXNG API, ideal for general queries, news, articles, and online content. " +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-searxng",
3
- "version": "0.4.2",
3
+ "version": "0.4.5",
4
4
  "description": "MCP server for SearXNG integration",
5
5
  "license": "MIT",
6
6
  "author": "Ihor Sokoliuk (https://github.com/ihor-sokoliuk)",
@@ -31,7 +31,8 @@
31
31
  "scripts": {
32
32
  "build": "tsc && shx chmod +x dist/*.js",
33
33
  "prepare": "npm run build",
34
- "watch": "tsc --watch"
34
+ "watch": "tsc --watch",
35
+ "postversion": "node scripts/update-version.js && git add index.ts && git commit --amend --no-edit"
35
36
  },
36
37
  "dependencies": {
37
38
  "@modelcontextprotocol/sdk": "1.10.1",