Overview
Thetuist mcp command provides integration with AI tools through the Model Context Protocol (MCP). It allows AI assistants to interact with your Tuist project directly, enabling intelligent code generation, project analysis, and automation.
Usage
Subcommands
tuist mcp start
Starts the Tuist MCP server to interface LLMs with your local development environment.
tuist mcp setup
Configures AI tools to use Tuist’s MCP server.
tuist mcp setup claude- Configure Claude desktop apptuist mcp setup claude-code- Configure Claude Codetuist mcp setup cursor- Configure Cursor IDEtuist mcp setup zed- Configure Zed editortuist mcp setup vscode- Configure VS Code
Setup commands
tuist mcp setup claude
Configures the Claude desktop application to use Tuist’s MCP server.
tuist mcp setup claude-code
Configures Claude Code to use Tuist’s MCP server.
tuist mcp setup cursor
Configures Cursor IDE to use Tuist’s MCP server.
Options
The path to the directory where the configuration should be created.
Short form of
--path.Configure Cursor globally instead of locally.
Examples
tuist mcp setup zed
Configures Zed editor to use Tuist’s MCP server.
Options
The path to the directory where the configuration should be created.
Short form of
--path.Configure Zed globally instead of locally.
Examples
tuist mcp setup vscode
Configures VS Code to use Tuist’s MCP server.
Options
The path to the directory where the configuration should be created.
Short form of
--path.Configure VS Code globally instead of locally.
Examples
What is MCP?
The Model Context Protocol (MCP) is an open protocol that enables AI assistants to interact with development tools and environments. It provides:- Context awareness: AI tools understand your project structure
- Tool integration: Execute Tuist commands through AI interfaces
- Code generation: Generate Tuist manifests and configurations
- Project analysis: Analyze dependencies and project health
MCP capabilities
When connected via MCP, AI tools can:- Read project structure: Understand your Tuist project layout
- Generate manifests: Create or modify
Project.swiftfiles - Run commands: Execute Tuist commands on your behalf
- Analyze dependencies: Review and suggest dependency improvements
- Debug issues: Help troubleshoot Tuist configuration problems
Configuration scope
MCP setup can be configured at two levels:Local (project-specific)
Configures MCP for a specific project directory:.cursor/ directory.
Global (system-wide)
Configures MCP globally for all projects:Supported AI tools
Tuist MCP integration works with:- Claude: Anthropic’s Claude desktop app
- Claude Code: Claude’s code-focused interface
- Cursor: AI-first code editor
- Zed: Collaborative code editor with AI features
- VS Code: With MCP-compatible extensions
Getting started
- Install your preferred AI tool (Claude, Cursor, etc.)
- Run the setup command:
- Restart your AI tool to load the new configuration
- Start using AI features with Tuist context
Example workflows
Generate a new target
Ask your AI assistant:“Create a new framework target called NetworkingKit with dependencies on Alamofire”The AI uses MCP to generate the appropriate
Project.swift configuration.
Analyze project dependencies
Ask your AI assistant:“Show me all external dependencies and suggest ways to reduce them”The AI uses MCP to analyze your project’s dependency graph.
Troubleshoot build issues
Ask your AI assistant:“My build is failing with a linker error. What’s wrong?”The AI uses MCP to inspect your project configuration and suggest fixes.
Troubleshooting
MCP server not starting
- Verify Tuist is installed:
tuist version - Check the AI tool’s logs for error messages
- Re-run the setup command:
tuist mcp setup <tool>
AI tool not recognizing Tuist context
- Restart your AI tool after running setup
- Verify the configuration file was created
- Check that the AI tool has MCP support enabled
Permission issues
- Ensure you have write access to configuration directories
- Use
--globalflag if local setup fails - Check file permissions on created configuration files