run_augment_prompt
Enhance development workflows by sending prompts to the Augment coding agent for AI-driven code generation and optimization within the AI Development Pipeline MCP.
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)Handler function that writes the input prompt to './augment-prompt.txt' file for the local Augment coding agent and returns a status 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:146-160 (registration)MCP server tool registration for 'run_augment_prompt', including description, Zod input schema, and inline handler function.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.' }] }; } } );
- local-mcp-server.ts:149-149 (schema)Input schema definition using Zod: requires a 'prompt' string.{ prompt: z.string() },