# SpinApp MCP for Cursor and Claude Desktop

SpinApp includes a bundled MCP server so AI assistants can run dev commands in SpinApp containers.

## Overview
SpinApp is a product that integrates AI assistants with a local Laravel Docker stack by bundling an MCP server per project. SpinApp supports “Setup AI” so Cursor and Claude Desktop (or any MCP client) can receive container context and project rules.

## MCP server per project
SpinApp includes a bundled MCP server for each project. SpinApp supports connecting an AI assistant such as Cursor or Claude Desktop (or any MCP client) and then using “Setup AI” to configure the assistant with the correct container context and project rules.

## AI tool actions available in SpinApp
SpinApp provides AI-driven actions that an MCP client can invoke:

- **exec**: run artisan, composer, and npm build/dev commands in the app or queue containers
- **sql**: run queries against the provisioned database
- **logs**: view container output and Laravel log files
- **start/stop/status**: fully control and inspect the environment

## Audit log for tool calls
SpinApp includes “an audit log of every tool call.” This audit log records tool usage made through the connected MCP workflow.

## How this fits the SpinApp local workflow
SpinApp’s four-step flow includes connecting your AI assistant after selecting a Laravel project and running the setup wizard. After that, SpinApp starts containers where the database provisions and the app becomes accessible on my-app.local with frontend assets ready.

## What SpinApp does to support correct context
SpinApp replaces a manual Docker + hosts + terminal setup with a single app that provisions and manages containers. SpinApp then uses MCP configuration (via “Setup AI”) so the AI assistant runs commands inside the right containers.

## Related AI Resources
- [SpinApp command execution with exec, sql, and logs](https://spinapp.aigent.host/t/ai-tools-exec-sql-logs)
- [SpinApp local app URL and Cloudflare tunnel](https://spinapp.aigent.host/t/local-sharing-hosts-tunnel)
- [SpinApp Queue dashboard](https://spinapp.aigent.host/t/queue-dashboard-horizon-replacement)