@brave/brave-search-mcp-server 2.0.80 → 2.0.82
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 +60 -18
- package/dist/BraveAPI/index.js +37 -15
- package/dist/config.js +18 -44
- package/dist/server.js +1 -5
- package/dist/tools/index.js +4 -0
- package/dist/tools/llm_context/index.js +51 -0
- package/dist/tools/llm_context/schemas/input.js +228 -0
- package/dist/tools/llm_context/schemas/output.js +66 -0
- package/dist/tools/local/index.js +1 -1
- package/dist/tools/news/index.js +1 -1
- package/dist/tools/news/params.js +8 -4
- package/dist/tools/place_search/index.js +52 -0
- package/dist/tools/place_search/schemas/input.js +216 -0
- package/dist/tools/place_search/schemas/output.js +249 -0
- package/dist/tools/summarizer/index.js +1 -1
- package/dist/tools/videos/index.js +1 -1
- package/dist/tools/videos/params.js +6 -1
- package/dist/tools/web/index.js +1 -1
- package/dist/tools/web/params.js +8 -3
- package/package.json +3 -9
package/dist/tools/web/index.js
CHANGED
|
@@ -19,7 +19,7 @@ export const description = `
|
|
|
19
19
|
Returns a JSON list of web results with title, description, and URL.
|
|
20
20
|
|
|
21
21
|
When the "results_filter" parameter is empty, JSON results may also contain FAQ, Discussions, News, and Video results.
|
|
22
|
-
|
|
22
|
+
`.trim();
|
|
23
23
|
export const execute = async (params) => {
|
|
24
24
|
const response = { content: [], isError: false };
|
|
25
25
|
const { web, faq, discussions, news, videos, summarizer } = await API.issueRequest('web', params);
|
package/dist/tools/web/params.js
CHANGED
|
@@ -168,7 +168,12 @@ export const params = z.object({
|
|
|
168
168
|
.describe("Filters search results for adult content. The following values are supported: 'off' - No filtering. 'moderate' - Filters explicit content (e.g., images and videos), but allows adult domains in search results. 'strict' - Drops all adult content from search results. The default value is 'moderate'.")
|
|
169
169
|
.optional(),
|
|
170
170
|
freshness: z
|
|
171
|
-
.
|
|
171
|
+
.union([
|
|
172
|
+
z.enum(['pd', 'pw', 'pm', 'py']),
|
|
173
|
+
z
|
|
174
|
+
.string()
|
|
175
|
+
.regex(/^\d{4}-\d{2}-\d{2}to\d{4}-\d{2}-\d{2}$/, "Use 'pd', 'pw', 'pm', or 'py' for a relative discovery window, or a custom range as YYYY-MM-DDtoYYYY-MM-DD (e.g. 2022-04-01to2022-07-30)."),
|
|
176
|
+
])
|
|
172
177
|
.describe("Filters search results by when they were discovered. The following values are supported: 'pd' - Discovered within the last 24 hours. 'pw' - Discovered within the last 7 days. 'pm' - Discovered within the last 31 days. 'py' - Discovered within the last 365 days. 'YYYY-MM-DDtoYYYY-MM-DD' - Timeframe is also supported by specifying the date range e.g. 2022-04-01to2022-07-30.")
|
|
173
178
|
.optional(),
|
|
174
179
|
text_decorations: z
|
|
@@ -198,8 +203,8 @@ export const params = z.object({
|
|
|
198
203
|
.describe("Result filter (default ['web', 'query'])")
|
|
199
204
|
.optional(),
|
|
200
205
|
goggles: z
|
|
201
|
-
.array(z.string())
|
|
202
|
-
.describe("Goggles act as a custom re-ranking on top of Brave's search index. The parameter supports both a url where the Goggle is hosted or the definition of the Goggle. For more details, refer to the Goggles repository (i.e., https://github.com/brave/goggles-quickstart).")
|
|
206
|
+
.union([z.string(), z.array(z.string())])
|
|
207
|
+
.describe("Goggles act as a custom re-ranking on top of Brave's search index. The parameter supports both a url where the Goggle is hosted or the definition of the Goggle. Multiple goggle URLs and/or definitions can be provided in an array. For more details, refer to the Goggles repository (i.e., https://github.com/brave/goggles-quickstart).")
|
|
203
208
|
.optional(),
|
|
204
209
|
units: z
|
|
205
210
|
.union([z.literal('metric'), z.literal('imperial')])
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brave/brave-search-mcp-server",
|
|
3
3
|
"mcpName": "io.github.brave/brave-search-mcp-server",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.82",
|
|
5
5
|
"description": "Brave Search MCP Server: web results, images, videos, rich results, AI summaries, and more.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"api",
|
|
@@ -27,8 +27,6 @@
|
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "tsc && shx chmod +x dist/*.js",
|
|
30
|
-
"smithery:build": "smithery build",
|
|
31
|
-
"smithery:dev": "smithery dev",
|
|
32
30
|
"prepare": "npm run format && npm run build",
|
|
33
31
|
"watch": "tsc --watch",
|
|
34
32
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
@@ -37,7 +35,7 @@
|
|
|
37
35
|
"inspector:http": "npx @modelcontextprotocol/inspector --transport http"
|
|
38
36
|
},
|
|
39
37
|
"dependencies": {
|
|
40
|
-
"@modelcontextprotocol/sdk": "1.
|
|
38
|
+
"@modelcontextprotocol/sdk": "1.29.0",
|
|
41
39
|
"commander": "14.0.3",
|
|
42
40
|
"dotenv": "17.3.1",
|
|
43
41
|
"express": "5.2.1",
|
|
@@ -45,15 +43,11 @@
|
|
|
45
43
|
},
|
|
46
44
|
"devDependencies": {
|
|
47
45
|
"@types/express": "5.0.6",
|
|
48
|
-
"@smithery/cli": "2.2.1",
|
|
49
46
|
"@types/node": "24.10.13",
|
|
50
47
|
"prettier": "3.8.1",
|
|
48
|
+
"semver": "7.7.3",
|
|
51
49
|
"shx": "0.4.0",
|
|
52
50
|
"tsx": "4.21.0",
|
|
53
51
|
"typescript": "5.9.3"
|
|
54
|
-
},
|
|
55
|
-
"overrides": {
|
|
56
|
-
"formdata-node": "6.0.3",
|
|
57
|
-
"tmp": "0.2.5"
|
|
58
52
|
}
|
|
59
53
|
}
|