run_augment_prompt
Send prompts to a local Augment coding agent for AI-assisted development tasks within the Claude AI development pipeline.
Instructions
Send a prompt to the local Augment coding agent
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes |
Implementation Reference
- local-mcp-server.ts:150-159 (handler)The handler function for the 'run_augment_prompt' tool. It writes the provided prompt to './augment-prompt.txt' as a demo implementation for sending to a local Augment coding agent, returning success or failure message.async ({ prompt }) => { // You need to provide a local API endpoint, CLI, or plugin to accept this // For demo: write to a file for augment to pick up, or invoke augment via CLI/API try { fs.writeFileSync('./augment-prompt.txt', prompt, 'utf8'); return { content: [{ type: 'text', text: 'Prompt sent to Augment.' }] }; } catch (err: any) { return { content: [{ type: 'text', text: 'Failed to send prompt to Augment.' }] }; } }
- local-mcp-server.ts:149-149 (schema)Input schema for the tool, defining a single 'prompt' parameter as a string using Zod.{ prompt: z.string() },
- local-mcp-server.ts:146-160 (registration)Registration of the 'run_augment_prompt' tool on the MCP server using server.tool(), including name, description, schema, and handler.server.tool( 'run_augment_prompt', 'Send a prompt to the local Augment coding agent', { prompt: z.string() }, async ({ prompt }) => { // You need to provide a local API endpoint, CLI, or plugin to accept this // For demo: write to a file for augment to pick up, or invoke augment via CLI/API try { fs.writeFileSync('./augment-prompt.txt', prompt, 'utf8'); return { content: [{ type: 'text', text: 'Prompt sent to Augment.' }] }; } catch (err: any) { return { content: [{ type: 'text', text: 'Failed to send prompt to Augment.' }] }; } } );