@evref-bl/pharo-mcp

中文文档
3.8.0发布于 2026/11/14MITES Module零依赖构建来源已验证近 30 天下载 4032

Pharo MCP agent-host templates

原始使用文档
文档目录5 节
  1. Supported Versions
  2. Install And Start
  3. Documentation
  4. Agent Templates
  5. Contributing

MCP for Pharo

Pharo version CI Coverage Status

MCP is an in-image Model Context Protocol server for Pharo. It lets MCP clients inspect and change the running image through Pharo-aware tools for packages, classes, methods, tests, repositories, change history, debugging, and UI inspection.

MCP works through the Pharo ecosystem—compilation, refactorings, Renraku, SUnit, Iceberg, Metacello, Epicea, and Spec—rather than patching exported Tonel files as plain text.

Supported Versions

Pharo 10, 11, 12, 13, 14, and 15 are supported.

Protocol revisions 2025-03-26, 2025-06-18, 2025-11-25 and 2026-07-28 are supported, each answered in its own shape.

Install And Start

Load MCP in a supported image:

Metacello new
   baseline: 'MCP';
   repository: 'github://Evref-BL/MCP:main/src';
   onConflictUseIncoming;
   load.

The baseline groups are:

  • Core: the server, its transport and schema machinery, and the catalog tools it dispatches through
  • IDE: the image tools — classes, methods, packages, tests, critiques, repositories, change history, debugging
  • UI: the world-menu server list
  • Telemetry: the OpenTelemetry backend
  • default: Core, IDE, UI and their tests

A project embedding the server and serving tools of its own loads Core alone, which leaves out the image tools and everything behind them. Loading its package is all its tools need: a tool that names itself is in the catalog. Building on MCP walks through a tool, a resource and a prompt of your own.

Start the Streamable HTTP server:

MCP startOnPort: 4000.

That answers the server already on 4000 when the image has one, so running it again after a restart is safe. MCP allServers lists what the image holds, and Library → MCP Servers in the world menu shows the same list.

Connect a local MCP client to http://127.0.0.1:4000. Client configuration formats differ; see Getting started for setup and first calls.

Documentation

Agent Templates

Install the guide, local references, workflow skills, and direct MCP configuration for an agent host into the current project:

npx @evref-bl/pharo-mcp install --host claude

Use --host codex or --host opencode for those hosts. The direct MCP configuration expects port 4000; update it when the image uses another port.

Node integrations that provide their own MCP transport can install only the guide, skills, references, and soft-loading instruction block:

import { installGuidance } from "@evref-bl/pharo-mcp";

installGuidance({ host: "codex", cwd: process.cwd() });

Contributing

Use Pharo 14 for normal development and preserve Pharo 10, 11, 12, 13 and 15 compatibility. Live behavior must be verified in an image; source inspection alone is not enough. Start with AGENTS.md and MCP verification.

版本与发布记录

@evref-bl/pharo-mcp 共发布 22 个版本,首次发布于 2026/10/16;过去 12 个月发布了 22 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.8.0latest2026/11/14今天
3.7.02026/11/14今天
3.6.02026/11/13今天
3.5.02026/11/113 天前
3.4.12026/11/077 天前
3.4.02026/11/068 天前

其他发布通道:bootstrap → 0.0.0。

关于 @evref-bl/pharo-mcp 的常见问题

@evref-bl/pharo-mcp 是什么?

Pharo MCP agent-host templates

如何安装 @evref-bl/pharo-mcp?

在项目目录运行 npm install @evref-bl/pharo-mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 pharo-mcp,可以用 npx pharo-mcp 直接运行。

@evref-bl/pharo-mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/evref-bl__pharo-mcp 是否存在。

@evref-bl/pharo-mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@evref-bl/pharo-mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@evref-bl/pharo-mcp 可以商用吗?

@evref-bl/pharo-mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@evref-bl/pharo-mcp 的下载量有多少?

根据 npm 官方下载统计,@evref-bl/pharo-mcp 在 2026/10/14 – 2026/11/12 这 30 天内被下载 4,032 次,日均约 134 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@evref-bl/pharo-mcp 还在维护吗?

最新版本 3.8.0 发布于 2026/11/14(今天);至今共发布 22 个版本,其中过去 12 个月发布了 22 个;首次发布于 2026/10/16。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。