xcode-mcp-server 1.0.1__tar.gz → 1.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xcode_mcp_server-1.0.1 → xcode_mcp_server-1.0.4}/PKG-INFO +1 -1
- xcode_mcp_server-1.0.4/deploy.sh +9 -0
- {xcode_mcp_server-1.0.1 → xcode_mcp_server-1.0.4}/pyproject.toml +4 -1
- {xcode_mcp_server-1.0.1 → xcode_mcp_server-1.0.4}/xcode_mcp_server/__init__.py +1 -1
- {xcode_mcp_server-1.0.1 → xcode_mcp_server-1.0.4}/xcode_mcp_server/__main__.py +12 -12
- xcode_mcp_server-1.0.1/deploy.sh +0 -4
- {xcode_mcp_server-1.0.1 → xcode_mcp_server-1.0.4}/.claude/settings.local.json +0 -0
- {xcode_mcp_server-1.0.1 → xcode_mcp_server-1.0.4}/.gitignore +0 -0
- {xcode_mcp_server-1.0.1 → xcode_mcp_server-1.0.4}/README.md +0 -0
- {xcode_mcp_server-1.0.1 → xcode_mcp_server-1.0.4}/requirements.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: xcode-mcp-server
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.4
|
4
4
|
Summary: Drew's MCP server for Xcode integration
|
5
5
|
Project-URL: Homepage, https://github.com/drewster99/xcode-mcp-server
|
6
6
|
Project-URL: Repository, https://github.com/drewster99/xcode-mcp-server
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "xcode-mcp-server"
|
7
|
-
|
7
|
+
dynamic = ["version"]
|
8
8
|
description = "Drew's MCP server for Xcode integration"
|
9
9
|
readme = "README.md"
|
10
10
|
requires-python = ">=3.8"
|
@@ -31,6 +31,9 @@ dependencies = [
|
|
31
31
|
[project.scripts]
|
32
32
|
xcode-mcp-server = "xcode_mcp_server:main"
|
33
33
|
|
34
|
+
[tool.hatch.version]
|
35
|
+
path = "xcode_mcp_server/__init__.py"
|
36
|
+
|
34
37
|
[tool.uv]
|
35
38
|
dev-dependencies = []
|
36
39
|
|
@@ -38,8 +38,8 @@ def get_allowed_folders() -> Set[str]:
|
|
38
38
|
else:
|
39
39
|
print("Warning: Allowed folders was not specified.", file=sys.stderr)
|
40
40
|
print("Set XCODEMCP_ALLOWED_FOLDERS environment variable to a colon-separated list of allowed folders.", file=sys.stderr)
|
41
|
-
home = os.environ.get("HOME", "/")
|
42
|
-
print("Trying $HOME, {home}", file=sys.stderr)
|
41
|
+
home = os.environ.get("HOME", "/")
|
42
|
+
print(f"Trying $HOME, {home}", file=sys.stderr)
|
43
43
|
folder_list_str = home
|
44
44
|
|
45
45
|
# Process the list
|
@@ -276,12 +276,12 @@ def build_project(project_path: str,
|
|
276
276
|
Build the specified Xcode project or workspace.
|
277
277
|
|
278
278
|
Args:
|
279
|
-
project_path: Path to an Xcode project
|
279
|
+
project_path: Path to an Xcode project workspace or directory.
|
280
280
|
scheme: Name of the scheme to build.
|
281
281
|
|
282
282
|
Returns:
|
283
283
|
On success, returns "Build succeeded with 0 errors."
|
284
|
-
On failure, returns the first (up to)
|
284
|
+
On failure, returns the first (up to) 25 error lines from the build log.
|
285
285
|
"""
|
286
286
|
# Validate input
|
287
287
|
if not project_path or project_path.strip() == "":
|
@@ -352,10 +352,10 @@ tell application "Xcode"
|
|
352
352
|
output_lines = output.split("\n")
|
353
353
|
error_lines = [line for line in output_lines if "error" in line]
|
354
354
|
|
355
|
-
# Limit to first
|
356
|
-
if len(error_lines) >
|
357
|
-
error_lines = error_lines[:
|
358
|
-
error_lines.append("... (truncated to first
|
355
|
+
# Limit to first 25 error lines
|
356
|
+
if len(error_lines) > 25:
|
357
|
+
error_lines = error_lines[:25]
|
358
|
+
error_lines.append("... (truncated to first 25 error lines)")
|
359
359
|
|
360
360
|
error_list = "\n".join(error_lines)
|
361
361
|
return f"Build failed with errors:\n{error_list}"
|
@@ -412,7 +412,7 @@ def get_build_errors(project_path: str) -> str:
|
|
412
412
|
Get the build errors for the specified Xcode project or workspace.
|
413
413
|
|
414
414
|
Args:
|
415
|
-
project_path: Path to an Xcode project
|
415
|
+
project_path: Path to an Xcode project or workspace directory.
|
416
416
|
|
417
417
|
Returns:
|
418
418
|
A string containing the build errors or a message if there are none
|
@@ -441,7 +441,7 @@ def get_build_errors(project_path: str) -> str:
|
|
441
441
|
set issueCount to 0
|
442
442
|
|
443
443
|
repeat with anIssue in issuesList
|
444
|
-
if issueCount ≥
|
444
|
+
if issueCount ≥ 25 then exit repeat
|
445
445
|
set issuesText to issuesText & "- " & message of anIssue & "\n"
|
446
446
|
set issueCount to issueCount + 1
|
447
447
|
end repeat
|
@@ -505,13 +505,13 @@ def clean_project(project_path: str) -> str:
|
|
505
505
|
|
506
506
|
@mcp.tool()
|
507
507
|
def get_runtime_output(project_path: str,
|
508
|
-
max_lines: int =
|
508
|
+
max_lines: int = 25) -> str:
|
509
509
|
"""
|
510
510
|
Get the runtime output from the console for the specified Xcode project.
|
511
511
|
|
512
512
|
Args:
|
513
513
|
project_path: Path to an Xcode project/workspace directory.
|
514
|
-
max_lines: Maximum number of lines to retrieve. Defaults to
|
514
|
+
max_lines: Maximum number of lines to retrieve. Defaults to 25.
|
515
515
|
|
516
516
|
Returns:
|
517
517
|
Console output as a string
|
xcode_mcp_server-1.0.1/deploy.sh
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|