Linux 软件免费装
Banner图

Structure Viewer – AI Context Builder, Code Search & MCP Tools

开发者 blincks
engrmzh
更新时间 2026年10月24日 03:53
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

ai developer tools code search mcp file viewer

下载

2.2.1 1.0 1.2 2.0 2.1 2.1.1 1.1 2.2.0 2.2.2 2.2.3 2.3.0

详情介绍:

Structure Viewer is the AI toolkit for WordPress code. Turn any installed plugin or theme into a single AI-ready context pack, search inside every file, let AI agents like Claude, Cursor and VS Code Copilot explore your site through MCP, and browse every file with syntax highlighting — all from your WordPress admin, with secrets redacted before anything leaves the server. No FTP, no SSH, no copy-pasting one file at a time. Works with ChatGPT, Claude, Gemini, Cursor, Copilot, Windsurf and any other AI tool. — ✨ AI Context Pack (new in 2.3) The fastest way to give an AI your code. 🤖 Built-in MCP Server for AI Agents (new in 2.3) Structure Viewer is an MCP server — no MCP Adapter or any other plugin required, on any WordPress version from 5.8. Connect Claude Code, Claude Desktop, Cursor, VS Code (Copilot), Windsurf or any other MCP client and it can explore your plugins and themes on its own: Two-minute setup: open AI Agents, click Create token, pick your client and copy the generated config (Claude Code command, Claude Desktop, Cursor, VS Code, Windsurf or cURL). A self-test runs a real MCP handshake against your site. For local development there is also a stdio server: wp structure-viewer mcp --user=admin. Standards-based: MCP Streamable HTTP transport (protocol 2024-11-05 → 2025-11-25), JSON-RPC 2.0, Origin validation, per-user revocable tokens (or WordPress Application Passwords). Every tool is read-only, requires an administrator and can be switched off in one click. On WordPress 6.9+ the same tools are also registered with the core Abilities API. 🔍 Code Search (new in 2.3) 🗂️ File Explorer & Viewer 📤 Export TXT, JSON, XML, PDF and clipboard exports of any file tree — clean ASCII trees that fit nicely in AI prompts, tickets and documentation. 🔒 Secret Redaction Masks API keys, tokens, passwords, AWS / Stripe / GitHub / Google / Slack / OpenAI / Anthropic / SendGrid / Mailchimp keys, JWTs, PEM private keys, wp-config credentials, credential constants, .env-style assignments and passwords in connection strings. Always on for AI output by default; optional for the file viewer and downloads. 💻 WP-CLI wp structure-viewer pack plugin woocommerce --ext=php --max-tokens=150000 --output=wc.md wp structure-viewer search plugin all "base64_decode\s*\(" --regex wp structure-viewer export plugin <folder-name> --format=json wp structure-viewer list plugins wp structure-viewer mcp --user=admin (local stdio MCP server) Pro: wp structure-viewer hooks plugin <slug> and wp structure-viewer integrity — 🚀 Structure Viewer Pro 🪝 Hooks Map (new) — static analysis of every PHP file (nothing is executed): actions and filters hooked (with callback and priority), every do_action / apply_filters fired, AJAX handlers, REST routes, shortcodes, post types, taxonomies, blocks, cron events, admin pages, settings, WP-CLI commands, enqueued assets, classes and functions — each linked to its file and line. Export as Markdown or JSON, add it to Context Packs, or let AI agents call it. 🛡️ Integrity Check (new) — verify WordPress core and every WordPress.org plugin against the official checksums. Find modified, missing and suspicious (unexpected executable) files, and see a line-by-line diff against the original release. Ideal after a hack, before a site handover, or when someone "just edited the plugin". 💾 Context Pack presets & compression (new) — save file selections, task prompts and options as reusable presets, strip comments and blank lines to save 20–40% tokens, and include the Hooks Map in any pack. 🔀 Comparator — colour-coded line-by-line diff between two plugin/theme ZIPs, an installed item and a ZIP, or two files. Handles large and minified files. 📦 FlatPack — extract only the PHP, CSS, JS, images or custom extensions from any ZIP into one flat, collision-safe download. Upgrade from Structure Viewer → Pro Tools → Upgrade to Pro. — 🔒 Security & Privacy ⚡ Performance

安装:

  1. Go to Plugins → Add New in your WordPress admin.
  2. Search for Structure Viewer.
  3. Click Install Now, then Activate.
  4. Navigate to Tools → Structure Viewer.
To connect AI agents (optional): open Structure Viewer → AI Agents, click Create token and copy the generated configuration into your AI client. Nothing else to install.

屏幕截图:

  • AI Context Pack — smart file selection, task templates and token budget
  • AI Context Pack — the generated pack, ready to copy or download
  • Code Search — results with line numbers and context
  • File viewer — syntax highlighting, line numbers and "Copy for AI"
  • AI Agents — built-in MCP server, connection token and generated client configuration
  • Explorer — file tree, statistics and "Use with AI" shortcuts
  • Pro: Hooks Map — every hook, route and shortcode with file and line
  • Pro: Integrity Check — modified and suspicious files with diff against the original
  • Pro: Comparator — colour-coded diff between two plugin versions
  • Settings — AI & agent controls, redaction and accent colour

