Skip to main content

AI Tooling for Mobiscroll Connect: MCP Server & Agent Skills

Mobiscroll Connect is a backend layer: OAuth 2.0, a REST API, webhooks and SDKs in seven languages, with no UI components. This page sets up coding assistants for Connect code. For frontend code with Mobiscroll UI components, see AI Tooling for Mobiscroll UI.

Your assistant gets live, version-stamped API data from the Mobiscroll MCP server. The plugin install for Claude Code and Codex, the MCP server, the Claude app and the MCP tool reference are shared with Mobiscroll UI and live on the AI Tooling page.

Why assistants need this for Connect​

Without Connect-specific context, coding assistants often:

  • Invent endpoints: endpoint paths, request parameters, response shapes or SDK method signatures that don't exist
  • Mix UI with backend code: JSX component code when you asked about the Connect REST API, or the other way around
  • Use outdated versions: API calls or SDK code that no longer match the current Connect schema
  • Skip authentication steps: OAuth flows left out, or the wrong scopes for calendar access

The Connect docs files, rules files and skill give the assistant the current API and keep it on Connect. Review generated code before merging it, the same as any AI output.

Install and connect​

These steps are the same for Mobiscroll UI and Connect, so they are on the AI Tooling page:

MCP server​

The Mobiscroll MCP server answers your assistant's questions about Connect code while it writes: REST endpoints, SDK methods, guides and the error taxonomy, through the 10 Connect tools. The endpoint is https://mcp.mobiscroll.com/.

  • Claude Code and Codex: bundled with the mobiscroll plugin, nothing to set up.
  • Cursor and GitHub Copilot: optional, for Option B. The extended rule file calls it.

What the server does and doesn't access is described in MCP server on the AI Tooling page.

Architecture​

Connect's AI Tooling has a data layer, a rules layer and, for setups without the plugin, a routing layer. The MCP server is the live schema layer, described on the AI Tooling page.

Data layer: llms files​

Machine-readable documentation with the complete Connect API reference and guides. These are the files AI tools read to answer questions.

FileDescription
llms-connect-full.txtComplete Mobiscroll Connect documentation
llms-connect.txtConnect table of contents (links to individual pages)
info

You don't need to download or host these files: the rules files, the skill and the routing file reference them and fetch their content.

Rules layer: rules files​

Rules files give Cursor and GitHub Copilot the Connect context. Claude Code and Codex use the plugin instead. Connect has a single rules file per option, because it is one backend product with no framework split.

Option A: file-based rules, with no MCP server:

FileFormatFor
mobiscroll-connect.mdcCursor rule fileCursor
copilot-instructions/mobiscroll-connect.instructions.mdCopilot instruction fileGitHub Copilot

Option B: extended rules with the MCP server:

FileFormatFor
mobiscroll-connect-skill.mdcCursor extended ruleCursor
mobiscroll-connect-skill.instructions.mdCopilot extended instructionGitHub Copilot

Routing layer: CLAUDE.md or AGENTS.md​

A context file for Claude Code or Codex users who set Connect up without the plugin: CLAUDE.md for Claude Code, AGENTS.md for Codex. It gives the assistant domain detection signals, routing rules, API intent mapping and anti-pattern examples, so it picks the Connect documentation and never mixes Connect API calls with UI component code. With the plugin installed, neither file is needed.

AGENTS.md is the same file as CLAUDE.md, saved under the name Codex reads, so both download links below fetch connect/CLAUDE.md.

Which tool uses which files?​

ToolApproachFiles used
CursorOption Amobiscroll-connect.mdc
CursorOption Bmobiscroll-connect-skill.mdc
GitHub CopilotOption Amobiscroll-connect.instructions.md
GitHub CopilotOption Bmobiscroll-connect-skill.instructions.md
Claude CodePluginmobiscroll@mobiscroll: the mobiscroll-connect skill and the MCP server
Claude CodeWithout the pluginCLAUDE.md: manual routing, no MCP server
CodexPluginmobiscroll@mobiscroll: the mobiscroll-connect skill and the MCP server
CodexWithout the pluginAGENTS.md: manual routing, no MCP server
Claude appDirectory connectorNone: connect from Settings → Connectors

Cursor setup​

Step 1: Register the documentation source​

Open Cursor Settings → Indexing & Docs and add the Connect documentation source:

ProductNameURL
ConnectMobiscroll Connecthttps://mobiscroll.com/docs/llms-connect-full.txt

