
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A Dart package that analyzes a Flutter/Dart project structure and serves the results to AI agents through an MCP server over stdio JSON-RPC.
Flutter Project Structure — MCP server for Flutter/Dart codebase context is cataloged as an MCP server attributed to msi-shamim. A Dart package that analyzes a Flutter/Dart project structure and serves the results to AI agents through an MCP server over stdio JSON-RPC. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Flutter Project Structure — MCP server for Flutter/Dart codebase context are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The server exposes 8 tools, including get_architecture, get_file_purpose, get_dependencies, get_conventions, get_todos, get_file_skeleton, get_file_graph and get_project_structure.
With --watch, the server re-analyzes when .dart files change, with a 2-second debounce.
No; skeletons drop method bodies, so behavior is not captured, and this works best for services, models, blocs and repositories.
README.md · fe88374a80b3 · 采集于 2026-11-13 12:07:59 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
90% less context to understand your codebase. One command gives every AI agent — Claude Code, Cursor, Copilot — a complete structural picture of your project: what every file offers, how they connect, and what breaks if you change one. The numbers below are measured on a real app, not estimated.
A Dart package that makes your Flutter/Dart codebase AI-ready. Analyze, document, and visualize your project structure, and generate context files that replace the expensive "let me go read your codebase" phase.
Before an agent writes anything useful in your repo, it has to answer three questions:
Answering those by reading source is expensive, and it starts over every session. breeze_buy_app, a real 170-file Flutter app, is 670 KB of Dart — roughly 171,000 tokens to read end to end. No agent reads all of it, so it opens files semi-blindly until it has enough context, then pays again tomorrow.
Run once: dart run flutter_project_structure ai-context
| Artifact | Answers | Measured on breeze_buy_app |
|---|---|---|
CLAUDE.md | What is this project? | 2.6 KB (~670 tokens), auto-loaded by Claude Code |
.ai-context/graph.json | Which files matter, what breaks if I change one | 777 edges across 170 files |
.ai-context/skeletons.json | What does each file offer | 63 KB vs 670 KB of source — 90.6% smaller |
The complete structural picture of that app is ~17,000 tokens instead of ~171,000 to read the source. That is where the 90% comes from, and you can reproduce it by running the tool on your own project — the compression ratio is reported in skeletons.json.
lib/core/utils/http_base_interceptor.dart
class BaseInterceptor extends Interceptor // base [Interceptor] for [Dio]...
@override void onRequest(RequestOptions options, RequestInterceptorHandler handler)
@override void onResponse(Response response, ResponseInterceptorHandler handler)
@override Future onError(DioException err, ErrorInterceptorHandler handler)
class RefreshToken
final String access;
RefreshToken({required this.access})
Enough to call that file correctly without opening it. Read the file itself only when you need to change it.
get_file_graph(path: "lib/config/colors.dart")
importedBy : 108 files
blastRadius : 134 of 170 files
The distinction matters, so here it is plainly.
It does: give an agent complete structural and interface knowledge of your whole project — every file, every public API, every dependency edge — for about a tenth of what reading the source costs. It stops the agent guessing which files to open, and stops it re-deriving your architecture every session.
It does not: tell an agent what your code does. Behaviour lives in method bodies, and skeletons drop bodies by definition. This is strongest for services, models, blocs and repositories, where the interface really is most of the meaning. It is weakest for Flutter widgets, where the meaning lives in the build() body and the skeleton is closer to a table of contents.
Nor does it shrink a whole session. Writing code, running tests and iterating are untouched — and on a real task those usually cost more than context does. What this package removes is the part you were paying for repeatedly and getting nothing new from.
// Path: lib/src/...) added to the top of each Dart file — most useful for RAG-based tools whose indexing chunks files and loses the path; agentic tools like Claude Code already receive a path with every resultbuild() body, so the skeleton is a table of contents rather than a summaryimport, export and part directives resolved inside the project (including package:<own_name>/... self-imports)main.dart, app.dart, and environment variants like main_development.dart, main_staging.dart, main_production.dart_model, _service, _bloc) and class suffix patterns (Model, Service, Bloc)architecture.json, files.json, patterns.json, conventions.json, metrics.json, todos.json, graph.json, skeletons.json--watch modeAdd to your pubspec.yaml:
dev_dependencies:
flutter_project_structure: ^3.0.0
Then run:
dart pub get
# Analyze your project — generates project_structure.md with path comments
dart run flutter_project_structure
# Full AI setup — project_structure.md + CLAUDE.md + .ai-context/ JSON files
dart run flutter_project_structure ai-context
# Start MCP server for live AI agent queries
dart run flutter_project_structure mcp-server --watch
Every command produces path comments + project_structure.md as baseline, then adds its own specific output.
analyze (default)The core command. Generates project_structure.md with directory tree and all analysis sections. Adds // Path: comments to every Dart file.
dart run flutter_project_structure
dart run flutter_project_structure analyze --root-dir=lib --output=structure.md
Running without a subcommand defaults to analyze for backward compatibility.
claude-mdGenerates CLAUDE.md — a compact, AI-optimized project context file (<20KB). AI agents like Claude Code read this automatically at the start of every session.
dart run flutter_project_structure claude-md
dart run flutter_project_structure claude-md --output=AI_CONTEXT.md
Also produces: path comments + project_structure.md.
ai-contextThe most comprehensive command. Generates everything: project_structure.md, CLAUDE.md, and 8 structured JSON files in .ai-context/.
dart run flutter_project_structure ai-context
dart run flutter_project_structure ai-context --output-dir=.ai-context
JSON files created:
architecture.json — project type, layers, dependency graph, entry pointsfiles.json — every file with purpose, LOC, classes, methods, comment ratiopatterns.json — detected frameworks with file evidenceconventions.json — naming suffix counts and file purpose distributionmetrics.json — aggregated code health metricstodos.json — structured TODO/FIXME indexAlso produces: path comments + project_structure.md + CLAUDE.md.
mcp-serverStarts an MCP server for real-time AI agent queries. The server analyzes your project on startup, and optionally watches for file changes.
dart run flutter_project_structure mcp-server
dart run flutter_project_structure mcp-server --watch
With --watch, the server re-analyzes when .dart files change (2-second debounce). Also produces path comments + project_structure.md at startup.
8 MCP tools exposed:
| Tool | Description |
|---|---|
get_architecture | Project type, layers, dependency graph, entry points |
get_file_purpose(path) | Purpose and metrics for a specific file |
get_dependencies(package?) | Package dependencies, optionally filtered |
get_conventions | Naming patterns and suffix adoption rates |
get_todos(severity?) | TODO/FIXME items, optionally filtered |
get_file_skeleton(path?, paths?) | A file's declarations without their bodies — ~10% the size of reading it. Use to learn how to call a file; read the file to change it |
get_file_graph(path?, depth?) | File dependency graph. No args: size, most depended-upon files, unreachable files. With path: what it imports, what imports it, and its blast radius |
get_project_structure(section?) | Full project structure markdown — returns summary by default, or a specific section (tree, frameworks, architecture, etc.) |
Configure in Claude Code:
{
"mcpServers": {
"flutter-project-structure": {
"command": "dart",
"args": ["run", "flutter_project_structure", "mcp-server", "--watch"]
}
}
}
Analyze command flags (all enabled by default):
| Flag | Short | Description |
|---|---|---|
--root-dir | -r | Root directory to analyze (default: lib) |
--output | -o | Output file path (default: project_structure.md in the project root) |
--file-stats | -f | File/line counting |
--todo-comments | -t | TODO/FIXME scanning |
--dependency-analysis | -d | Package import tracking |
--code-metrics | -m | Classes, methods, comment ratio |
--project-type | Project type detection | |
--framework-detection | Framework/library detection | |
--architecture | Layer and dependency analysis | |
--conventions | Naming convention analysis | |
--file-purpose | File role classification | |
--metrics-aggregation | Aggregated health metrics |
Disable any feature with --no-<flag> (e.g., --no-framework-detection).
import 'package:flutter_project_structure/flutter_project_structure.dart';
void main() {
// Omit outputFile to write project_structure.md to the project root
// (next to pubspec.yaml). Pass one to choose your own path.
final structure = FlutterProjectStructure(rootDir: 'lib');
// generate() injects path comments, writes project_structure.md,
// and returns a ProjectContext for further use
final context = structure.generate();
if (context == null) return;
print('Written to: ${structure.outputFilePath}');
print('Project type: ${context.projectTypeDetector?.projectType}');
print('Total files: ${context.fileStatistics.totalFiles}');
print('Frameworks: ${context.frameworkDetector?.detectedFrameworks.keys}');
// Generators default to the project root too, and return the path written
print(ClaudeMdGenerator(context).generate());
print(AiContextGenerator(context).generate());
}
Output locations follow one rule: omit the flag and output lands in the
project root (beside pubspec.yaml), so it stays with the project you
analyzed rather than wherever you happened to run the command from. Pass an
explicit path and it is used as given, resolved against the current directory
like any other CLI tool.
final structure = FlutterProjectStructure(rootDir: 'lib');
final context = structure.runAnalysis();
// Or get the markdown string without writing to disk:
final markdown = structure.generateMarkdown();
AnalysisPipeline (reads & parses each file once)
|-- FileStatistics -- file/line counts, largest/smallest files
|-- TodoComments -- TODO/FIXME scanning
|-- DependencyAnalysis -- package import mapping (AST-based)
|-- CodeMetrics -- classes, methods, comment ratio (AST-based)
|-- FrameworkDetector -- framework detection (pubspec + imports + AST)
|-- ArchitectureAnalyzer -- layers, entry points, dependency graph
|-- ConventionAnalyzer -- file/class naming patterns
|-- FilePurposeAnalyzer -- file role classification
Every command produces (baseline):
|-- Path comments -- // Path: lib/src/... in every Dart file
|-- project_structure.md -- comprehensive directory tree + all analysis
Output Generators (added on top):
|-- ClaudeMdGenerator -- CLAUDE.md for AI agents (<20KB)
|-- AiContextGenerator -- .ai-context/ (8 JSON files)
|-- McpProjectServer -- MCP server with 8 live-query tools
All analyzers implement the FileAnalyzer interface. You can build custom analyzers:
import 'dart:io';
import 'package:analyzer/dart/ast/ast.dart';
import 'package:flutter_project_structure/flutter_project_structure.dart';
class MyCustomAnalyzer implements FileAnalyzer {
@override
void analyzeFile(File file, String content, CompilationUnit? compilationUnit) {
// Your analysis logic here — receives pre-parsed AST
}
}
Check the example folder for a complete usage example:
dart run example/main.dart
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this package helpful, consider supporting it by Liking it on pub.dev.
For freelance work or larger projects:
For large scale developments or to discuss potential collaborations, please reach out via email at: im.msishamim@gmail.com
I'm proud to have contributed to the success of various projects. Here's one of my highlights:
Abwaab is one of the top EdTech platforms in the MENA region. I played a crucial role in developing robust and scalable solutions that helped Abwaab achieve its mission of making high-quality education accessible to millions of students.
Our software automates restaurants, optimizes energy, revolutionizes finance, improves healthcare, innovates education, streamlines garments, and drives paperless solutions. Increments Inc. is Bangladesh's #1 mobile app development agency.
Thank you for checking out Flutter Project Structure! I hope it proves useful in your development workflow. Happy Coding!
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Flutter Project Structure — MCP server for Flutter/Dart codebase context from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/flutter_project_structure)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.