BX

block/xcode-index-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

67 stars 12 forks 품질 61 트렌드 0Apache-2.0

block/xcode-index-mcp는 MCP 서버 후보자로 https://github.com/block/xcode-index-mcp.에서 가져온

개요

block/xcode-index-mcp는 MCP 서버 후보자로 https://github.com/block/xcode-index-mcp.에서 가져온

개요(AI 번역)

Model Control Protocol (MCP) 및 IndexStoreDB를 통해 iOS/macOS 프로젝트 인덱스에 Goose/Cursor 액세스 권한을 부여합니다. 이 기능 호출 사이트의 소진 목록을 제공하여 에이전트를 재발급 및 코드 탐색을 돕습니다.

예제 프롬프트

“Remove myParameter] MyViewController.swift] 라인 48에 초기화기에서. Xcode Index MCP를 사용하여 모든 참조를 업데이트합니다.”

사용 방법

  1. uv (Python 패키지 관리자) 설치 및 실행 uv sync

  2. Swift 서비스 구축 (Xcode가 설치되어야 함)

이 단계는 Xcode의 인덱스에 인터페이스를 제공합니다.

  1. 당신의 선택의 대리인에 설치하십시오

거위:

설정으로 이동하고 사용자 정의 확장을 추가합니다. command] 필드 아래 팝업 modal에서, 이 줄을 추가:

참고 : 실제 시스템 사용자 이름과 [T5]를 대체하거나 올바른 경로 xcode-index-mcp로 기계.

나머지는 다음과 같은 것을 살펴야한다 :

커서:

Settings > MCP > Add new global MCP server로 이동하십시오. mcp.json을 업데이트하십시오 (당신의 Cursor 구성 디렉토리에 위치한) 이처럼 뭔가를 볼 수:

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Xcode Index MCP

Gives Goose/Cursor access to your iOS/macOS project index through the Model Control Protocol (MCP) and IndexStoreDB. This provides exhaustive lists of function call sites to help your agent with refactoring and code navigation.

Example prompt

“Remove myParameter from the initializer on line 48 of MyViewController.swift. Use the Xcode Index MCP to ensure all references are updated.”

How to use

  1. Install uv (Python package manager) and run uv sync

    brew install uv
    cd /path/to/this/repo
    uv sync
    
  2. Build the Swift service (Xcode must be installed)

    cd swift-service
    swift build
    

    This step is required as it provides the interface to Xcode’s index.

  3. Install in Agent of your choice

    Goose:

    Go to settings and add a custom extension. In the modal that pops up, under the command field, add this line:

    /Users//Development/xcode-index-mcp/.venv/bin/xcode-index-mcp
    

    Note: Replace `` with your actual system username, or with the correct path xcode-index-mcp on your machine.

    The rest should look something like this:

    Cursor:

    Go to Settings > MCP > Add new global MCP server. Update mcp.json (typically located in your Cursor configuration directory) to look something like this:

        {
            "mcpServers": {
                "Xcode Index MCP": {
                    "command": "/Users//Development/xcode-index-mcp/.venv/bin/xcode-index-mcp"
                }
            }
        }
    

    Note: Replace `` with your actual system username, or with the correct path xcode-index-mcp on your machine.

    Claude Code:

    Run this command in the terminal to add the mcp to Claude Code

    claude mcp add xcode-index-mcp -- /Users//Development/xcode-index-mcp/.venv/bin/xcode-index-mcp
    

    Note: Replace `` with your actual system username, or with the correct path xcode-index-mcp on your machine.

  4. Update .gooseHints, cursorRules, or CLAUDE.MD in your project to tell your agent how to use the plugin. Replace the project name with the name of your project as it appears in the derived data folder.

    Use tool `xcode-index-mcp` if available. Use project name . The tool can locate call sites of functions, and function definitions from call sites. If you need a filepath to make a request, use `rg` to find the file and `rg -n` to find the line number. Use the absolute path when requesting symbols from a file.
    

    For Cursor, you may want to add these instructions in their own rule file - at the time of writing I don’t think cursor reads the MCP instructions field.

Running tests

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "Xcode Index MCP": { "command": "/Users/<USERNAME>/Development/xcode-index-mcp/.venv/bin/xcode-index-mcp" } } }