delete_persona
Remove a persona profile from the Persona MCP server to manage expert personas and optimize system resources.
Instructions
페르소나 프로필을 삭제합니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 삭제할 페르소나 이름 |
Implementation Reference
- src/index.ts:359-372 (registration)Registration of the 'delete_persona' tool in the ListToolsRequestHandler, defining its name, description, and input schema.{ name: 'delete_persona', description: '페르소나 프로필을 삭제합니다', inputSchema: { type: 'object', properties: { name: { type: 'string', description: '삭제할 페르소나 이름', }, }, required: ['name'], }, },
- src/validation.ts:30-32 (schema)Zod schema for validating the input arguments of the delete_persona tool, requiring a valid persona name.export const deletePersonaSchema = z.object({ name: personaNameSchema, });
- src/index.ts:485-496 (handler)Handler logic in the CallToolRequestHandler switch statement that validates arguments using deletePersonaSchema, calls deletePersona, and returns success message.case 'delete_persona': { const validated = deletePersonaSchema.parse(args); await deletePersona(validated.name); return { content: [ { type: 'text', text: `페르소나 "${validated.name}"이(가) 삭제되었습니다.`, }, ], }; }
- src/index.ts:136-140 (helper)Core helper function that validates the persona name and deletes the corresponding .txt file from the local persona directory.async function deletePersona(name: string): Promise<void> { const validatedName = validatePersonaName(name); const filePath = path.join(PERSONA_DIR, `${validatedName}.txt`); await fs.unlink(filePath); }