dannygauntletai/timeback-mcp-server
If you are the rightful owner of timeback-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The TimeBack MCP Server is a comprehensive Model Context Protocol server designed for the TimeBack 1EdTech platform, facilitating data model synchronization, integration management, and API interaction for educational technology.
load-timeback-specs
Load all TimeBack OpenAPI specifications.
analyze-api-endpoints
Analyze endpoints with filtering by API, tag, or method.
search-api-documentation
Search across all API documentation.
compare-data-models
Compare schemas between different APIs.
generate-integration-mapping
Create integration templates.
TimeBack MCP Server
A comprehensive Model Context Protocol (MCP) server for the TimeBack 1EdTech platform that helps developers sync data models, manage integrations, and work with educational technology APIs.
Overview
The TimeBack MCP Server provides a unified interface for working with all five TimeBack 1EdTech APIs:
- QTI (Question & Test Interoperability) - Assessment engine for educational assessments
- OneRoster - Student information and roster data exchange
- Caliper - Learning analytics and activity tracking
- PowerPath - Mastery learning and personalized learning paths
- CASE - Competencies and Academic Standards Exchange
Features
š ļø Developer Tools
- Multi-API Integration - Work with all 5 TimeBack APIs through a single interface
- Data Model Synchronization - Compare and sync data models across different APIs
- Schema Validation - Validate data against OpenAPI specifications
- Integration Mapping - Generate templates for API integrations
- Comprehensive Search - Search across all API documentation and schemas
- Intelligent Codebase Analysis - Analyze your existing codebase and get tailored TimeBack integration recommendations
- Advanced Documentation Crawler - Automatically crawl, index, and search TimeBack documentation from multiple sources
- Multi-Format Documentation Support - Handle Swagger/OpenAPI, Scalar docs, Google Docs, and video content
- Intelligent Content Extraction - Extract code examples, API patterns, and integration guides from documentation
š§ MCP Tools
Core API Tools
load-timeback-specs
- Load all TimeBack OpenAPI specificationsanalyze-api-endpoints
- Analyze endpoints with filtering by API, tag, or methodsearch-api-documentation
- Search across all API documentationcompare-data-models
- Compare schemas between different APIsgenerate-integration-mapping
- Create integration templatesvalidate-api-integration
- Validate integration configurationsgenerate-api-documentation
- Generate comprehensive API docs
Intelligent Analysis Tools
analyze-codebase-integration
- Analyze your codebase and recommend TimeBack integrations
Documentation Crawler Tools
crawl-timeback-documentation
- Crawl and index comprehensive TimeBack documentation from multiple sourcessearch-comprehensive-docs
- Search across all crawled documentation with advanced filteringget-api-examples
- Extract and retrieve code examples from documentationcompare-api-implementations
- Compare API implementations across different documentation formatsget-integration-patterns
- Get integration patterns and best practices from crawled content
š MCP Resources
timeback://apis/overview
- Overview of all TimeBack APIstimeback://schemas/all
- Complete schema definitionstimeback://endpoints/all
- All API endpointstimeback://integration/templates
- Integration templates
Installation
- Clone the repository:
git clone https://github.com/dannygauntletai/timeback-mcp-server.git
cd timeback-mcp-server
- Install dependencies:
npm install
- Build the project:
npm run build
- Configure environment variables:
cp .env.example .env
# Edit .env with your TimeBack API credentials and crawler settings
- Initialize documentation crawler (optional):
npm run crawler:init
# Downloads and indexes initial documentation
Configuration
Create a .env
file with your TimeBack platform credentials:
# TimeBack API Base URLs
TIMEBACK_QTI_BASE_URL=https://qti.alpha-1edtech.com/api
TIMEBACK_ONEROSTER_BASE_URL=https://api.alpha-1edtech.com
TIMEBACK_CALIPER_BASE_URL=https://caliper.alpha-1edtech.com
TIMEBACK_POWERPATH_BASE_URL=https://api.alpha-1edtech.com
TIMEBACK_CASE_BASE_URL=https://api.alpha-1edtech.com
# OAuth2 Configuration
OAUTH2_TOKEN_URL=https://alpha-auth-production-idp.auth.us-west-2.amazoncognito.com/oauth2/token
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
# Server Configuration
MCP_SERVER_NAME=timeback-mcp-server
MCP_SERVER_VERSION=1.0.0
LOG_LEVEL=info
# Documentation Crawler Configuration
CRAWLER_MAX_RETRIES=3
CRAWLER_RETRY_DELAY=2000
CRAWLER_TIMEOUT=30000
CRAWLER_RATE_LIMIT=1000
CRAWLER_RESPECT_ROBOTS_TXT=true
CRAWLER_SCHEDULE_ENABLED=true
CRAWLER_SCHEDULE_INTERVAL=24h
CRAWLER_INCREMENTAL_UPDATES=true
CRAWLER_EXTRACT_CODE_EXAMPLES=true
CRAWLER_BUILD_RELATIONSHIPS=true
CRAWLER_INDEX_METADATA=true
Usage
Running the MCP Server
npm start
Development Mode
npm run dev
Crawler Management
# Initialize crawler and download documentation
npm run crawler:init
# Run crawler manually
npm run crawler:run
# Check crawler status
npm run crawler:status
# Clear crawler cache
npm run crawler:clear
Using with Claude Desktop
Add to your Claude Desktop MCP configuration:
{
"mcpServers": {
"timeback": {
"command": "node",
"args": ["/path/to/timeback-mcp-server/build/index.js"],
"env": {
"CLIENT_ID": "your_client_id",
"CLIENT_SECRET": "your_client_secret"
}
}
}
}
Example Usage
Load TimeBack API Specifications
Use the load-timeback-specs tool to load all API specifications:
- Loads QTI, OneRoster, Caliper, PowerPath, and CASE APIs
- Parses OpenAPI specifications
- Makes all endpoints and schemas available for analysis
Search API Documentation
Use search-api-documentation to find relevant endpoints:
- Query: "student"
- Search in: endpoints, schemas, descriptions
- Filter by specific API if needed
Compare Data Models
Use compare-data-models to understand schema differences:
- Compare OneRoster "User" with QTI "Candidate"
- Identify common properties and differences
- Generate mapping suggestions
Generate Integration Templates
Use generate-integration-mapping for common integrations:
- Source: OneRoster (student data)
- Target: Caliper (learning analytics)
- Use case: "sync-student-data"
Analyze Your Codebase for TimeBack Integration
Use analyze-codebase-integration to get personalized recommendations:
- Provide path to your application codebase
- Get systematic analysis of your project structure, dependencies, and patterns
- Receive tailored TimeBack API integration suggestions
- Get specific data models, endpoints, environment variables, and implementation steps
Example Usage:
"How do I integrate my codebase with TimeBack?"
Input: { "projectPath": "/path/to/your/app" }
Output: Comprehensive analysis including:
- Detected project type, language, and framework
- Identified educational patterns (user management, assessments, analytics)
- Prioritized TimeBack API recommendations (OneRoster, QTI, Caliper, etc.)
- Specific integration steps and code examples
- Required environment variables and dependencies
This tool performs almost like a deep research call on your codebase combined with the MCP server's knowledge of TimeBack APIs, providing intelligent recommendations based on your actual application structure and needs.
Documentation Crawler Architecture
The TimeBack MCP Server includes a sophisticated documentation crawler that automatically indexes comprehensive documentation from multiple TimeBack API sources.
š·ļø Crawler Capabilities
Supported Documentation Formats
- Swagger/OpenAPI Documentation - Interactive API documentation with live examples
- Scalar Documentation - Modern API documentation with enhanced UX
- Google Docs - Rich text documentation with embedded content
- Video Content - Loom videos and other educational content (metadata extraction)
- Static HTML - Traditional documentation websites
Crawled Documentation Sources
- QTI API: https://qti.alpha-1edtech.com/docs/, OpenAPI specs, Google Docs guides
- OneRoster API: https://api.alpha-1edtech.com/scalar/, OpenAPI specifications
- Caliper API: https://caliper.alpha-1edtech.com/, comprehensive analytics documentation
- PowerPath API: https://api.alpha-1edtech.com/scalar?api=powerpath-api, mastery learning docs
- CASE API: https://api.alpha-1edtech.com/scalar?api=case-api, standards documentation
- OpenBadge & CLR: Video walkthroughs and implementation guides
š Advanced Documentation Tools
Crawl TimeBack Documentation
Use crawl-timeback-documentation to index all available documentation:
- Automatically discovers and crawls all TimeBack API documentation
- Extracts code examples, integration patterns, and best practices
- Builds searchable index with relationships between concepts
- Supports incremental updates and scheduling
Search Comprehensive Documentation
Use search-comprehensive-docs for intelligent documentation search:
- Query: "student enrollment workflow"
- Search across: all APIs, code examples, integration guides
- Filter by: API type, content format, difficulty level
- Get: relevant snippets with source links and context
Extract API Examples
Use get-api-examples to find implementation examples:
- API: "oneroster"
- Functionality: "create student"
- Returns: code examples, request/response samples, integration patterns
Compare API Implementations
Use compare-api-implementations to understand differences:
- Source API: "oneroster" (user management)
- Target API: "caliper" (person entities)
- Functionality: "user representation"
- Returns: detailed comparison with mapping suggestions
Get Integration Patterns
Use get-integration-patterns for best practices:
- APIs: ["oneroster", "caliper"]
- Use Case: "student analytics pipeline"
- Difficulty: "intermediate"
- Returns: step-by-step integration patterns with code examples
āļø Crawler Configuration
The crawler supports extensive configuration options:
# Crawler Settings
CRAWLER_MAX_RETRIES=3
CRAWLER_RETRY_DELAY=2000
CRAWLER_TIMEOUT=30000
CRAWLER_RATE_LIMIT=1000
CRAWLER_RESPECT_ROBOTS_TXT=true
# Scheduling
CRAWLER_SCHEDULE_ENABLED=true
CRAWLER_SCHEDULE_INTERVAL=24h
CRAWLER_INCREMENTAL_UPDATES=true
# Content Processing
CRAWLER_EXTRACT_CODE_EXAMPLES=true
CRAWLER_BUILD_RELATIONSHIPS=true
CRAWLER_INDEX_METADATA=true
šļø Crawler Architecture
Components
- DocumentationCrawler - Core crawling engine with multi-format support
- DocumentationIndexer - Advanced indexing with full-text search and relationships
- DocumentationStore - Persistent storage with versioning and caching
- CrawlerScheduler - Automated scheduling and incremental updates
Processing Pipeline
- Discovery - Identify documentation sources and formats
- Crawling - Extract content using format-specific parsers
- Processing - Clean, structure, and enhance content
- Indexing - Build searchable index with relationships
- Storage - Persist with versioning and metadata
- Serving - Provide fast search and retrieval through MCP tools
Content Enhancement
- Code Example Extraction - Automatically identify and extract code snippets
- Relationship Building - Connect related concepts across different APIs
- Pattern Recognition - Identify common integration patterns and best practices
- Metadata Enrichment - Add tags, categories, and difficulty levels
MCP Server Integration Patterns
The TimeBack MCP Server supports advanced integration patterns that allow it to work seamlessly with other MCP servers, creating powerful multi-server workflows and data sharing capabilities.
š Integration Architecture
The TimeBack MCP Server acts as both a standalone MCP server and an integration hub that can:
- Chain multiple MCP servers for complex workflows
- Compose tools from different servers into unified operations
- Share resources across server boundaries
- Emit real-time events for integration status changes
- Provide SSE endpoints for MCP Hive-style integrations
š ļø Integration Patterns
1. MCP Server Chaining Pattern
Chain multiple MCP servers to create complex, multi-step workflows that span different domains.
Use Case: Educational workflow that combines student data (OneRoster), assessment creation (QTI), and analytics tracking (Caliper)
Configuration:
INTEGRATION_ENABLED=true
INTEGRATION_SERVER_CHAINING=true
Example Workflow:
{
"name": "student-assessment-workflow",
"workflow": [
{
"id": "fetch-students",
"server": "oneroster-server",
"tool": "get-students",
"params": { "classId": "class-123" }
},
{
"id": "create-assessment",
"server": "timeback",
"tool": "generate-qti-assessment",
"params": { "subject": "math", "difficulty": "intermediate" },
"dependsOn": ["fetch-students"]
},
{
"id": "track-analytics",
"server": "analytics-server",
"tool": "setup-tracking",
"params": { "assessmentId": "${create-assessment.result.id}" },
"dependsOn": ["create-assessment"]
}
]
}
2. Tool Composition Pattern
Combine tools from multiple MCP servers into unified operations that appear as single tools to clients.
Use Case: Create a "complete-student-onboarding" tool that combines user creation, enrollment, and initial assessment setup
Configuration:
INTEGRATION_ENABLED=true
INTEGRATION_TOOL_COMPOSITION=true
Usage:
# Use the compose-integration-workflow tool
# This creates a unified workflow from multiple server tools
3. Shared Resource Pattern
Share resources like documentation, schemas, and integration patterns across multiple MCP servers.
Use Case: Multiple educational MCP servers can access TimeBack's comprehensive API documentation and integration templates
Configuration:
INTEGRATION_ENABLED=true
INTEGRATION_SHARED_RESOURCES=true
Available Shared Resources:
timeback://integration/patterns
- Integration patterns and best practicestimeback://integration/servers
- Connected server information and capabilitiestimeback://documentation/indexed
- All indexed TimeBack API documentation
4. Event-Driven Integration Pattern
Real-time event notifications for integration status changes, server connections, and workflow completions.
Use Case: Notify dependent systems when TimeBack integration status changes or when workflows complete
Configuration:
INTEGRATION_ENABLED=true
INTEGRATION_EVENT_DRIVEN=true
Event Types:
server_connected
- New MCP server connectedserver_disconnected
- MCP server disconnectedworkflow_completed
- Integration workflow finishedworkflow_failed
- Integration workflow encountered error
5. SSE-Based Integration Pattern (MCP Hive Compatible)
Server-Sent Events endpoints for real-time integration with MCP Hive and other SSE-compatible systems.
Use Case: Real-time dashboard showing TimeBack integration status and live workflow execution
Configuration:
INTEGRATION_ENABLED=true
INTEGRATION_SSE=true
INTEGRATION_SSE_ENABLED=true
INTEGRATION_SSE_PORT=3001
INTEGRATION_SSE_CORS_ORIGINS=*
SSE Endpoints:
GET /events
- Main SSE event streamGET /events/health
- Health check endpointGET /events/stats
- Integration statisticsPOST /events/broadcast
- Broadcast custom events
š§ Integration Tools
The TimeBack MCP Server provides specialized tools for managing integrations:
connect-mcp-server
Connect to downstream MCP servers for integration workflows.
{
"name": "connect-mcp-server",
"arguments": {
"name": "analytics-server",
"transport": "sse",
"url": "http://localhost:3002"
}
}
get-integration-status
Get current status of all integrations and connected servers.
{
"name": "get-integration-status",
"arguments": {}
}
get-integration-health
Perform health checks on integration manager and connected servers.
{
"name": "get-integration-health",
"arguments": {}
}
compose-integration-workflow
Create and execute multi-server workflows.
{
"name": "compose-integration-workflow",
"arguments": {
"name": "student-data-sync",
"workflow": [...]
}
}
š Authentication Strategy
The TimeBack MCP Server uses a layered authentication approach for multi-server integrations:
Primary Authentication
- OAuth2 Client Credentials flow for TimeBack APIs
- Automatic token refresh and caching
- Secure credential storage via environment variables
Proxy Authentication
- Credential forwarding to downstream MCP servers when needed
- Token sharing for servers that support TimeBack authentication
- Isolated authentication for servers with independent auth systems
Configuration
# Primary TimeBack Authentication
OAUTH2_TOKEN_URL=https://alpha-auth-production-idp.auth.us-west-2.amazoncognito.com/oauth2/token
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
# Integration Authentication (optional)
INTEGRATION_AUTH_FORWARD=true
INTEGRATION_AUTH_TIMEOUT=30000
š Getting Started with Integrations
1. Enable Integration Features
# Basic integration setup
INTEGRATION_ENABLED=true
INTEGRATION_SERVER_CHAINING=true
INTEGRATION_TOOL_COMPOSITION=true
INTEGRATION_SHARED_RESOURCES=true
2. Connect to Other MCP Servers
# Use the connect-mcp-server tool to establish connections
# Supports HTTP, WebSocket, and SSE transports
3. Create Integration Workflows
# Use compose-integration-workflow to create multi-server workflows
# Define dependencies and data flow between servers
4. Monitor Integration Health
# Use get-integration-status and get-integration-health
# Monitor connected servers and workflow execution
š MCP Hive Compatibility
The TimeBack MCP Server is fully compatible with MCP Hive integration patterns:
- SSE Transport: Uses standard Server-Sent Events for real-time communication
- Event Schema: Compatible with MCP Hive event formats
- Health Endpoints: Standard health check and statistics endpoints
- CORS Support: Configurable CORS for web-based integrations
š Integration Configuration Reference
# Core Integration Settings
INTEGRATION_ENABLED=true # Enable integration features
INTEGRATION_SERVER_CHAINING=true # Enable server chaining pattern
INTEGRATION_TOOL_COMPOSITION=true # Enable tool composition pattern
INTEGRATION_SHARED_RESOURCES=true # Enable shared resource pattern
INTEGRATION_EVENT_DRIVEN=true # Enable event-driven pattern
INTEGRATION_SSE=true # Enable SSE-based pattern
# SSE Configuration
INTEGRATION_SSE_ENABLED=true # Enable SSE endpoints
INTEGRATION_SSE_PORT=3001 # SSE server port
INTEGRATION_SSE_CORS_ORIGINS=* # CORS origins (comma-separated)
# Authentication
INTEGRATION_AUTH_FORWARD=true # Forward auth to downstream servers
INTEGRATION_AUTH_TIMEOUT=30000 # Auth timeout in milliseconds
API Integration Examples
Student Data Synchronization
// 1. Fetch students from OneRoster
// 2. Map to Caliper Person entities
// 3. Track learning activities
Assessment Workflow
// 1. Create assessment in QTI
// 2. Track attempts in Caliper
// 3. Update mastery in PowerPath
// 4. Map to CASE standards
Development
Project Structure
src/
āāā config/ # Configuration management
āāā server/ # Main MCP server implementation
āāā services/ # Core services
ā āāā auth.ts # OAuth2 authentication
ā āāā openapi-parser.ts # OpenAPI specification parsing
ā āāā codebase-analyzer.ts # Intelligent codebase analysis
ā āāā documentation-crawler.ts # Multi-format documentation crawler
ā āāā documentation-indexer.ts # Advanced search and indexing
ā āāā documentation-store.ts # Persistent storage with versioning
ā āāā crawler-scheduler.ts # Automated crawling and updates
āāā utils/ # Utilities (logging, errors)
āāā types/ # TypeScript type definitions
Adding New Tools
- Define tool schema in
setupToolHandlers()
- Implement tool logic in the server class
- Add proper error handling and logging
- Update documentation
Testing
npm test
TimeBack Platform APIs
QTI (Question & Test Interoperability)
- Purpose: Assessment creation and delivery
- Base URL: https://qti.alpha-1edtech.com/api
- Key Features: Assessment tests, items, stimuli, scoring
OneRoster
- Purpose: Student information system integration
- Base URL: https://api.alpha-1edtech.com
- Key Features: Users, classes, enrollments, grades
Caliper
- Purpose: Learning analytics and activity tracking
- Base URL: https://caliper.alpha-1edtech.com
- Key Features: Learning events, entities, profiles
PowerPath
- Purpose: Mastery learning and personalized paths
- Base URL: https://api.alpha-1edtech.com
- Key Features: Learning objectives, mastery tracking, adaptive paths
CASE
- Purpose: Academic standards and competencies
- Base URL: https://api.alpha-1edtech.com
- Key Features: Standards frameworks, competencies, alignments
Authentication
All TimeBack APIs use OAuth2 client credentials flow:
- Obtain client ID and secret from TimeBack platform team
- Configure in environment variables
- Server automatically handles token refresh
- Tokens are cached and reused until expiration
Error Handling
The server includes comprehensive error handling:
- OAuth2 authentication failures
- API rate limiting
- Network connectivity issues
- Invalid data validation
- Schema parsing errors
Logging
Configurable logging levels:
debug
- Detailed debugging informationinfo
- General operational messageswarn
- Warning conditionserror
- Error conditions
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
ISC License
Support
For support with the TimeBack platform APIs, contact the 1EdTech platform team. For issues with this MCP server, please open a GitHub issue.
Built for the TimeBack 1EdTech Platform