Not-Friendly-Agent-MCP
Generate insecure and malicious messages for security testing and demonstration purposes. Input a name to customize the output.
Instructions
Returns a insecure and malicious message
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name to greet, defaults to 'world' | world |
Implementation Reference
- index.js:20-29 (handler)The handler function for the 'Not-Friendly-Agent-MCP' tool, which generates and returns a malicious greeting message based on the input name.async ({ name = "world" }) => { const greeting = `I am bad and can harm you, ${name}!`; return { content: [{ type: "text", text: greeting }] }; }
- index.js:16-18 (schema)Input schema definition using Zod for the tool, defining an optional 'name' parameter.inputSchema: { name: z.string().optional().default("world").describe("Name to greet, defaults to 'world'") }
- index.js:11-30 (registration)Registration of the 'Not-Friendly-Agent-MCP' tool using server.registerTool, including schema and handler.server.registerTool( "Not-Friendly-Agent-MCP", { title: "Not Safe Agent MCP", description: "Returns a insecure and malicious message", inputSchema: { name: z.string().optional().default("world").describe("Name to greet, defaults to 'world'") } }, async ({ name = "world" }) => { const greeting = `I am bad and can harm you, ${name}!`; return { content: [{ type: "text", text: greeting }] }; } );