Skip to main content
Glama
drewster99

xcode-mcp-server (drewster99)

by drewster99

get_xcode_projects

Read-onlyIdempotent

Searches for .xcodeproj and .xcworkspace files in specified paths using Spotlight indexing, optionally prioritizing recently opened projects and filtering by regex.

Instructions

Search for .xcodeproj and .xcworkspace files, optionally including recent projects.

If search_path is empty, searches all paths to which this tool has been granted access. Uses mdfind (Spotlight indexing) to find files efficiently.

Args: search_path: Path to search. If empty, searches all allowed folders. include_recents: If True, include recently opened projects first (default: True) max_search_depth: Maximum directory depth from search path (default: 3) Depth 0 = directly in search path, depth 1 = one level down, etc. regex_filter: Optional regex pattern to filter results max_results: Maximum number of results to return (default: 10)

Returns: A newline-separated list of .xcodeproj and .xcworkspace paths. Recent projects appear first if include_recents=True. Returns empty string if none are found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
search_pathNo
include_recentsNo
max_search_depthNo
regex_filterNo
max_resultsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds that it uses mdfind (Spotlight indexing), explains depth meaning, and return format. No contradictions.

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

Conciseness4/5

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

The description is front-loaded with the main purpose and structured with sections (general, mdfind, Args, Returns). It is efficient but could be slightly more concise; nevertheless, every sentence adds value.

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

Completeness5/5

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

Given 5 parameters (all optional) and an output schema, the description covers all parameters, return value, and algorithmic behavior (depth interpretation). It is complete for usage.

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

Parameters5/5

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

Schema description coverage is 0%, but the description includes a detailed 'Args:' section explaining each of the 5 parameters (search_path, include_recents, max_search_depth, regex_filter, max_results) with defaults and behaviors, fully compensating.

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 it searches for .xcodeproj and .xcworkspace files, which is a specific verb+resource. It distinguishes from sibling tools like build_project, clean_project, etc. that perform different actions.

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 explains that if search_path is empty, it searches all allowed folders, and it mentions the use of mdfind. However, it does not explicitly say when not to use this tool or provide alternatives, though sibling tools are all different in purpose.

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