Skip to content

Commit

Permalink
refactor: clean up code formatting and update package version to 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
polRk committed Nov 25, 2024
1 parent b4c727c commit f5be3b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 35 deletions.
32 changes: 2 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/brave-search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
ListToolsRequestSchema,
Tool,
} from "@modelcontextprotocol/sdk/types.js";
import fetch from "node-fetch";

const WEB_SEARCH_TOOL: Tool = {
name: "brave_web_search",
Expand Down Expand Up @@ -104,7 +103,7 @@ function checkRateLimit() {
requestCount.lastReset = now;
}
if (requestCount.second >= RATE_LIMIT.perSecond ||
requestCount.month >= RATE_LIMIT.perMonth) {
requestCount.month >= RATE_LIMIT.perMonth) {
throw new Error('Rate limit exceeded');
}
requestCount.second++;
Expand Down
5 changes: 2 additions & 3 deletions src/brave-search/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelcontextprotocol/server-brave-search",
"version": "0.5.1",
"version": "0.5.2",
"description": "MCP server for Brave Search API integration",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
Expand All @@ -19,8 +19,7 @@
"watch": "tsc --watch"
},
"dependencies": {
"@modelcontextprotocol/sdk": "0.5.0",
"node-fetch": "^3.3.2"
"@modelcontextprotocol/sdk": "0.5.0"
},
"devDependencies": {
"@types/node": "^20.10.0",
Expand Down

0 comments on commit f5be3b7

Please sign in to comment.