mcp
A GitHub-based implementation of the Model Context Protocol that enables LLMs to access and manipulate data in a Universal Object Reference (UOR) framework, providing standardized interfaces for object management with decentralized storage.
A GitHub-based implementation of the Model Context Protocol that enables LLMs to access and manipulate data in a Universal Object Reference (UOR) framework, providing standardized interfaces for object management with decentralized storage.
UOR believes in co-creation: humans craft meaning, machines extend it.
Start here ➜ Comprehensive Documentation
Need vectors? ➜ Embeddings for Vector Search
Issue? Ping us: [email protected]
The Model Context Protocol (MCP) implementation for the Universal Object Reference (UOR) Framework provides a standardized way for LLMs to access and manipulate UOR data. This implementation uses GitHub for data storage and version control, enabling a decentralized approach to UOR data management.
To run the MCP server using Docker:
# Build the Docker image
docker-compose build
# Start the server
docker-compose up
# Access the server at http://localhost:8080
# Clone the repository
git clone https://github.com/UOR-Foundation/mcp.git
cd mcp
# Install dependencies
npm ci
# Build the project
npm run build
# Run tests
npm test
# Start development server
npm run dev
# Start client in development mode
npm run dev:client
# Access the client at http://localhost:8080
# Run tests
npm test
# Run tests with coverage
npm test -- --coverage
# Run specific test file
npm test -- src/core/tests/uor-coherence.test.ts
# Build for production
npm run build
# Build client for production
npm run build:client
This implementation follows the core UOR architecture, built around the trilateral coherence relationship between:
The MCP server inherits from the UOR abstract TypeScript class, ensuring that all UOR invariant properties are maintained while providing an interface compatible with the MCP specification.
github.com/UOR-Foundation/mcp
github.com/<username>/uordb
repositoryhttps://raw.githubusercontent.com/<username>/uordb/main/...
)uordb
repository using GitHub API<username>/uordb
)<username>/uordb/resolvers/
The MCP implementation supports the standard MCP protocol features:
uor://<namespace>/<type>/<id>
This implementation provides access to the UOR core features:
The easiest way to use the MCP server is through our GitHub Pages deployment:
To deploy your own instance:
https://api.netlify.com/auth/done
https://your-site-name.netlify.app
)This application uses Netlify s built-in OAuth proxy for secure GitHub authentication:
https://api.netlify.com/auth/done
in your GitHub OAuth app settingsTo deploy to Netlify:
npm run build && npm run build:client
dist/public
GITHUB_CLIENT_ID
: Your GitHub OAuth app client IDGITHUB_CLIENT_SECRET
: Your GitHub OAuth app client secretAlternatively, you can use URL parameters to configure your deployment:
https://68113dd199a34737508b5211--uor-mcp.netlify.app/?github_client_id=YOUR_CLIENT_ID&token_exchange_proxy=YOUR_PROXY_URL
To use this MCP server with LLM applications:
https://68113dd199a34737508b5211--uor-mcp.netlify.app/mcp
initialize
- Set up the connectiontools/list
- List available UOR toolsresources/list
- List available UOR resourcestools/call
- Execute UOR operations/mcp
├── src/ # Source code
│ ├── core/ # UOR abstract classes implementation
│ ├── github/ # GitHub API integration
│ ├── mcp/ # MCP protocol implementation
│ ├── resolvers/ # Namespace resolution logic
│ ├── schema/ # JSON Schema validation
│ ├── content/ # Content management
│ ├── identity/ # User identity and profiles
│ ├── messaging/ # User messaging system
│ ├── pubsub/ # Publish/subscribe system
│ ├── decomposition/ # Prime decomposition algorithms
│ └── storage/ # Storage providers (GitHub, IPFS)
├── models/ # JSON Schema models
├── public/ # Static files for GitHub Pages
│ ├── components/ # UI components
│ └── config.js # Client configuration
├── .github/ # GitHub Actions workflows
├── tests/ # Test suite
└── dist/ # Build output
Please see CONTRIBUTING.md for guidelines on how to contribute to this project.
The MCP implementation is built as a TypeScript application that inherits from the UOR abstract class. It provides a faithful implementation of the Model Context Protocol while leveraging the mathematical foundation of the UOR Framework.
The server uses the following key technologies: - TypeScript for type-safe implementation - GitHub API for storage and authentication - JSON Schema for validation - MCP protocol for client/server communication - Vite for optimized builds
All content is stored in its reversible, base-independent representation, ensuring information integrity regardless of how the data is accessed or viewed. This implementation maintains a clean separation between the UOR kernel (abstract class) and the MCP protocol layer, allowing for future protocol upgrades without affecting the core UOR functionality.
This project is licensed under the MIT License - see the LICENSE file for details.