Skip to main content
Glama
drewster99

xcode-mcp-server (drewster99)

by drewster99

run_project_until_terminated

Destructive

Run an Xcode app and wait for it to terminate naturally, extracting runtime logs. Supports optional regex filtering and timeout to force-stop if needed.

Instructions

Run the app and wait for it to terminate naturally (up to timeout seconds).

The app will run in Xcode/Simulator. If it doesn't terminate within timeout seconds (default 600, i.e. 10 minutes), it will be force-stopped and runtime logs will be extracted.

No user interaction required - fully automated.

Perfect for: Automated tests, CLI tools, apps with defined exit points

Args: project_path: Path to an Xcode project/workspace directory scheme: Optional scheme to run. If not provided, uses the active scheme. regex_filter: Optional regex pattern to find matching lines in the output max_lines: Maximum number of matching lines to return (default 20) timeout: Maximum seconds to wait for the app to terminate before force-stopping it. If not provided, defaults to 600. Must be a positive integer.

Returns: JSON string with structured console output

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathYes
schemeNo
regex_filterNo
max_linesNo
timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate destructiveHint=true, and the description adds that the app can be force-stopped and logs extracted. However, it does not fully explain the destructive nature (e.g., potential data loss or state changes) beyond the force-stop behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, well-structured, and front-loaded. It uses bullet points for args and separate lines for use cases, making it easy to scan. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the key behaviors (automated run, timeout, force-stop, log extraction) and return format. It could mention what happens when the app terminates naturally, but it is implicit. Overall, it is sufficiently complete given the annotations and output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All 5 parameters are described in the 'Args' section with clear explanations. The regex_filter description is slightly ambiguous but still understandable. Since schema coverage is 0%, the description compensates well.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool runs an app and waits for termination. It specifies the context (Xcode/Simulator) and use cases (automated tests, CLI tools), effectively distinguishing it from siblings like run_project_with_user_interaction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool (automated tasks, apps with exit points) and implies when not to use (no user interaction required). It does not explicitly mention alternatives, but the context is clear enough.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/drewster99/xcode-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server