AI Integration
Mobiscroll provides a set of machine-readable documentation files, AI behavior rules, and a live MCP server that enable coding assistants to generate accurate Connect API code. These prevent common AI issues like hallucinated endpoints, mixing Connect API calls with UI component code, and outdated authentication patterns.
Why AI integration?
AI coding assistants work best when they have access to structured, authoritative documentation. Without it, they often:
- Hallucinate APIs — invent endpoint paths, request parameters, response shapes, or SDK method signatures that don't exist
- Mix UI with backend — generate JSX component code when asked about the Connect REST API, or vice versa
- Reference outdated versions — generate API calls or SDK code that no longer match the current Connect schema
- Ignore authentication requirements — skip OAuth flows or use incorrect scopes for calendar access
The Mobiscroll AI integration solves these problems by providing Connect-specific documentation optimized for AI consumption, combined with behavior rules that enforce domain isolation, and an optional MCP server that serves live, version-stamped endpoint and SDK schemas on demand.
Architecture overview
The integration consists of four layers:
Data layer — llms files
Machine-readable documentation files containing the complete Mobiscroll Connect API reference and guides. These are the source of truth that AI tools read to answer questions.
| File | Description |
|---|---|
llms-connect-full.txt | Complete Mobiscroll Connect documentation |
llms-connect.txt | Connect table of contents (links to individual pages) |
llms-icons.txt | Icon names (IcoMoon, Font Awesome, Ionicons) — all frameworks |
You don't need to download or host these files — the rules and routing layers reference them directly and fetch their content automatically.
Rules layer — .mdc files
Behavior rule files that tell AI assistants which package to use, which APIs are available, and what to avoid.
| File | Domain |
|---|---|
mobiscroll-connect.mdc | Mobiscroll Connect (backend / API) |
Routing layer — CLAUDE.md
A context file specifically for Claude Code that provides domain detection signals, deterministic routing rules, API intent mapping, and anti-pattern examples. It ensures Claude selects the Connect documentation and never conflates Connect API calls with UI component code.
Live schema layer — MCP server
The Mobiscroll MCP server serves structured, version-stamped knowledge over the Model Context Protocol. It is a single, unified server: the same mobiscroll server that serves UI component schemas also exposes the Connect tools, generated directly from the Connect REST source and the 7-language SDK suite. The Connect tools are all prefixed Connect so they never collide with the UI component tools. Instead of relying on documentation snapshots, an assistant can call these tools to fetch the exact endpoint schema, SDK method signature, or cross-language equivalent it needs at generation time.
It is a hosted HTTP server at https://mcp.dev.mobiscroll.com/ — no local install required.
| Tool | What it does |
|---|---|
resolveConnectEnvironment | Detects which Connect SDK (language + version) a project uses from its dependency manifest, and echoes the served versions. Call this first. |
listConnectEndpoints | Lists every Connect REST endpoint with its method, path, summary, and authentication. |
getConnectEndpointSchema | Returns one endpoint's full schema — query/body params with types, authentication, responses, status codes, and examples. |
listConnectSdkMethods | Lists a language's resources (auth / calendars / events) and the methods on each. |
getConnectSdkMethod | Returns one SDK method's full signature, doc, params, return type, and example, in the language you pick. |
searchConnect | Searches REST endpoints and SDK methods across all languages by keyword, ranked by relevance. |
mapConnectEndpointToSdk | Maps a REST endpoint to its equivalent SDK call in each language — built on the SDKs' shared surface. |
getConnectErrorTaxonomy | Returns the shared error categories and the idiomatic exception type for each language. |
Which tool uses which files?
| AI Tool | Documentation Source | Behavior Rules | Routing | Live lookups (MCP) |
|---|---|---|---|---|
| Cursor | llms-connect-full.txt via @docs | mobiscroll-connect.mdc | — | mobiscroll server (Connect tools) |
| GitHub Copilot | .mdc file (contains doc URLs) | .mdc file | — | mobiscroll server (Connect tools) |
| Claude Code | llms-connect-full.txt | CLAUDE.md | CLAUDE.md | mobiscroll server (Connect tools) |
Cursor setup
Step 1: Register documentation sources
Open Cursor Settings → Indexing & Docs and add the documentation source for Connect:
| Framework | Name | URL |
|---|---|---|
| Connect | Mobiscroll Connect | https://dev.mobiscroll.com/docs/llms-connect-full.txt |
Only register the source matching your use case. Do not register multiple sources — this prevents cross-domain contamination.
Step 2: Add the rules file
Download the mobiscroll-connect.mdc file and place it in your project's .cursor/rules/ directory:
your-project/
├── .cursor/
│ └── rules/
│ └── mobiscroll-connect.mdc
├── src/
├── package.json
└── ...
Step 3: Configure the MCP server (Optional)
For live endpoint and SDK lookups, configure the Mobiscroll Connect MCP server so Cursor can call it during generation.
Create or edit .cursor/mcp.json in your project root:
{
"mcpServers": {
"mobiscroll": {
"url": "https://mcp.dev.mobiscroll.com/"
}
}
}
type fieldCursor infers the transport type from the URL. Do not add "type": "http" to Cursor's config — it causes an error.
your-project/
├── .cursor/
│ ├── mcp.json
│ └── rules/
│ └── mobiscroll-connect.mdc
├── src/
└── package.json
| Scope | Config file | Shared with team |
|---|---|---|
| project | .cursor/mcp.json in project root | Yes, if committed |
| global | ~/.cursor/mcp.json | No, all your projects |
Verify the connection: Open the Output panel in Cursor and select MCP Logs from the dropdown. A successful connection logs tool discovery messages for the mobiscroll server, including the Connect-prefixed tools.
Step 4: Use @docs in queries
When asking Cursor about Mobiscroll Connect, include @docs to ensure it reads the registered documentation:
@docs How do I authenticate a user with the Mobiscroll Connect OAuth flow?
@docs How do I list all calendars for a connected Google account?
GitHub Copilot setup
Step 1: Add the rules file
Download the mobiscroll-connect.mdc file and place it at the root of your project or alternatively copy it's content to the rules files under the .github/ directory:
your-project/
├── mobiscroll-connect.mdc
├── .github/
| ├── copilot-instructions.md <-- Global repo rules
| └── instructions/
| └── connect-logic.instructions.md <-- Specific rules
├── src/
├── package.json
└── ...
The .mdc file will automatically influence Copilot responses when you work on files in that project. It tells Copilot which APIs are available and how to use them correctly.
Step 2: Configure the MCP server (Optional)
For live endpoint and SDK lookups, configure the Mobiscroll Connect MCP server so VS Code can call it during generation.
Create or edit .vscode/mcp.json in your project root:
{
"servers": {
"mobiscroll": {
"type": "http",
"url": "https://mcp.dev.mobiscroll.com/"
}
}
}
"servers" not "mcpServers"VS Code uses "servers" as the root key — not "mcpServers" like Claude Code and Cursor. Using the wrong key silently breaks the config with no error message.
your-project/
├── .vscode/
│ └── mcp.json
├── .github/
│ └── instructions/
│ └── connect-logic.instructions.md