Refactor configuration and API; added endpoints for image, video, and news.

This commit is contained in:
Sampson committed 2025-07-02 17:04:22 -05:00
1 parent 7789f05087
commit 8f942b9eee
29 files changed
+2867 -490

No files matched your search

+22 -29
View File
@@ -1,29 +1,22 @@
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import tools from "./tools/index.js";
export const server = new McpServer(
{
version: "0.1.0",
name: "brave-search-mcp-server",
title: "Brave Search MCP Server",
},
{
capabilities: {
logging: {},
tools: { listChanged: false },
},
instructions:
"Use this server to search the Web for various types of data " +
"via the Brave Search API.",
}
);
for (const tool of Object.values(tools)) {
server.tool(
tool.name,
tool.description,
tool.inputSchema,
tool.annotations,
tool.execute
);
}
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import tools from './tools/index.js';
export const server = new McpServer(
{
version: '0.1.0',
name: 'brave-search-mcp-server',
title: 'Brave Search MCP Server',
},
{
capabilities: {
logging: {},
tools: { listChanged: false },
},
instructions:
'Use this server to search the Web for various types of data ' + 'via the Brave Search API.',
}
);
for (const tool of Object.values(tools)) {
server.tool(tool.name, tool.description, tool.inputSchema, tool.annotations, tool.execute);
}