implement smithery.ai changes (#66)
- Modifies project slightly to support distribution via smithery.ai. - Resolves https://github.com/brave/brave-search-mcp-server/issues/65 - Overrides outdated formdata-node
This commit is contained in:
1 parent
943b176f2a
commit
398e88ffb8
7 files changed
+2414
-1
No files matched your search
+10
-1
@@ -3,7 +3,16 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
||||
import { SetLevelRequestSchema } from '@modelcontextprotocol/sdk/types.js';
|
||||
import pkg from '../package.json' with { type: 'json' };
|
||||
|
||||
export default function createMcpServer(): McpServer {
|
||||
import { type SmitheryConfig, setOptions } from './config.js';
|
||||
export { configSchema } from './config.js';
|
||||
|
||||
type CreateMcpServerOptions = {
|
||||
config: SmitheryConfig;
|
||||
};
|
||||
|
||||
export default function createMcpServer(options?: CreateMcpServerOptions): McpServer {
|
||||
if (options?.config) setOptions(options.config);
|
||||
|
||||
const mcpServer = new McpServer(
|
||||
{
|
||||
version: pkg.version,
|
||||
|
||||
Reference in new issue
Block a user