# a-25/ios-mcp-code-quality-server [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/a-25/ios-mcp-code-quality-server  
**GitHub Stars:** 12  
**npm Downloads (last month):** 109  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/a-25-ios-mcp-code-quality-server

## Description
iOS code quality analysis and test automation server. Provides comprehensive Xcode test execution, SwiftLint integration, and detailed failure analysis. Operates in both CLI and MCP server modes for direct developer usage and AI assistant integration.

## Tools
Capabilities this server exposes over MCP:

- **Note** — Either `xcodeproj` or `xcworkspace` parameter is mandatory (at least one must be provided)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "ios-mcp-code-quality-server": {
    "command": "npx",
    "args": ["-y","ios-mcp-code-quality-server"]
  }
}
```

## Documentation

## What a-25/ios-mcp-code-quality-server does

a-25/ios-mcp-code-quality-server provides iOS test execution and Swift code-quality analysis in two modes: a command-line interface and a Model Context Protocol server. It works with Xcode projects and workspaces, invokes Xcode tests for a selected scheme, and analyzes test or build failures to produce actionable reports. Its linting workflow uses SwiftLint against a supplied list of Swift files, with optional support for a project-specific SwiftLint configuration.

The server is intended for local developer workflows, automated checks, and AI-assisted debugging. Analysis runs on the machine hosting the project and its required Apple development tools.

## How it works

The executable selects its mode based on how it is started. Supplying CLI arguments invokes commands such as `test` or `lint`; starting it without arguments launches MCP server mode. An explicit `server` command can also start the MCP endpoint.

Test runs require either an `.xcworkspace` or `.xcodeproj` path, along with a scheme. A destination can be supplied for simulator or device execution. Results can be emitted as human-readable output or JSON, and verbose logging is available for troubleshooting. Lint runs receive a comma-separated file list and may receive a SwiftLint configuration path.

In MCP mode, the process listens on a local HTTP endpoint, using port 3000 by default. AI clients send MCP requests to that endpoint and receive structured responses suitable for contextual analysis.

## Setup and configuration

The runtime requires Node.js 18 or newer. Xcode is needed for project building and testing, and an iOS Simulator or physical iOS device is needed to run tests. SwiftLint is optional and is used for lint analysis.

The package can be run directly with `npx`, installed globally with npm, or built from a repository checkout. A source setup consists of installing npm dependencies, running the build script, and starting the generated server entry point.

Server configuration is controlled through environment variables. `PORT` changes the listening port, `NODE_ENV` selects the environment mode, and `LOG_LEVEL` controls logging verbosity. The server command also accepts a port option, which can be used instead of the default port.

Example MCP endpoint configuration:

```json
{
  "mcpServers": {
    "ios-code-quality": {
      "url": "http://localhost:3000",
      "timeout": 30000
    }
  }
}
```

## Tools and capabilities

- Execute Xcode tests for a selected scheme.
- Accept either an Xcode workspace or project as the test target.
- Select a test destination, including an iOS Simulator destination.
- Analyze test failures and Xcode build errors.
- Run SwiftLint against explicitly selected Swift files.
- Load a custom SwiftLint configuration file.
- Return JSON output for scripts and CI workflows.
- Provide verbose logs for debugging command execution.

## Limitations and notes

The test workflow requires at least one of `xcodeproj` or `xcworkspace`; a scheme is also required. Xcode and an available simulator or device are prerequisites for executing tests. SwiftLint analysis depends on SwiftLint being installed. The MCP server is configured as a local HTTP service and defaults to port 3000, so clients must be able to reach that endpoint.

_Full upstream README: https://allmcps.com/mcp/a-25-ios-mcp-code-quality-server/readme_

