MCP Playground
A demonstration MCP server implementation in Go featuring real-time bidirectional file communication.
MCP Playground
A demonstration Model Context Protocol (MCP) server implementation in Go featuring real-time bidirectional file communication.
๐ฏ Features
- Real-Time Communication: Bidirectional file-based communication with live notifications
- MCP Resources: Live-updating resources with automatic change notifications
- File Monitoring: External file changes detected and reported in real-time
- Rich Tool Set: Complete set of tools for file interaction and monitoring
๐ Quick Start
# Build the server
task build
# Start monitoring and interact with the file
task run
๐ง MCP Tools
start_file_monitoring- Start real-time file monitoringwrite_to_file- Write messages to communication fileread_communication_file- Read current file contentsget_recent_changes- Get list of recent external changesget_monitoring_status- Check monitoring status
๐ก MCP Resources
file://communication- Live communication file with real-time updates
๐งช Testing
# Test real-time notifications
./test_realtime_resources.sh
# Test basic file monitoring
./test_file_monitoring.sh
๐ Claude Desktop Integration
Copy configuration to your Claude Desktop config:
{
"mcpServers": {
"mcp-playground": {
"command": "/path/to/mcp-playground/bin/mcp-playground",
"args": []
}
}
}
๐ How It Works
- Start monitoring with
start_file_monitoringtool - External changes to
communication.txtare detected automatically - Real-time notifications sent via MCP
notifications/resources/updated - Claude Desktop receives live updates and can react to external changes
Perfect for experimenting with MCP real-time capabilities! ๐ช
Related Servers
MCP System Monitor Server
A cross-platform server for real-time monitoring of CPU, GPU, memory, disk, network, and process information.
Anubis
Embeds intelligent guidance into AI workflows to organize development and ensure quality.
MCP_Agent:RE
Fetches requirements and defect data from the TAPD platform to provide data support for AI clients.
Midjourney MCP
An MCP server for generating images with the Midjourney API.
Windows Command Line MCP Server
Enables AI models to interact with the Windows command-line safely and efficiently.
AGS MCP Server
Manipulate Adventure Game Studio (AGS) compiled room (.crm) files to enable AI-powered game development.
NetMind ParsePro
Parses PDF files from a URL into structured formats like JSON and Markdown.
Read Docs MCP
Enables AI agents to access and understand package documentation from local or remote repositories.
MCP Node.js Debugger
Provides runtime debugging access to Node.js applications for code editors like Cursor or Claude Code.
Chart
A Model Context Protocol server for generating visual charts using AntV.