ExMCP API Reference
This API reference provides detailed information about the Extension Model Context Protocol (ExMCP), helping you build powerful AI-enhanced extensions for ThinkCode.
Core Protocol Components
ExMCP consists of three main components that work together to enhance AI capabilities:
1. Context Providers
Context providers supply relevant information to AI models to improve their understanding and responses:
2. Model Extensions
Model extensions can enhance or modify AI model behavior:
3. Protocol Extensions
Protocol extensions define new ways for components to communicate:
Extension Manifest
Every ExMCP extension needs a manifest file (package.json
) with the following fields:
Common API Patterns
Context Types
ExMCP supports various types of context:
Relevance Scoring
ExMCP provides utilities for scoring context relevance: