Excalidraw Plugin
The Excalidraw plugin uses the Excalidraw+ hosted MCP server (https://api.excalidraw.com/api/v1/mcp). Each Slack user connects their own Excalidraw+ account.
Junior exposes every tool that the server gives an OAuth connection: the drawing tools for scenes, collections, diagrams, charts, and slides. Workspace administration tools need an API key, so Junior does not get them.
Install
Section titled “Install”Install the plugin package alongside @sentry/junior:
pnpm add @sentry/junior @sentry/junior-excalidrawRuntime setup
Section titled “Runtime setup”Add the package name to the plugin set exported from plugins.ts:
import { defineJuniorPlugins } from "@sentry/junior";
export const plugins = defineJuniorPlugins(["@sentry/junior-excalidraw"]);Config
Section titled “Config”No plugin config or env vars are required. JUNIOR_BASE_URL must be a public https URL.
Auth model
Section titled “Auth model”- Excalidraw+ does not support dynamic client registration. It reads Junior’s Client ID Metadata Document at
<JUNIOR_BASE_URL>/api/oauth/client-metadata/mcp/excalidraw. You do not register an OAuth app or set a client secret. - Each user completes OAuth the first time Junior calls an Excalidraw+ MCP tool for them. They pick one Excalidraw+ workspace and allow access.
- Junior sends the authorization link privately, then resumes the same thread after the user authorizes.
- Junior acts only with the user’s role in that workspace.
What users can do
Section titled “What users can do”- Draw editable flowcharts, sequence, state, ER, and architecture diagrams from Mermaid or a description.
- Make charts, tables, sticky-note boards, and slide decks.
- Find, read, and edit existing scenes, and take screenshots of them.
- Turn a scene’s share link on or off, and make read-only links.
Safety boundaries
Section titled “Safety boundaries”- Reads, layout checks, and screenshots skip action review. Drawing, edits, deletes, and share links go through Junior’s normal MCP action review path.
- A share link lets anyone with it open the scene without signing in. A workspace admin can turn off scene sharing.
- Scene text is third-party content. Junior treats it as data, not as instructions.
Verify
Section titled “Verify”- Ask Junior:
Draw our checkout flow as an Excalidraw diagram. - Complete the private OAuth flow when Junior prompts for it.
- Confirm the thread resumes with a link to the new scene.
- Open Junior App Home and confirm Excalidraw appears under
Connected accounts.
Failure modes
Section titled “Failure modes”- The sign-in says AI connectors are off: a workspace admin turned off Allow AI connectors in Excalidraw+ Settings → API keys.
- The sign-in fails before it reaches Excalidraw+:
JUNIOR_BASE_URLis not a publichttpsURL, so Excalidraw+ cannot read the metadata document. - The scene is in the wrong workspace: a connection reaches one workspace. Disconnect from App Home with
Unlink, then connect again and pick the other workspace.
Next step
Section titled “Next step”Review Credentials & OAuth and Security Hardening.