delete_persona
Remove a specific persona profile from the Persona MCP server to manage your available expert personas and optimize system resources.
Instructions
페르소나 프로필을 삭제합니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 삭제할 페르소나 이름 |
Implementation Reference
- src/index.ts:136-140 (handler)The core handler function that performs the actual deletion of the persona file after validating the name and constructing the file path.async function deletePersona(name: string): Promise<void> { const validatedName = validatePersonaName(name); const filePath = path.join(PERSONA_DIR, `${validatedName}.txt`); await fs.unlink(filePath); }
- src/validation.ts:30-32 (schema)Zod schema defining the input structure for the delete_persona tool, requiring a validated persona name.export const deletePersonaSchema = z.object({ name: personaNameSchema, });
- src/index.ts:359-372 (registration)Tool registration in the ListTools handler, specifying the name, description, and input schema for delete_persona.{ name: 'delete_persona', description: '페르소나 프로필을 삭제합니다', inputSchema: { type: 'object', properties: { name: { type: 'string', description: '삭제할 페르소나 이름', }, }, required: ['name'], }, },
- src/index.ts:485-496 (handler)Dispatcher case in the CallTool handler that validates the input using the schema and invokes the deletePersona handler function.case 'delete_persona': { const validated = deletePersonaSchema.parse(args); await deletePersona(validated.name); return { content: [ { type: 'text', text: `페르소나 "${validated.name}"이(가) 삭제되었습니다.`, }, ], }; }