Refactor configuration and API; added endpoints for image, video, and news.
This commit is contained in:
29 files changed
+2867
-490
No files matched your search
+22
-29
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user