原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Periphery Code Audit

作者:zyntx-lab版本 1.0.0i★ –i在你的电脑上运行
注册名称io.github.zyntx-lab/periphery-mcp-server

安装

概览

作者提供的说明(英文原文)

Swift code analysis with Periphery - detect unused code and improve code quality

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

下载作者的 .mcpb 文件

链接指向作者自己的文件;我们不托管也不重新打包它。打开文件后,Claude Desktop 会进行安装。

在终端中运行这条命令

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 zyntx-lab 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32683 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32683 个服务器的 1% 更新
  • 基础检查结果等于或优于此分类中其他 32683 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Periphery Code Audit 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.0.0)于12个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 MCPB。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, MCP Server Autocad Lisp Helper

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

MCP Server Autocad Lisp Helper

作者:radwanalmsora

High-precision static analysis and debug server for AutoCAD AutoLISP (.lsp) files.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Periphery MCP Server

A Model Context Protocol (MCP) server that wraps the Periphery tool, enabling AI assistants to perform Swift code audits and detect unused code in iOS/macOS projects.

Features

  • 7 MCP Tools for comprehensive code analysis
  • CLI Integration - Uses Periphery CLI for stability and version flexibility
  • JSON Output - Structured, parseable results perfect for AI interpretation
  • Flexible Scanning - Support for Xcode projects and Swift Packages
  • Advanced Options - Full control over Periphery scan configurations

Quick Start

Using Homebrew (Recommended):

# 1. Install Periphery

brew install peripheryapp/periphery/periphery

2. Install Periphery MCP Server

brew tap zyntx-lab/tap brew install periphery-mcp-server

3. Configure Claude Desktop

Edit: ~/Library/Application Support/Claude/claude_desktop_config.json

Add:

"periphery": {

"command": "/opt/homebrew/bin/periphery-mcp-server"

}

4. Restart Claude Desktop (Cmd+Q then reopen)

5. Test it

In Claude Desktop: "Check if Periphery is installed"

From Source:

# 1. Install Periphery

brew install peripheryapp/periphery/periphery

2. Clone and build this server

git clone https://github.com/zyntx-lab/periphery-mcp-server.git cd periphery-mcp-server swift build -c release

3. Install to system path

sudo cp .build/release/periphery-mcp-server /usr/local/bin/ sudo chmod +x /usr/local/bin/periphery-mcp-server

4. Configure Claude Desktop

Edit: ~/Library/Application Support/Claude/claude_desktop_config.json

Add:

"periphery": {

"command": "/usr/local/bin/periphery-mcp-server"

}

5. Restart Claude Desktop (Cmd+Q then reopen)

6. Test it

In Claude Desktop: "Check if Periphery is installed"

Prerequisites

  • macOS 13.0 or later
  • Swift 6.0 or later
  • Periphery installed
Installing Periphery
brew install peripheryapp/periphery/periphery

Or download from Periphery releases.

Installation

Option 1: Homebrew (Recommended)
# Add the tap

brew tap zyntx-lab/tap

Install the server

brew install periphery-mcp-server

Verify installation

which periphery-mcp-server

Should output: /opt/homebrew/bin/periphery-mcp-server

Option 2: Download from GitHub Releases

Download the latest binary from Releases:

# Download and install

curl -L https://github.com/zyntx-lab/periphery-mcp-server/releases/download/v1.0.0/periphery-mcp-server \ -o /usr/local/bin/periphery-mcp-server chmod +x /usr/local/bin/periphery-mcp-server

Verify installation

which periphery-mcp-server

Should output: /usr/local/bin/periphery-mcp-server

Option 3: Build from Source
# Clone the repository

git clone https://github.com/zyntx-lab/periphery-mcp-server.git cd periphery-mcp-server

Build release version

swift build -c release

Install to system path (requires password)

sudo cp .build/release/periphery-mcp-server /usr/local/bin/ sudo chmod +x /usr/local/bin/periphery-mcp-server

Verify installation

which periphery-mcp-server

