xcode-mcp-server 1.0.1__py3-none-any.whl → 1.0.4__py3-none-any.whl

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.
@@ -14,5 +14,5 @@ def main():
14
14
  # Run the server
15
15
  __main__.mcp.run()
16
16
 
17
- __version__ = "1.0.0"
17
+ __version__ = "1.0.4"
18
18
  __all__ = ["main"]
@@ -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/workspace directory.
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) 100 error lines from the build log.
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 100 error lines
356
- if len(error_lines) > 100:
357
- error_lines = error_lines[:100]
358
- error_lines.append("... (truncated to first 100 error lines)")
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/workspace directory.
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 ≥ 100 then exit repeat
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 = 100) -> str:
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 100.
514
+ max_lines: Maximum number of lines to retrieve. Defaults to 25.
515
515
 
516
516
  Returns:
517
517
  Console output as a string
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xcode-mcp-server
3
- Version: 1.0.1
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
@@ -0,0 +1,6 @@
1
+ xcode_mcp_server/__init__.py,sha256=P7r8UnSuuEfMndcdvf2Bt_9Emzrh4dgTkWtSRxFRbeE,474
2
+ xcode_mcp_server/__main__.py,sha256=vBieXwq5-8wUc4taEQ3LgXxbDl_lwcL5zg5Mq30fSwo,19079
3
+ xcode_mcp_server-1.0.4.dist-info/METADATA,sha256=aPfuF2rP7xgg_Z8j26APXzw6d9ZN-d1ntxWVNAHzBbs,4284
4
+ xcode_mcp_server-1.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ xcode_mcp_server-1.0.4.dist-info/entry_points.txt,sha256=u3sbPCAACGxesL3YtGByZRj6hXkL_FqncBmUMW1SEzo,59
6
+ xcode_mcp_server-1.0.4.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- xcode_mcp_server/__init__.py,sha256=3OJM6T0CtBDdfhpwMx7gFOwG7EZ0wmeJqdc_BctxAHM,474
2
- xcode_mcp_server/__main__.py,sha256=3vtygTKhk2GuuYv3cKtd4BnLp4zPAIY9DO5sNWlgG7s,19081
3
- xcode_mcp_server-1.0.1.dist-info/METADATA,sha256=AjFN93_Dhvs93Z9H88LBqFpl0aRqsLqsYB1k3U1_Tes,4284
4
- xcode_mcp_server-1.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- xcode_mcp_server-1.0.1.dist-info/entry_points.txt,sha256=u3sbPCAACGxesL3YtGByZRj6hXkL_FqncBmUMW1SEzo,59
6
- xcode_mcp_server-1.0.1.dist-info/RECORD,,