Register only this source in a Connect project. A second source, for example a UI framework's, makes the assistant mix the two.

Step 2: Add behavior rules​

Choose one option. Option A works right away. Option B adds live MCP schema lookups and needs the MCP server.

Option A: .mdc rules file​

Download mobiscroll-connect.mdc and place it in .cursor/rules/:

your-project/
├── .cursor/
│ └── rules/
│ └── mobiscroll-connect.mdc
├── src/
└── package.json

The .mdc file holds text-based API rules and needs no other setup.

Option B: extended rule file and MCP server​

Download mobiscroll-connect-skill.mdc and place it in .cursor/rules/:

your-project/
├── .cursor/
│ ├── mcp.json
│ └── rules/
│ └── mobiscroll-connect-skill.mdc
├── src/
└── package.json

This rule file tells Cursor's assistant to call the MCP server for the current Connect endpoint and SDK schemas on each generation, instead of guessing from memory. Then connect the MCP server in .cursor/mcp.json.

Rule activation​

The extended .mdc file uses alwaysApply: false with a description in its frontmatter. Cursor reads the description and activates the rule only when the context is relevant, so it isn't included in every message. You can also trigger it with @mobiscroll-connect-skill. The .mdc format works in all Cursor modes, including Agent mode.

Step 3: Use @docs in queries​

Include @docs when you ask Cursor about Connect, so 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 behavior rules​

Choose one option. Option A works right away. Option B adds live MCP schema lookups and needs the MCP server.

Option A: .instructions.md rules file​

Download mobiscroll-connect.instructions.md and place it in .github/instructions/:

your-project/
├── .github/
│ └── instructions/
│ └── mobiscroll-connect.instructions.md
├── src/
└── package.json

The .instructions.md file holds text-based API rules and needs no other setup.

Option B: extended instruction file and MCP server​

Download mobiscroll-connect-skill.instructions.md and place it in .github/instructions/:

your-project/
├── .vscode/
│ └── mcp.json
├── .github/
│ └── instructions/
│ └── mobiscroll-connect-skill.instructions.md
├── src/
└── package.json

This instruction file tells Copilot to call the MCP server for the current Connect endpoint and SDK schemas on each generation. Then connect the MCP server in .vscode/mcp.json.

What the instruction file contains​

  • Documentation URLs: point Copilot to the Connect docs
  • API mapping: maps what you ask for to the right Connect APIs
  • Rules: correct API usage, authentication flows and webhook handling
  • Constraints: keep Connect REST endpoints apart from UI component APIs

The instruction file applies to Copilot Chat queries on its own. With Option B, Copilot can also call the Connect tools of the MCP server instead of relying on the documentation snapshot alone.

Claude Code​

Install the mobiscroll plugin as described in Claude Code on the AI Tooling page. It includes the mobiscroll-connect skill, next to the UI skills. The Connect skill activates only for backend Connect work (OAuth, REST, SDKs, webhooks) and never mixes with UI component code, so installing the whole plugin is safe if you use only Connect.

How the Connect skill works​

The skill detects Connect work from your dependency manifest (@mobiscroll/connect-sdk and the SDKs for the other languages) and from Connect REST and OAuth usage, then loads the Connect conventions. When you ask for Connect code, the assistant:

  1. Detects your SDK language and version with resolveConnectEnvironment
  2. Looks up the endpoint schema (getConnectEndpointSchema) or SDK method (getConnectSdkMethod) before writing any call
  3. Uses mapConnectEndpointToSdk when it turns a REST endpoint into SDK code, and getConnectErrorTaxonomy when it writes error handling

This keeps the assistant on the current Connect API and SDK signatures instead of guessing from memory.

Without the plugin: CLAUDE.md for Claude Code​

If you prefer not to install the plugin, download CLAUDE.md and place it in your project root, or copy its contents into your existing CLAUDE.md (see File contents). Claude Code reads it when it opens your project.

your-project/
├── CLAUDE.md
├── src/
└── package.json

The file provides:

  • Domain detection: Claude detects Connect usage from package.json, import patterns and API call signatures
  • Routing rules: IF/THEN rules that select llms-connect-full.txt and never route to UI framework docs
  • API mapping: turns what you ask for into the right Connect REST endpoints and OAuth flows
  • Anti-patterns: WRONG → RIGHT examples that keep Connect API calls apart from UI component code

For live schema lookups, also add the MCP server.

