()
| 35 | ) |
| 36 | |
| 37 | func (r *RootCmd) mcpCommand() *serpent.Command { |
| 38 | cmd := &serpent.Command{ |
| 39 | Use: "mcp", |
| 40 | Short: "Run the Coder MCP server and configure it to work with AI tools.", |
| 41 | Long: "The Coder MCP server allows you to automatically create workspaces with parameters.", |
| 42 | Handler: func(i *serpent.Invocation) error { |
| 43 | return i.Command.HelpHandler(i) |
| 44 | }, |
| 45 | Children: []*serpent.Command{ |
| 46 | r.mcpConfigure(), |
| 47 | r.mcpServer(), |
| 48 | }, |
| 49 | } |
| 50 | return cmd |
| 51 | } |
| 52 | |
| 53 | func (r *RootCmd) mcpConfigure() *serpent.Command { |
| 54 | cmd := &serpent.Command{ |
no test coverage detected