MCP Compliance
CTP tools are designed for full compatibility with the Model Context Protocol (MCP).Overview
MCP is Anthropic’s open protocol for AI-tool integration. CTP extends MCP with browser-native capabilities while maintaining full compatibility.Automatic Conversion
CTP tools automatically convert to MCP format
Bidirectional
MCP tools can be imported as CTP tools
Field Mapping
CTP → MCP Conversion
| CTP Field | MCP Field | Conversion |
|---|---|---|
id | name | Direct copy |
name | title | Direct copy |
description | description | Direct copy |
parameters[] | inputSchema | Convert to JSON Schema |
aiInstructions | instructions | Direct copy |
Parameter to JSON Schema
Conversion API
Generate MCP Manifest
Output Structure
Type Mapping
CTP Types to JSON Schema
| CTP Type | JSON Schema Type | Additional Properties |
|---|---|---|
text | string | - |
textarea | string | - |
number | number | minimum, maximum |
boolean | boolean | - |
select | string | enum |
json | object | - |
file | string | format: "binary" |
color | string | pattern: "^#[0-9a-fA-F]{6}$" |
date | string | format: "date" |
datetime | string | format: "date-time" |
url | string | format: "uri" |
email | string | format: "email" |
Validation Mapping
| CTP Validation | JSON Schema |
|---|---|
minLength | minLength |
maxLength | maxLength |
pattern | pattern |
min | minimum |
max | maximum |
step | multipleOf |
Import MCP Tools
Convert MCP tools to CTP format:Serving MCP Endpoint
Well-Known URL
With Tool Execution
AI Assistant Integration
Claude Desktop
Add toclaude_desktop_config.json:
Cursor
Configure in Cursor settings:Best Practices
1. Include AI Instructions
2. Provide Clear Descriptions
3. Include Examples
4. Use Parameter Hints
Compatibility Matrix
| Feature | CTP | MCP | Notes |
|---|---|---|---|
| Tool definitions | ✅ | ✅ | Full compatibility |
| Parameters | ✅ | ✅ | Converted to JSON Schema |
| Results | ✅ | ✅ | Compatible format |
| AI instructions | ✅ | ✅ | Direct mapping |
| Browser execution | ✅ | ❌ | CTP-specific |
| Autosense styling | ✅ | ❌ | CTP-specific |
| Discovery docs | ✅ | ✅ | MCP manifest generated |