Should output: /usr/local/bin/periphery-mcp-server

Option 4: Install from MCP Registry

The server is also available on the MCP Registry. Use your MCP-compatible client to install it directly.

Configuration

Claude Desktop
Step 1: Locate Your Config File

The config file is at: ~/Library/Application Support/Claude/claude_desktop_config.json

Step 2: Edit the Configuration

If you installed via Homebrew:

{

"mcpServers": { "periphery": { "command": "/opt/homebrew/bin/periphery-mcp-server" } } }

If you installed to /usr/local/bin:

{

"mcpServers": { "periphery": { "command": "/usr/local/bin/periphery-mcp-server" } } }

If you're using the build directory directly:

{

"mcpServers": { "periphery": { "command": "/FULL/PATH/TO/periphery-mcp-server/.build/release/periphery-mcp-server" } } }

If you already have other MCP servers configured:

{

"mcpServers": { "xcode": { "command": "node", "args": ["/path/to/xcode-mcp-server/dist/index.js"] }, "periphery": { "command": "/usr/local/bin/periphery-mcp-server" } } }

Step 3: Restart Claude Desktop

Important: You must completely quit and restart Claude Desktop for changes to take effect.

  1. Quit Claude Desktop: Press Cmd+Q or use Claude Desktop → Quit
  2. Wait a few seconds
  3. Reopen Claude Desktop
Step 4: Verify It's Working

Open a new conversation in Claude Desktop and try:

"Check if Periphery is installed"

If configured correctly, Claude will use the check_periphery_installed tool and respond with installation status.

Testing with MCP Inspector

Before configuring Claude Desktop, you can test the server with the MCP Inspector:

# Install MCP Inspector (if not already installed)

npm install -g @modelcontextprotocol/inspector

Test your server

npx @modelcontextprotocol/inspector /usr/local/bin/periphery-mcp-server

Or if using build directory

npx @modelcontextprotocol/inspector /path/to/periphery-mcp-server/.build/release/periphery-mcp-server

The Inspector will open in your browser where you can test all tools interactively.

Other Editors
VS Code

Add to .vscode/mcp.json:

{

"mcpServers": { "periphery": { "type": "stdio", "command": "/usr/local/bin/periphery-mcp-server" } } }

Cursor

Add to .cursor/mcp.json:

{

"mcpServers": { "periphery": { "type": "stdio", "command": "/usr/local/bin/periphery-mcp-server" } } }

Available Tools

1. check_periphery_installed

Verify that Periphery CLI is installed and accessible.

Parameters: None

Example Response:

{

"installed": true, "path": "/usr/local/bin/periphery", "message": "Periphery is installed and ready" }

2. get_periphery_version

Get the installed version of Periphery.

Parameters: None

Example Response:

{

"version": "2.18.0", "raw_output": "2.18.0" }

3. scan_project

Run a basic Periphery scan on a project.

Parameters:

  • project_path (required): Path to .xcodeproj or Package.swift
  • schemes (optional): Build schemes to scan (Xcode only)
  • targets (optional): Specific targets to analyze
  • format (optional): Output format: json, xcode, csv, checkstyle (default: json)

Example Response:

{

"success": true, "results": [ { "kind": "class", "name": "UnusedClass", "modifiers": ["public"], "location": "Sources/MyApp/UnusedClass.swift:10:7" } ], "summary": { "total_unused": 5, "by_kind": {"class": 2, "function": 3} } }

4. scan_with_config

Run Periphery scan using a YAML configuration file.

Parameters:

  • config_path (required): Path to .periphery.yml config file
5. analyze_unused_imports

Focus specifically on detecting unused imports.

Parameters:

  • project_path (required): Path to .xcodeproj or Package.swift
  • schemes (optional): Build schemes to scan
  • targets (optional): Specific targets to analyze
6. find_redundant_public

Identify public declarations that could be internal.

Parameters:

  • project_path (required): Path to .xcodeproj or Package.swift
  • schemes (optional): Build schemes to scan
  • targets (optional): Specific targets to analyze