Codex​

Install the mobiscroll plugin as described in Codex on the AI Tooling page. It is the same plugin as for Claude Code, with the same mobiscroll-connect skill, so the skill works in Codex as described in How the Connect skill works.

Without the plugin: AGENTS.md for Codex​

Download AGENTS.md and place it in your project root, or copy its contents into your existing AGENTS.md. It is the CLAUDE.md file above under the name Codex reads. Codex reads it when it opens your project.

your-project/
├── AGENTS.md
├── src/
└── package.json

For live schema lookups, also add the MCP server.

Domain isolation​

Critical

Mobiscroll Connect is a backend layer: OAuth 2.0, the REST API, webhooks and calendar sync. It has no UI components, no JSX and no frontend framework bindings. Never mix Connect docs with UI framework docs.

Rules:

  1. Add only the Connect rules file to a Connect project, never a UI framework's.
  2. Register only one documentation source in Cursor: llms-connect-full.txt.
  3. If your project uses both Mobiscroll UI and Connect, keep a separate AI context directory for each. See Using UI and Connect together.
  4. The MCP server serves UI and Connect from one mobiscroll server. The Connect tools all have Connect in their name, so they never collide with the UI tools, and the Connect rules files and skill keep the assistant on them for Connect work.
  5. If the assistant writes UI component code when you asked about Connect, check that mobiscroll-connect.mdc (Cursor) or mobiscroll-connect.instructions.md (Copilot) is in place.

Example queries​

Questions the Connect setup is built to answer correctly:

How do I authenticate a user with the Mobiscroll Connect OAuth flow?
How do I list all calendars for a connected Google account?
How do I create an event in an Outlook calendar via the Connect API?
What's the Python SDK call equivalent to POST /event?
How do I subscribe to webhook notifications for calendar changes?
What scopes are required for read-write calendar access?

Troubleshooting​

The assistant writes UI component code instead of Connect API calls​

Symptom: you asked about backend calendar sync or OAuth, but the assistant writes JSX components like <Eventcalendar /> instead of Connect REST API calls.

Fix: check that mobiscroll-connect.mdc is in place and that the registered @docs source in Cursor is llms-connect-full.txt, not a UI framework file. The mobiscroll MCP server has both UI and Connect tools, so check that the assistant calls the Connect tools (for example getConnectEndpointSchema), not the UI component tools.

The assistant invents endpoints or parameters​

Symptom: the assistant suggests REST endpoints, request parameters, response fields or SDK methods that don't exist in the Connect API.

Fix: the rules files tell the assistant to use only APIs found in the Connect docs. If it still happens, reference @docs in Cursor queries, or check that the plugin is installed, or that CLAUDE.md (Claude Code) or AGENTS.md (Codex) is in the project root. For the most accurate results, enable the MCP server, so the assistant fetches the current endpoint and SDK schemas with the Connect tools.

The assistant mixes Connect with UI components​

Symptom: the assistant writes REST API calls when you asked about a frontend calendar component, or component code when you asked about the Connect API.

Fix: Connect is a backend layer with no UI components; the Eventcalendar is a frontend UI component with no REST API. They use separate rules files and documentation sources, and separate tools on the one MCP server. Check that the right rules file is active for the project. If one codebase uses both, keep a separate AI context directory for each.

MCP connection problems are covered on the AI Tooling page.

File reference​

Documentation files​

FileURL
Connecthttps://mobiscroll.com/docs/llms-connect.txt
Connect (full)https://mobiscroll.com/docs/llms-connect-full.txt

Rules files​

FileCursor (.mdc)Copilot (.instructions.md)
Connect rulesmobiscroll-connect.mdccopilot-instructions/mobiscroll-connect.instructions.md

Extended rule files​

FileCursor (.mdc)Copilot (.instructions.md)
Connect skillmobiscroll-connect-skill.mdccopilot-instructions/mobiscroll-connect-skill.instructions.md

Routing files​

FileURL
Claude Code contextconnect/CLAUDE.md
Codex contextAGENTS.md

The MCP server's address is on the AI Tooling page.

File contents​

The complete contents of each file. Copy from these blocks or use the download links above.

CLAUDE.md and AGENTS.md​

View CLAUDE.md (the same file as AGENTS.md)
Loading...

Rules file (.mdc)​

View mobiscroll-connect.mdc
Loading...

Extended rule file​

View mobiscroll-connect-skill.mdc
Loading...