Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Dalamud

БесплатноНе проверен

Exposes the Dalamud plugin API documentation to AI assistants, enabling them to answer questions about services, types, and methods for writing FFXIV Dalamud pl

GitHubEmbed

Описание

Exposes the Dalamud plugin API documentation to AI assistants, enabling them to answer questions about services, types, and methods for writing FFXIV Dalamud plugins.

README

An MCP server that exposes the Dalamud plugin API documentation to AI assistants. Compatible with any MCP-capable client (Claude Desktop, Cursor, Windsurf, VS Code with Copilot, etc.). Useful when writing FFXIV Dalamud plugins — ask your assistant about services, types, and methods without leaving your editor.

Requirements

  • Node.js 18+
  • Any MCP-compatible AI assistant

Setup

npm install
npm run build

Then register the server with your MCP client. The server communicates over stdio and takes no environment variables.

Claude Desktop (%APPDATA%\Claude\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "dalamud-api": {
      "command": "/path/to/node",
      "args": ["/path/to/mcp-dalamud/dist/index.js"]
    }
  }
}

Cursor / Windsurf / other clients: refer to your client's MCP documentation — the server entry is the same command + args pair above.

Restart your client after editing the config. On first launch the server crawls dalamud.dev/api and writes a local cache to cache/dalamud-api.json (~96 namespaces, ~572 types). Subsequent starts load from disk instantly.

Tools

Tool Description
list_namespaces List all Dalamud API namespaces
get_namespace List all types in a namespace, grouped by kind
get_type Full docs for a type — properties, methods, events, declarations
search Keyword search across all types and summaries; optional kind filter (e.g. "enum", "interface")
list_enums Browse all enum types, optionally filtered by namespace or keyword
list_services List injectable services from Dalamud.Plugin.Services
find_events Find event arg types and delegate subscription points across the API
search_members Search properties/methods/events across already-loaded types (no network)
get_member Full docs for a specific member on a type
health Cache status: build time, Dalamud version, member coverage
refresh_cache Re-crawl dalamud.dev and rebuild the cache

Example prompts

  • "What services are available in Dalamud.Plugin.Services?"
  • "Show me IClientState — what properties does it have?"
  • "Search for anything related to inventory"
  • "What enums exist for inventory slot types?"
  • "How do I subscribe to framework events in Dalamud?"
  • "How do I register a slash command in Dalamud?"

These work with any MCP-capable assistant that supports tool use.

How it works

Startup: loads the cache from disk, or crawls dalamud.dev if missing/outdated. Also checks the Dalamud GitHub releases in the background — if a new version is detected, the cache rebuilds automatically.

Cache versioning: the cache carries a version field. If the on-disk cache was built by an older version of this server, it is discarded and rebuilt on the next startup.

Lazy member loading: namespace and type indexes are cached upfront. Individual member details (properties, methods, etc.) are fetched on demand the first time get_type is called for a type, then persisted to cache.

Development

npm run dev     # TypeScript watch mode
npm test        # Run tests (Vitest)
npm run build   # Compile to dist/

Tests cover search (including kind filter), searchMembers, findType, findNamespace, isEventRelated, and isValidCache — the core pure-function logic. The crawler itself (network I/O) is not unit-tested.

Project structure

src/
  index.ts          # MCP server, tool handlers
  crawler.ts        # Crawling, caching, types
  search.ts         # findType, findNamespace, search, searchMembers, isEventRelated
  type-members.ts   # groupMembersByKind, MEMBER_KIND_ORDER
  __tests__/
    crawler.test.ts
    search.test.ts
cache/
  dalamud-api.json   # generated, not committed

from github.com/MelkyWay/mcp-ffxiv-dalamud

Установка Dalamud

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/MelkyWay/mcp-ffxiv-dalamud

FAQ

Dalamud MCP бесплатный?

Да, Dalamud MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Dalamud?

Нет, Dalamud работает без API-ключей и переменных окружения.

Dalamud — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Dalamud в Claude Desktop, Claude Code или Cursor?

Открой Dalamud на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Dalamud with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai