ask-web-search-mcp 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74101b65000d8653c19c54ef6c086c7e8cff70e0d9d6d97b8326b9ea7c549b38
4
- data.tar.gz: a635049085f7a01311ea6398a888af0e71770a7b78c7801cd52e6aedc3a03698
3
+ metadata.gz: f160f5a8fb458d0709056a11c582668c7635a5eaaaf85d9be6874177eba701ac
4
+ data.tar.gz: 846c889c1942698894bb3d5af8b385ee54c775d6b1d355ebe62227cb39a46539
5
5
  SHA512:
6
- metadata.gz: ec94b39fc0d04e542b1687a3ba765615a955c9913fcad3730c564d4c08622b9c9662b646bb0b674d8d163aaddf419ee60127fced6729917a2cd1123f0003ef72
7
- data.tar.gz: 52d3567b53606f19617a12c75adf91641101eef917bf2ec01bee0a5cc74be429732785386a29d78343a2c0a6a699d5be5744f66bcb141d816d5c557e82d10982
6
+ metadata.gz: badf1176d59f3b255a7fd66b89c5a772c6bcb8fea3b4bb94bf1ce1a1d49f6d031fe8c2cfaf9f135a1f965dcaed758e7fa2222de7168d6d80cf42d5f5731364ea
7
+ data.tar.gz: 821fc274ee6ea451359afedacca24bc319a532bf10a6b67b1a458345194a89227d457d255432020eb1feb86e03908d774cc2da3785db84d7ef0eccbc71f2728c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.0] - 2026-07-18
4
+
5
+ ### Changed
6
+
7
+ - Renamed tool from `web_search` to `ask_web_search` to avoid collision with
8
+ built-in client tools. (#diff-name)
9
+
3
10
  ## [0.1.0] - 2026-07-18
4
11
 
5
12
  ### Added
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/ask-web-search-mcp.svg)](https://rubygems.org/gems/ask-web-search-mcp)
4
4
 
5
5
  A minimal [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) server
6
- that exposes a `web_search` tool backed by SearXNG. Designed for use with
6
+ that exposes an `ask_web_search` tool backed by SearXNG. Designed for use with
7
7
  MCP-compatible clients like **ZCode**, **Claude Code**, **Codex**, and others.
8
8
 
9
9
  ## Prerequisites
@@ -57,14 +57,16 @@ Add the server to your ZCode user configuration
57
57
  "mcp": {
58
58
  "servers": {
59
59
  "ask-web-search-mcp": {
60
- "command": "ask-web-search-mcp"
60
+ "type": "stdio",
61
+ "command": "ask-web-search-mcp",
62
+ "args": []
61
63
  }
62
64
  }
63
65
  }
64
66
  }
65
67
  ```
66
68
 
67
- After restarting ZCode, the `web_search` tool will be available to the model.
69
+ After restarting ZCode, the `ask_web_search` tool will be available to the model.
68
70
 
69
71
  ### With Claude Code
70
72
 
@@ -3,7 +3,7 @@
3
3
  module Ask
4
4
  module WebSearch
5
5
  module MCP
6
- VERSION = "0.1.0"
6
+ VERSION = "0.2.0"
7
7
  end
8
8
  end
9
9
  end
@@ -7,7 +7,7 @@ require_relative "mcp/version"
7
7
  module Ask
8
8
  module WebSearch
9
9
  module MCP
10
- # Start the MCP server over stdio, exposing the WebSearch tool.
10
+ # Start the MCP server over stdio, exposing the ask_web_search tool.
11
11
  #
12
12
  # $ ask-web-search-mcp
13
13
  #
@@ -18,15 +18,19 @@ module Ask
18
18
  # "mcp": {
19
19
  # "servers": {
20
20
  # "ask-web-search-mcp": {
21
+ # "type": "stdio",
21
22
  # "command": "ask-web-search-mcp",
22
- # "type": "stdio"
23
+ # "args": []
23
24
  # }
24
25
  # }
25
26
  # }
26
27
  def self.start
28
+ tool = Ask::Tools::WebSearch.new
29
+ tool.define_singleton_method(:name) { "ask_web_search" }
30
+
27
31
  Ask::MCP::Server.start_stdio(
28
32
  name: "ask-web-search-mcp",
29
- tools: [Ask::Tools::WebSearch.new],
33
+ tools: [tool],
30
34
  capabilities: { tools: {} },
31
35
  debug: ENV["DEBUG"] == "1"
32
36
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ask-web-search-mcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto