@oevortex/ddg_search 1.1.4 → 1.1.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.
- package/bin/cli.js +13 -13
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -12,14 +12,14 @@ async function startServer() {
|
|
|
12
12
|
try {
|
|
13
13
|
// Dynamically import the modules
|
|
14
14
|
const { searchToolDefinition, searchToolHandler } = await import(`${modulePath}/tools/searchTool.js`);
|
|
15
|
-
const {
|
|
15
|
+
const { iaskToolDefinition, iaskToolHandler } = await import(`${modulePath}/tools/iaskTool.js`);
|
|
16
16
|
|
|
17
17
|
// Create the MCP server
|
|
18
18
|
const server = new Server({
|
|
19
19
|
id: 'ddg-search-mcp',
|
|
20
|
-
name: 'DuckDuckGo &
|
|
21
|
-
description: 'A Model Context Protocol server for web search using DuckDuckGo and
|
|
22
|
-
version: '1.1.
|
|
20
|
+
name: 'DuckDuckGo & IAsk AI Search MCP',
|
|
21
|
+
description: 'A Model Context Protocol server for web search using DuckDuckGo and IAsk AI',
|
|
22
|
+
version: '1.1.4'
|
|
23
23
|
}, {
|
|
24
24
|
capabilities: {
|
|
25
25
|
tools: {
|
|
@@ -31,7 +31,7 @@ async function startServer() {
|
|
|
31
31
|
// Global variable to track available tools
|
|
32
32
|
let availableTools = [
|
|
33
33
|
searchToolDefinition,
|
|
34
|
-
|
|
34
|
+
iaskToolDefinition
|
|
35
35
|
];
|
|
36
36
|
|
|
37
37
|
// Define available tools
|
|
@@ -54,7 +54,7 @@ async function startServer() {
|
|
|
54
54
|
const { name, arguments: args } = request.params;
|
|
55
55
|
|
|
56
56
|
// Validate tool name
|
|
57
|
-
const validTools = ['web-search', '
|
|
57
|
+
const validTools = ['web-search', 'iask-search'];
|
|
58
58
|
if (!validTools.includes(name)) {
|
|
59
59
|
throw new Error(`Unknown tool: ${name}`);
|
|
60
60
|
}
|
|
@@ -64,8 +64,8 @@ async function startServer() {
|
|
|
64
64
|
case 'web-search':
|
|
65
65
|
return await searchToolHandler(args);
|
|
66
66
|
|
|
67
|
-
case '
|
|
68
|
-
return await
|
|
67
|
+
case 'iask-search':
|
|
68
|
+
return await iaskToolHandler(args);
|
|
69
69
|
|
|
70
70
|
default:
|
|
71
71
|
throw new Error(`Tool not found: ${name}`);
|
|
@@ -87,7 +87,7 @@ async function startServer() {
|
|
|
87
87
|
}); // Display promotional message
|
|
88
88
|
console.error('\n\x1b[36m╔════════════════════════════════════════════════════════════╗');
|
|
89
89
|
console.error('║ ║');
|
|
90
|
-
console.error('║ \x1b[1m\x1b[31mDuckDuckGo &
|
|
90
|
+
console.error('║ \x1b[1m\x1b[31mDuckDuckGo & IAsk AI Search MCP\x1b[0m\x1b[36m by \x1b[1m\x1b[33m@OEvortex\x1b[0m\x1b[36m ║');
|
|
91
91
|
console.error('║ ║');
|
|
92
92
|
console.error('║ \x1b[0m👉 Subscribe to \x1b[1m\x1b[37myoutube.com/@OEvortex\x1b[0m\x1b[36m for more tools! ║');
|
|
93
93
|
console.error('║ ║');
|
|
@@ -96,7 +96,7 @@ async function startServer() {
|
|
|
96
96
|
// Start the server with stdio transport
|
|
97
97
|
const transport = new StdioServerTransport();
|
|
98
98
|
await server.connect(transport);
|
|
99
|
-
console.error('DuckDuckGo &
|
|
99
|
+
console.error('DuckDuckGo & IAsk AI Search MCP server started and listening on stdio');
|
|
100
100
|
} catch (error) {
|
|
101
101
|
console.error('Failed to start server:', error);
|
|
102
102
|
process.exit(1);
|
|
@@ -110,7 +110,7 @@ const versionFlag = args.includes('--version') || args.includes('-v');
|
|
|
110
110
|
|
|
111
111
|
if (helpFlag) {
|
|
112
112
|
console.log(`
|
|
113
|
-
DuckDuckGo &
|
|
113
|
+
DuckDuckGo & IAsk AI Search MCP - A Model Context Protocol server for web search
|
|
114
114
|
|
|
115
115
|
Usage:
|
|
116
116
|
npx -y @oevortex/ddg_search@latest [options]
|
|
@@ -121,7 +121,7 @@ Options:
|
|
|
121
121
|
|
|
122
122
|
This MCP server provides the following tools:
|
|
123
123
|
- web-search: Search the web using DuckDuckGo
|
|
124
|
-
-
|
|
124
|
+
- iask-search: Search using IAsk AI for AI-generated responses
|
|
125
125
|
|
|
126
126
|
Created by @OEvortex
|
|
127
127
|
Subscribe to youtube.com/@OEvortex for more tools and tutorials!
|
|
@@ -139,7 +139,7 @@ if (versionFlag) {
|
|
|
139
139
|
const packageJson = JSON.parse(
|
|
140
140
|
await readFile(new URL('../package.json', import.meta.url), 'utf8')
|
|
141
141
|
);
|
|
142
|
-
console.log(`DuckDuckGo &
|
|
142
|
+
console.log(`DuckDuckGo & IAsk AI Search MCP v${packageJson.version}\nCreated by @OEvortex - Subscribe to youtube.com/@OEvortex!`);
|
|
143
143
|
process.exit(0);
|
|
144
144
|
} catch (err) {
|
|
145
145
|
console.error('Error reading version information:', err);
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@oevortex/ddg_search","version":"1.1.
|
|
1
|
+
{"name":"@oevortex/ddg_search","version":"1.1.5","description":"A Model Context Protocol server for web search using DuckDuckGo and IAsk AI","main":"src/index.js","module":"src/index.ts","exports":{".":{"import":"./src/index.js","default":"./src/index.js"}},"bin":{"ddg-search-mcp":"bin/cli.js","oevortex-ddg-search":"bin/cli.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","start":"node bin/cli.js","prepublishOnly":"npm run lint","lint":"echo \"No linting configured\"","build":"npx @smithery/cli build","dev":"npx @smithery/cli dev"},"publishConfig":{"access":"public"},"keywords":["mcp","model-context-protocol","duckduckgo","iask","search","web-search","ai-search","claude","ai","llm"],"author":"OEvortex","license":"Apache-2.0","type":"module","dependencies":{"@modelcontextprotocol/sdk":"^1.17.4","axios":"^1.8.4","cheerio":"^1.0.0","jsdom":"^26.1.0","smithery":"^0.5.2","turndown":"^7.2.2","uuid":"^9.0.1","ws":"^8.18.3"},"devDependencies":{"@types/node":"^24.3.0","tsx":"^4.20.4","typescript":"^5.9.2"}}
|