Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Example: MCP Mermaid agent

Connect a public MCP server (Agentic Mermaid), discover tools, optionally call one directly, then run a tool agent that can verify, describe, and ASCII-render Mermaid diagrams.

Flow

  mcp.connect(endpoint)
         │
         â–¼
  Discover tools (verify, describe, render_ascii)
         │
         â–¼
  defineAgent({ tools: [...] })
         │
         â–¼
  runAgent({ input: "create a 3-tier diagram…" })
         │
         â–¼
  Final answer

Requires network access to the MCP endpoint and a DNotifier app with AI enabled (transport: "http").

Prerequisites

  1. DNotifier app with AI enabled

  2. Outbound HTTPS to the MCP server

  3. SDK credentials

Language guides

Language
Guide

JavaScript / TypeScript

Dart / Flutter

Python

Next steps

Last updated