Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
3c93143
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
5ec1163
Fixed warning
Jul 27, 2025
3bf5f55
Fixed errors
a-25 Jul 27, 2025
1d87978
Added mcp server wrapper
a-25 Jul 27, 2025
8c0a227
Revised gitignore file
a-25 Jul 27, 2025
ed5c651
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
d48b946
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
bb402fd
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
04902e5
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
c31732f
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
5fe8385
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
e7a3f4b
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
da27644
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
ae4d23d
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
7bb53f2
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
17d216b
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
b3bffdb
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
4f842f8
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
5ef2758
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
3f54621
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
40e2440
Fixed parsing test errors
a-25 Jul 27, 2025
21bd61d
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
6351457
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
e6aad25
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
1fe39ce
Fix: auto-applied test failure resolutions
a-25 Jul 27, 2025
99e08f2
Extracted separate version for copilot suggestions
a-25 Jul 27, 2025
27b955d
Added MCP support, draft
a-25 Jul 27, 2025
8d27f17
Fixed MCP mode, working
a-25 Jul 28, 2025
5ed316e
Added errors output
a-25 Jul 30, 2025
3e7515b
Fix: auto-applied test failure resolutions
a-25 Jul 30, 2025
ceb8445
Added ability to fix build errors for tests
a-25 Jul 30, 2025
ee3592a
Added tests support
a-25 Aug 1, 2025
a2c0682
Fix: auto-applied SwiftLint corrections
a-25 Aug 1, 2025
0d5ff07
Fix: auto-applied SwiftLint corrections
a-25 Aug 1, 2025
a178377
Fix: auto-applied SwiftLint corrections
a-25 Aug 1, 2025
df9c60a
Fix: auto-applied SwiftLint corrections
a-25 Aug 1, 2025
e5b59d4
Fixed build
a-25 Aug 6, 2025
60706eb
Fixed tests
a-25 Aug 6, 2025
14984e2
Fix: auto-applied test failure resolutions
a-25 Aug 12, 2025
a315b6e
Fixed test error handling, added gitignore for artifacts
a-25 Aug 12, 2025
c019646
Fix: auto-applied test failure resolutions
a-25 Aug 12, 2025
049c07a
Fix: auto-applied test failure resolutions
a-25 Aug 12, 2025
1c365c5
Put all generated artifacts to separate folders
a-25 Aug 14, 2025
3bc808c
cleanup
a-25 Aug 14, 2025
fa4abe8
cleanup
a-25 Aug 14, 2025
102a3f0
Removed unneeded files, migrated all generic objects to interfaces
a-25 Aug 14, 2025
f24bb45
Cleaned test data
a-25 Aug 14, 2025
e825bc8
Removed dead code and extra packages
a-25 Aug 14, 2025
1257fcb
Addressed review comments
a-25 Aug 14, 2025
e6b58eb
cleanup
a-25 Aug 14, 2025
7c9e110
Update src/utils/spawnAndCollectOutput.ts
a-25 Aug 16, 2025
86c57b6
Update package.json
a-25 Aug 16, 2025
0801288
Update src/core/testRunner.ts
a-25 Aug 16, 2025
0f68009
Addressed code review comments
a-25 Aug 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 37 additions & 53 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Test coverage reports
coverage/
.nyc_output/

# Test runner cache
.cache/

# Compiled test output (if using TypeScript)
*.tsbuildinfo

# Logs
*.log
# Logs
logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
Expand All @@ -10,73 +22,42 @@ lerna-debug.log*
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
pids/
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
# Coverage directories
coverage/
*.lcov
.nyc_output/

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# Build output
build/
dist/

# TypeScript cache
# TypeScript
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity
# Node modules
node_modules/

# dotenv environment variable files
# Environment files
.env
.env.*
!.env.example

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# IDE and editor folders
.vscode/
.idea/

# Next.js build output
.next
out
# Misc
*.tgz
.cache/
.parcel-cache/
.next/
out/
.nuxt/

# Nuxt.js build / generate output
.nuxt
Expand Down Expand Up @@ -137,3 +118,6 @@ dist
# Vite logs files
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

# artifacts
*.xcresult
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,38 @@
# ios-mcp-code-quality-server
# ios-mcp-code-quality-server

# MCP Server for iOS Code Quality (Local Deployment)

## Local Setup Instructions

1. **Install dependencies:**
```sh
npm install
```

2. **Start the server:**
```sh
npm start
# or
node dist/index.js
```

3. **Configure your agent (e.g., Copilot):**
- Set the MCP server endpoint to `http://localhost:3000` in the agent's settings.

4. **Run the agent as usual.**
- The agent will delegate supported functions to your MCP server.

## Notes
- No cloud hosting required; all data stays on your machine.
- Make sure your MCP server is running before starting the agent.
- For troubleshooting, check logs in the terminal and ensure all required environment variables are set.

## Security
- Do not share your local MCP server endpoint or credentials.

## Supported Endpoints
- `/run-task` (POST): Run a code quality or test automation task.
- `/status` (GET): Check server status.

## Error Handling
- The server will log and return clear error messages for missing environment variables or failed requests.
Empty file added jest.config.cjs
Empty file.
Empty file added jest.config.js
Empty file.
22 changes: 22 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import presets from 'ts-jest/presets/index.js';
const { defaultsESM } = presets;

export default {
...defaultsESM,
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
extensionsToTreatAsEsm: ['.ts', '.mts'],
globals: {
'ts-jest': {
useESM: true
}
},
moduleNameMapper: {
'^(\.{1,2}/.*)\\.js$': '$1'
},
transform: {},
testMatch: ['**/__tests__/**/*.test.ts', '**/__tests__/**/*.test.mts'],
transformIgnorePatterns: [
'/node_modules/(?!(p-queue|eventemitter3)/)'
],
};
Copy link

Copilot AI Aug 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Jest configuration file exists but the project uses Vitest as indicated by vitest.config.ts and package.json scripts. Consider removing this file to avoid confusion.

Suggested change
};

Copilot uses AI. Check for mistakes.
Loading