7. scan_with_options

Advanced scanning with custom Periphery flags.

Parameters:

  • project_path (required): Path to .xcodeproj or Package.swift
  • schemes (optional): Build schemes to scan
  • targets (optional): Specific targets to analyze
  • format (optional): Output format
  • retain_public (optional): Retain all public declarations
  • retain_objc_accessible (optional): Retain @objc declarations
  • disable_unused_import_analysis (optional): Disable unused import analysis
  • index_store_path (optional): Custom index store location
  • verbose (optional): Enable verbose output

Usage Examples

With Claude Desktop

Once configured, you can have natural conversations with Claude about your code:

Check Installation:

You: "Check if Periphery is installed"

Claude: [Uses check_periphery_installed] "Yes, Periphery is installed at /usr/local/bin/periphery Version: 2.18.0"

Scan a Project:

You: "Scan my iOS project at ~/Projects/MyApp/MyApp.xcodeproj for unused code"

Claude: [Uses scan_project] "I found 15 unused declarations in your project:

Classes (5):

  • UnusedViewController at MyApp/UnusedViewController.swift:10
  • OldDataManager at MyApp/Models/OldDataManager.swift:25

...

Functions (8):

  • helperFunction at Utils/Helpers.swift:42

...

Imports (2):

  • UIKit in DataModel.swift:1

..."

Find Redundant Public:

You: "Check which public declarations could be made internal in ~/Projects/MyFramework"

Claude: [Uses find_redundant_public] "Found 12 public declarations that are only used internally and could be made internal:

  • public class InternalHelper (only used within the framework)
  • public func formatDate() (only called from within the module)

..."

Analyze Unused Imports:

You: "Find unused imports in my Swift package"

Claude: [Uses analyze_unused_imports] "Found 8 unused imports that can be safely removed:

  • Foundation in Models/User.swift (not using any Foundation APIs)
  • Combine in ViewModels/ProfileViewModel.swift (Combine is imported but not used)

..."

With Custom Configuration

Create .periphery.yml in your project:

project: MyApp.xcodeproj

schemes:

  • MyApp

targets:

  • MyApp
  • MyAppKit

format: json retain_public: false retain_objc_accessible: true verbose: false

Then use scan_with_config:

You: "Scan my project using the custom config"

Troubleshooting

Server Not Appearing in Claude Desktop

Symptoms: Claude doesn't recognize Periphery tools after configuration

Solutions:

  1. Verify config file syntax:
   # Check for JSON syntax errors

cat ~/Library/Application\ Support/Claude/claude_desktop_config.json | python3 -m json.tool

  1. Check the binary path is correct:
   # Test that the binary exists and runs

/usr/local/bin/periphery-mcp-server

Or your custom path

/path/to/.build/release/periphery-mcp-server

  1. Completely restart Claude Desktop:
  • Press Cmd+Q to quit (not just close the window)
  • Wait 5 seconds
  • Reopen Claude Desktop
  • Start a new conversation (old conversations won't see new servers)
  1. Check Claude Desktop logs:
   # View logs for errors

tail -f ~/Library/Logs/Claude/mcp*.log

Periphery Not Found

If you get "Periphery is not installed":

  1. Install Periphery: brew install peripheryapp/periphery/periphery
  2. Verify installation: which periphery
  3. Restart Claude Desktop/VS Code/Cursor
  4. Try the check_periphery_installed tool again
MCP Inspector Connection Errors

If the Inspector can't connect to the server:

  1. Verify the server runs:
   # Server should wait for input, not exit immediately

/usr/local/bin/periphery-mcp-server

Press Ctrl+C to exit

  1. Check for errors:
   # Run with verbose output

/usr/local/bin/periphery-mcp-server 2>&1 | tee server.log

  1. Use the absolute path:
   npx @modelcontextprotocol/inspector $(which periphery-mcp-server)
Scan Timeout

Default timeout is 5 minutes. For large projects:

  1. Use scan_with_config with a focused configuration
  2. Scan speci

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx