Static source inference · medium confidence · detected: stateful session
Deprecated protocol patterns detected
Summary
This MCP server wraps Xcode CLI tooling via mcporter. Tool definitions are auto-generated from a CLI schema and embedded in src/mcpbridge.ts. While all 15 tools have basic schemas and descriptions, quality is inconsistent: most descriptions are functional but terse (10-50 chars), parameter documentation is minimal, output schemas are not visible, and error handling guidance is absent. The schema definitions are properly typed JSON Schema objects, but lack depth for LLM reasoning. No tool annotations (readOnlyHint, destructiveHint, idempotentHint) are present despite clear risk categories (READ_ONLY, WRITE, DESTRUCTIVE). Naming is clear and action-oriented (Build, Get, Read, Write, etc.), meeting basic verb-noun convention. However, several tools combine multiple operations conceptually (e.g., XcodeGrep with multiple filtering options), and parameter descriptions often repeat 'tabIdentifier' boilerplate without contextualizing each tool's unique purpose. This server is at the boundary of 'barely adequate', acceptable for CLI wrapping but not optimized for agent reasoning.
Tools (15)
BuildProjectwritesource verified68/100
Build the Xcode project
DocumentationSearchread onlysource verified72/100
Search Xcode documentation
ExecuteSnippetwritesource verified67/100
Execute a code snippet in the context of a Swift source file
GetBuildLogread onlysource verified72/100
Get the build log with optional filtering
GetTestListread onlysource verified68/100
Get the list of tests in the project
RenderPreviewread onlysource verified67/100
Render a Preview macro or PreviewProvider in Xcode
Tool annotations missing for destructive/write operations. Tools like BuildProject (WRITE), XcodeWrite, XcodeUpdate, RunAllTests, ExecuteSnippet, and XcodeRM (DESTRUCTIVE) do not declare readOnlyHint, destructiveHint, or idempotentHint in their definitions. LLMs cannot distinguish safe (read-only) operations from risky ones, risking unintended destructive actions.
Output schemas not documented. No tool definition includes a 'result' or output schema. LLMs cannot plan downstream tool calls without knowing what fields are returned. For example, what does GetTestList return? A list of test names? Test objects with metadata? This forces LLMs to guess.
Add tool annotations to all tool definitions. For each tool, declare readOnlyHint (true for GET/READ tools), destructiveHint (true for DELETE/REMOVE), and idempotentHint (true for safe-to-retry operations). Example for BuildProject: add 'readOnlyHint': false, 'destructiveHint': false, 'idempotentHint': false. For XcodeRead: add 'readOnlyHint': true, 'destructiveHint': false, 'idempotentHint': true. Cite: pattern:tool.
Document output schemas for all tools. In the tool definition, add a 'result' field with a JSON Schema. Example for GetTestList: result: {type: 'object', properties: {tests: {type: 'array', items: {type: 'object', properties: {name: {type: 'string'}, location: {type: 'string'}}}}, total: {type: 'integer'}}}. Cite: pattern:response-shaper.
Expand tool descriptions to 80-150 characters with context. Current: 'Build the Xcode project' (26 chars). Better: 'Compile the active Xcode project and report build errors/warnings. Useful after editing source files to check for compilation issues. Requires a valid project tab identifier.' (159 chars). Include WHAT, WHY, and WHEN for each tool. Cite: rubric baseline avg 194 chars.
Contextualize tabIdentifier by adding discovery guidance. Update description: 'The workspace tab identifier (use XcodeListWindows to discover available tabs). Each open Xcode project/workspace has a unique tab ID.' This prevents the agent from guessing or making extra calls. Cite: pattern:tool-description.
Add 'dry_run' parameter to XcodeRM (and optionally XcodeWrite, XcodeUpdate). Example: 'dry_run': {type: 'boolean', description: 'If true, simulate the deletion without removing files. Defaults to false.'}. Document that agents should call with dry_run=true first, review output, then call with dry_run=false. Cite: pattern:confirmation-request.
Spec posture evidence
Inferred effective spec: 2025-06-18+.
Relies on Stateful initialize / Mcp-Session-Id (removed; protocol is stateless) - make each request self-contained
Score history
Overall score trend
↑ 54 points across a rubric change (v1 → v2)
54/100
Scored
Grade
Overall
Spec posture
Rubric
2026-09-22
D
54
2025-06-18+
v2
2026-03-09
F
0
-
v1
63/100
Find files in the project using glob patterns
XcodeGrepread onlysource verified65/100
Search for text in project files using regex
XcodeListWindowsread onlysource verified62/100
List all Xcode windows
XcodeRMdestructivesource verified53/100
Remove files or directories from the Xcode project
Descriptions too terse for LLM reasoning. 13 of 15 tools have descriptions under 100 characters. Examples: 'Build the Xcode project' (26 chars), 'Get the list of tests in the project' (38 chars), 'List all Xcode windows' (22 chars). Per the rubric baseline (avg 194 chars, p90=392), these lack context for agent selection. Missing: WHEN to call this tool, WHAT it does internally, and WHAT to expect from the result.
Parameter descriptions boilerplate-heavy and non-contextual. All 15 tools repeat 'The workspace tab identifier' for tabIdentifier without explaining: what is a 'tab'? How does the agent discover valid tabIdentifiers? Must it call XcodeListWindows first? This forces the agent to infer dependencies.
Error handling and recovery guidance absent. No tool definition documents: what errors can occur? Is it retryable? Can the agent self-correct? Example: if XcodeWrite fails because the file path is invalid, should the agent try XcodeGlob first to find the correct path? No guidance exists.
XcodeRM (remove files) lacks confirmation or dry-run pattern. This is a DESTRUCTIVE tool. Definitions do not support a 'dry_run' parameter or 'confirm_before_execute' flow. Agents can irreversibly delete files without safety checks.
No input validation or constraint documentation. Example: GetBuildLog's 'severity' enum correctly lists [remark, warning, error], but XcodeGlob's 'pattern' parameter lacks examples or format hints. Agents may pass invalid glob syntax. Descriptions should state format constraints directly.
XcodeGlobXcodeGrepDocumentationSearch
Document error scenarios and recovery paths in tool descriptions. Example for XcodeWrite: 'On failure: file path not found (call XcodeGlob to locate correct path), permission denied (check project permissions), file locked (try closing the file in Xcode first).' Cite: pattern:recovery-guide.
Constrain XcodeGrep parameters and document mutual exclusivity. Add: 'Either provide pattern alone, or combine pattern with optional filters (path, glob, type, ignoreCase, multiline). Context parameters (linesContext, linesBefore, linesAfter) accept 0 - 50 lines; outputMode determines result structure (content, filesWithMatches, or count).' Cite: pattern:constrained-input.
Add min/max bounds and format hints to numeric and string parameters. Examples: 'offset' (XcodeRead): {type: 'integer', minimum: 0, description: 'Line number to start from (1-indexed). Omit for full file.'}, 'limit' (XcodeRead): {type: 'integer', minimum: 1, maximum: 10000, description: 'Max lines to read. Defaults to 1000.'}, 'pattern' (XcodeGlob): description: 'Glob pattern using * ** ? [abc] {a,b} syntax. Examples: *.swift, src/**/*.json. Defaults to **/* if omitted.'}. Cite: rubric param validation rules.
Add per-tool status/capability checks. Example: 'Note: BuildProject requires an active, writable Xcode workspace. If the project is read-only or locked, this will fail. PreRequisite: call XcodeListWindows first to confirm a valid tab is available.' Cite: pattern:tool-description.
Create a discovery/setup tool or enhanced XcodeListWindows. Current XcodeListWindows has no description and takes no params. Expand: description: 'List all open Xcode workspaces and projects. Returns tab ID, project name, and file path for each. Call this first to populate the tabIdentifier for other tools.' Output: returns array of {tabId, projectName, filePath, isWritable}. Cite: pattern:discovery-tool.