Skip to main content
Glama
conorluddy

XC-MCP: XCode CLI wrapper

by conorluddy

Enable Disk Persistence

persistence-enable
Idempotent

Activate persistent storage of usage patterns and build preferences to retain learned configurations across restarts, improving repeat task efficiency.

Instructions

persistence-enable

🔋 Enable opt-in persistent state management for learning across server restarts - Activate persistence.

Activates file-based persistence for XC-MCP's intelligent caching systems. Stores usage patterns, build preferences, simulator performance metrics, and cached responses to disk. Enables the system to learn and improve over time, remembering successful configurations across server restarts. Privacy-first design: NO source code, credentials, or personal information is persisted.

Advantages

• Retain learned build configurations and simulator preferences across restarts • Accelerate repeated workflows by persisting successful operation patterns • Enable team collaboration with shared project-local cache optimizations • Maintain performance insights across CI/CD pipeline runs

Parameters

Required

  • (None)

Optional

  • cacheDir (string): Custom directory for cache storage. If omitted, uses intelligent location selection

Returns

  • Tool execution results with persistence activation confirmation

  • Cache directory location (resolved or custom)

  • Storage information and writability status

  • Privacy notice and next steps

  • persistence-disable: Turn off persistence

  • persistence-status: View persistence system status

Notes

  • Tool is auto-registered with MCP server

  • Privacy-first design - only patterns and preferences stored

  • Enables team sharing via project-local cache

  • Automatically selects best cache location if not specified

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cacheDirNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.1.0
  2. Removedv1.1.0
  3. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark the tool as non-read-only and idempotent; the description adds meaningful behavior by specifying what is persisted (usage patterns, build preferences, simulator metrics, cached responses) and what is never persisted (source code, credentials, personal information). It also discloses automatic cache-location selection and auto-registration with the MCP server, adding context beyond the schema.

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

Conciseness3/5

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

The document is organized under headings and front-loads the core purpose, making it scannable. However, it repeats the privacy point and the automatic-location behavior across sections, and the Advantages list is largely promotional rather than necessary for invoking the tool.

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?

For a tool with one optional parameter and no output schema, the description is operationally complete: it explains the results (activation confirmation, resolved cache directory, storage writability, privacy notice, next steps) and lists related tools. No critical invocation detail appears to be missing.

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?

The input schema provides zero description coverage and only a bare 'cacheDir' string property. The description compensates fully: 'cacheDir (string): Custom directory for cache storage. If omitted, uses intelligent location selection.' This tells the agent the parameter is optional and what happens when it is absent.

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 opens by saying the tool 'Enable[s] opt-in persistent state management for learning across server restarts' and 'Activates file-based persistence' for XC-MCP's caching systems. It names a specific action on a specific resource, and the Related Tools section distinguishes it from persistence-disable and persistence-status.

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 frames the tool as the opt-in activation path for persistence and lists concrete contexts where it is beneficial: retaining learned configurations, accelerating repeated workflows, team collaboration, and CI/CD runs. It names related tools for disabling and checking status, but it does not explicitly say when not to use this tool or directly compare selection criteria.

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