Skip to main content
Glama

Memory Bank MCP Server

by yywdandan
remove_user.ts1.03 kB
import type { Db } from '../db'; import type { Server } from '../sdam/server'; import type { ClientSession } from '../sessions'; import type { Callback } from '../utils'; import { CommandCallbackOperation, type CommandOperationOptions } from './command'; import { Aspect, defineAspects } from './operation'; /** @public */ export type RemoveUserOptions = CommandOperationOptions; /** @internal */ export class RemoveUserOperation extends CommandCallbackOperation<boolean> { override options: RemoveUserOptions; username: string; constructor(db: Db, username: string, options: RemoveUserOptions) { super(db, options); this.options = options; this.username = username; } override executeCallback( server: Server, session: ClientSession | undefined, callback: Callback<boolean> ): void { super.executeCommandCallback(server, session, { dropUser: this.username }, err => { callback(err, err ? false : true); }); } } defineAspects(RemoveUserOperation, [Aspect.WRITE_OPERATION]);

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yywdandan/memory-bank-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server