Files
brave-search-mcp-server/package.json
T
Sampson 50cb919200 chore: remove dead code and fix HTTP port-conflict startup (#351)
* chore: remove dead code and fix HTTP port-conflict startup

- drop unused helpers, constants, schemas, and duplicated types
- exit non-zero when the HTTP port is already in use
- add stdio and port-conflict tests
- clean dist on build, add serve:http, fix inspector:http for Inspector v2

* test: harden port-conflict test; drop unreachable listen guard

- pin the child's host so BRAVE_MCP_HOST cannot bypass the conflict
- bound the exit wait and reject spawn errors
- remove the address() guard; 'listening' does not fire on a failed bind
2026-09-17 07:45:23 -07:00

57 lines
1.7 KiB
JSON

{
"name": "@brave/brave-search-mcp-server",
"mcpName": "io.github.brave/brave-search-mcp-server",
"version": "2.1.3",
"description": "Brave Search MCP Server: web results, images, videos, rich results, AI summaries, and more.",
"keywords": [
"api",
"brave",
"mcp",
"search"
],
"license": "MIT",
"author": "Brave Software, Inc. (https://brave.com)",
"homepage": "https://github.com/brave/brave-search-mcp-server",
"bugs": "https://github.com/brave/brave-search-mcp-server/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/brave/brave-search-mcp-server.git"
},
"type": "module",
"module": "dist/server.js",
"bin": {
"brave-search-mcp-server": "dist/index.js"
},
"files": [
"dist"
],
"scripts": {
"build": "shx rm -rf dist && tsc && shx chmod +x dist/*.js",
"prepare": "npm run format && npm run build",
"watch": "tsc --watch",
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\"",
"test": "node --import tsx --test \"src/**/*.test.ts\"",
"serve:http": "npm run build && node dist/index.js --transport http",
"inspector": "npx @modelcontextprotocol/inspector",
"inspector:http": "npx @modelcontextprotocol/inspector --transport http --server-url http://127.0.0.1:8080/mcp"
},
"dependencies": {
"@modelcontextprotocol/sdk": "1.30.0",
"commander": "14.0.3",
"dotenv": "17.3.1",
"express": "5.2.1",
"zod": "4.3.6"
},
"devDependencies": {
"@types/express": "5.0.6",
"@types/node": "24.10.13",
"ajv": "8.20.0",
"prettier": "3.8.1",
"semver": "7.7.3",
"shx": "0.4.0",
"tsx": "4.22.4",
"typescript": "5.9.3"
}
}