pharo-mcp-server
Pharo Smalltalk implementation of Anthropic's Model Context Protocol (MCP) server specification. Enables LLMs like Claude to interact with Pharo applications.
The Pharo MCP Server is a server-side implementation of the Model Context Protocol (MCP) specification, designed to facilitate interaction between Large Language Models (LLMs) and Pharo applications. Developed by Anthropic, MCP standardizes the way LLMs discover, describe, and invoke external tools and services. This project specifically targets the Pharo Smalltalk environment, allowing developers to expose functionalities within their applications as 'tools' that MCP-compliant LLMs can utilize. By implementing core server-side endpoints for discovery, service description, and invocation, the Pharo MCP Server bridges the gap between the dynamic capabilities of Pharo and modern LLMs, making tool usage more reliable and secure.
Features
- MCP Specification Compliance: Implements core server-side endpoints for discovery, service description, and invocation.
- Dynamic Tool Registration: Provides a simple API to register Pharo methods or blocks as MCP tools.
- Automatic Service Description: Generates MCP Service Description JSON based on registered tools and their metadata.
- Web Server Integration: Built upon the Teapot micro web framework for seamless web server integration.
- JSON Handling: Utilizes NeoJSON for robust JSON parsing and generation.