add update and delete mutations

This commit is contained in:
Dustin Healy 2025-06-27 12:30:38 -07:00
parent 568ec2f7d5
commit 5a7bf0b35f
8 changed files with 114 additions and 11 deletions

View file

@ -2,7 +2,7 @@
export * from './mcp/manager';
export * from './mcp/oauth';
export * from './mcp/auth';
export * from './mcp/add';
export * from './mcp/mcpOps';
/* Utilities */
export * from './mcp/utils';
export * from './utils';

View file

@ -1,8 +0,0 @@
import { MCP } from 'librechat-data-provider';
import { Response } from 'express';
// just log the request
export const addTool = (req: { body: MCP }, res: Response) => {
console.log(JSON.stringify(req.body, null, 2));
res.send('ok');
};

View file

@ -0,0 +1,17 @@
import { MCP } from 'librechat-data-provider';
import { Response } from 'express';
export const addTool = (req: { body: MCP }, res: Response) => {
console.log('CREATE MCP:', JSON.stringify(req.body, null, 2));
res.send('ok');
};
export const updateTool = (req: { body: MCP; params: { mcp_id: string } }, res: Response) => {
console.log('UPDATE MCP:', req.params.mcp_id, JSON.stringify(req.body, null, 2));
res.send('ok');
};
export const deleteTool = (req: { params: { mcp_id: string } }, res: Response) => {
console.log('DELETE MCP:', req.params.mcp_id);
res.send('ok');
};