升级注意事项:

2.3.0 Big AI release: one-click AI Context Packs, Code Search, a built-in MCP server for AI agents (Claude, Cursor, VS Code — no extra plugin), syntax highlighting, plus Hooks Map and Integrity Check in Pro. 2.2.3 Refreshed dashboard and tree-view design, clickable Comparator result stats, a cleaner Comparator flow, and a modern monospace font throughout. 2.2.2 Auto-redact secrets when viewing or downloading files, search function improvements, and UI enhancement. 2.2.1 Quick dark/light mode toggle from the plugin header, improved search results UI, and refined tab and dashboard styling. 2.2.0 Major release: Redesigned dashboard, complete UI overhaul, and multiple bug fixes. Pro features added. 2.1.1 Fixes the Copy Structure button in Safari. 2.1 Adds individual file downloads and PDF export. Drop-in replacement. 2.0 Major update — full UI rebuild. Backward compatible.

常见问题:

What is an AI Context Pack?

A single document that contains everything an AI needs to understand a plugin or theme: its name, version and requirements, a file tree, and the full source of the relevant files — with secrets redacted. Paste it into ChatGPT, Claude, Gemini or any other assistant, or attach the downloaded file, then ask your question.

Which AI tools does it work with?

All of them. Context Packs are plain Markdown, XML or text, so they work with any chat assistant or IDE. AI agents that speak MCP (Claude Desktop, Claude Code, Cursor, VS Code with Copilot, Windsurf and many others) connect directly to Structure Viewer's built-in MCP server.

How do I connect Claude, Cursor or VS Code?

Open Tools → Structure Viewer → AI Agents, click Create token, choose your client and copy the generated configuration. Click Run self-test to confirm everything works. No other plugin is needed.

Is it safe to let an AI agent read my code?

Every Structure Viewer ability is read-only and requires an authenticated administrator (via Application Password). Secrets are redacted before content is returned, and you can turn agent access off at any time under Settings → AI & Agents.

Do I need the MCP Adapter or any other plugin?

No. Structure Viewer ships its own MCP server, so it works on its own on WordPress 5.8 and newer. If your site runs WordPress 6.9+, the same tools are additionally registered with the core Abilities API for any other Abilities-aware tooling.

How is the MCP connection secured?

Each administrator can create a personal connection token (shown once, stored only as a hash, revocable any time). The token only works on the Structure Viewer MCP endpoint, every tool is read-only, secrets are redacted, and browser requests from other origins are rejected. Use HTTPS on live sites. WordPress Application Passwords are accepted as well.

How many tokens will my plugin use?

The Explorer sidebar shows an estimate for every plugin and theme, and the Context Pack builder shows a live estimate for your selection against the context window you choose.

What does Secret Redaction catch?

API keys and tokens from AWS, Stripe, GitHub, Google, Slack, OpenAI, Anthropic, SendGrid and Mailchimp, JWTs, PEM private keys, wp-config credentials, credential-looking constants, .env-style assignments, passwords in connection strings and generic password = "…" style assignments.

Can I search inside a plugin's files?

Yes — Code Search looks inside every file, with regex, case and whole-word options, extension filters and clickable line results. You can search one plugin or theme, or all of them at once.

Is this a WordPress file manager?

No. Structure Viewer is a read-only code explorer for developers and AI workflows. It cannot edit, upload or delete files, which makes it safe to use on live sites.

Is this plugin safe to use on a live site?

Yes. It is read-only, admin-only and loads nothing on your frontend.

Do I need FTP or server access?

No. Everything works from the WordPress admin.

Does it work with themes and must-use plugins?

Yes. Everything that works for plugins works for themes, and the mu-plugins folder appears automatically when your site has one.

Does it work with WP-CLI?

Yes: pack, search, mcp, export and list are free; hooks and integrity come with Pro. Run wp help structure-viewer for all options.

What is in Structure Viewer Pro?

Hooks Map, Integrity Check, Context Pack presets and compression, Comparator and FlatPack. The free version includes the Explorer, file viewer, AI Context Packs, Code Search, AI agent tools, exports, WP-CLI and secret redaction.

How does the Integrity Check work?

It downloads the official checksums for the exact version of each WordPress.org plugin (and for WordPress core) and compares them with the files on your server. Premium and custom plugins can't be verified because WordPress.org has no checksums for them; they are listed as "not on WordPress.org".

Does the plugin store any personal data?

Settings are stored in the structureviewer_settings option. A few per-user preferences (dismissed notices, Pro presets) are stored as user meta. No personal data is collected or sent anywhere.

Is Structure Viewer compatible with Multisite?

It is designed for single sites and works on individual subsites, but network-level administration is not officially supported.

How can I support development?

A review on WordPress.org helps a lot, and you can buy us a coffee at buymeacoffee.com/blincks.

更新日志:

2.3.0 2.2.3 2.2.2 2.2.1 2.2.0 2.1.1 2.1 2.0 1.2 1.1 1.0