-
Notifications
You must be signed in to change notification settings - Fork 39
Feature/mcp server #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feature/mcp server #148
Conversation
…ools Co-authored-by: omarannabi <[email protected]>
Co-authored-by: omarannabi <[email protected]>
Co-authored-by: omarannabi <[email protected]>
- Add human-readable formatted text as first content block - Include emojis, clear structure, and localized formatting - Keep comprehensive JSON data as second content block for LLM processing - Fixes double-encoded JSON issue for better client readability - Maintains full data access for programmatic use
- Return single formatted string instead of content array - MCP framework handles content structure automatically - Include human-readable text with embedded JSON code blocks - Eliminates duplicate content blocks - Follows MCP Framework documentation pattern - Tools now return clean data for framework to manage
- Completely removed all mock/fallback data - Tools now fetch data directly from ElizaOS GitHub Pages directory structure - Parse HTML directory listings to discover plugins dynamically - Extract real statistics from actual stats JSON files - Show real PRs, issues, and activity data - Provide detailed error messages when real data unavailable - No more fake/generated data - only authentic ElizaOS information REAL DATA SOURCES: - https://elizaos.github.io/data/elizaos-plugins_plugin-*/ - Daily stats: /stats/day/stats_YYYY-MM-DD.json - Summaries: /summaries/*.json - Directory discovery via HTML parsing
- Tools now return clean JSON objects instead of formatted strings - MCP Framework handles content structure automatically - Completely removed ALL remaining mock data from all tools - GetRepositoryDataTool: Fetches real repo data from ElizaOS structure - GetSummaryDataTool: Searches for real summary/dump directories - All tools return structured JSON with proper error handling - No more double-encoded strings or content arrays - Follows MCP Framework documentation patterns exactly OUTPUT NOW: Clean JSON objects that MCP clients can properly consume BEFORE: Double-encoded strings with escaped content
✅ SOLVED: MCP Framework output issue - Set useStringify = true (correct setting) - Return JSON objects directly from execute() - Framework properly stringifies with JSON.stringify() - Output is now clean, parseable JSON in content.text - No more [object Object] or double-encoding issues BEFORE: '[object Object]' or double-encoded strings NOW: Clean JSON that clients can parse properly 🎯 All tools now return properly formatted JSON data 📊 Real data from ElizaOS GitHub Pages (no mock data) 🔧 Follows MCP Framework patterns exactly
Co-authored-by: omarannabi <[email protected]>
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🚀 Add MCP ElizaOS Data Server - Real-time Plugin & Repository Analytics
Overview
This PR introduces a complete MCP (Model Context Protocol) server that exposes ElizaOS ecosystem data through real-time API endpoints. The server is distributable via
npx
and provides structured access to plugin statistics, repository metadata, and ecosystem analytics.🎯 Key Features
Real Data Integration
https://elizaos.github.io/data/
MCP Framework Implementation
mcp-framework
for automatic tool discoverysrc/tools/
directoryMCPInput<this>
patternNPX Distribution Ready
npx mcp-elizaos-data
installationmcp-config-example.json
🛠️ Core Tools Implemented
list_available_plugins
elizaos-plugins_plugin-*
directoriesget_plugin_stats
get_repository_data
get_summary_data
📊 Example Usage
List Blockchain Plugins: