flutterdocs_mcp 0.1.2
flutterdocs_mcp: ^0.1.2 copied to clipboard
Flutter/Dart API documentation for AI assistants and tools.
Configuration Examples and Best Practices #
Below are examples of configuring flutterdocs_mcp with various hosts and best practices for using it effectively.
Host Configuration #
The following host configuration examples use flutterdocs as the MCP server name, where applicable. This is the name that hosts will generally use in tools, menus, chat sessions, etc.
The server name flutterdocs also appears in the associated agent skill and so its use is strongly encouraged.
GitHub Copilot in VS Code #
Add the following to your mcp.json:
{
"servers": {
"flutterdocs": {
"type": "stdio",
"command": "flutterdocs_mcp",
"args": ["--db", "/path/to/flutterdocs.db"]
}
}
}
See the VS Code documentation for additional details on configuring, managing, and using MCP servers with GitHub Copilot.
Usage Tips:
- Select
Configure Toolsin chat sessions to confirmflutterdocsis selected. - Attach resources to chat sessions by selecting
Add Context > MCP Resourcesor using theMCP: Browse Resourcescommand and then choosing one of the resource templates associated withflutterdocs. - My experience is that
GPT-5 ministruggles with MCP servers. Some others may as well; I did not test all available models.
MCP Inspector #
MCP Inspector is a tool for testing and debugging MCP servers. To use flutterdocs_mcp with MCP Inspector first install Node.js and npm on your system and then run:
npx @modelcontextprotocol/inspector flutterdocs_mcp --db /path/to/flutterdocs.db
Best Practices #
Follow these best practices to get the most from flutterdocs_mcp with your AI assistant.
Agent Skill #
The most effective way to use flutterdocs_mcp is to install the flutterdocs-usage agent skill. Simply copy the contents of the file .github/skills/flutterdocs-usage/SKILL.md from this repo to your host's local skills directory.
cd /path/to/host/skills
mkdir flutterdocs-usage && cd flutterdocs-usage
curl -L -O https://raw.githubusercontent.com/smoyerx/flutterdocs_mcp/refs/heads/main/.github/skills/flutterdocs-usage/SKILL.md
Prompting #
With the flutterdocs-usage agent skill installed, AI assistants will normally consult the Flutter/Dart API documentation from flutterdocs_mcp when needed. You can force assistants to search or consult this documentation by referencing flutterdocs in prompts or by using host-specific mechanisms.
Prompt examples:
- summarize materialpageroute usage from flutterdocs
- explain flutter slivers. reference flutterdocs to verify api details.
- search flutterdocs for widgets that support nested scrolling
You can also reference flutter-docs://api/... URIs in prompts (e.g., flutter-docs://api/material/ListTile), but this is less convenient except when used to attach context.
Host-specific mechanisms are described with corresponding host configuration details.