AI 에이전트가 컨텍스트로 사용할 수 있도록 코드베이스의 경로, 기능, 흐름을 구조화된 맵으로 분석합니다.
다른 이름 itsflaid/devmap, @flaid/devmap
- 스타
- 11
- Tools
- —
- 다운로드, 30일
- 2,579
- 최신 버전
- 0.9.0
- 마지막 커밋
- 2026년 11월 14일
- 라이선스
- MIT
devmap MCP란?
devmap은(는) MCP server입니다. AI 에이전트가 컨텍스트로 사용할 수 있도록 코드베이스의 경로, 기능, 흐름을 구조화된 맵으로 분석합니다.
프로젝트 README에서 생성된 요약
devmap MCP server 정보
devmap은 AI 에이전트에게 코드베이스에 대한 구조적인 이해를 제공합니다. 이 도구는 CLI 도구로 작동하며, 정적 분석과 선택적인 AI 해석을 수행하여 경로, 기능 및 주요 파일의 재사용 가능한 맵을 구축합니다. 개발자는 .devmap/index.json 및 DEVMAP.md와 같은 생성된 파일을 지속적인 컨텍스트 레이어로 사용하여, 새로운 AI 채팅 세션마다 프로젝트 구조를 매번 다시 설명해야 하는 번거로움을 피할 수 있습니다.
사용자는 npx를 통해 서버를 로컬에서 실행하거나 npm을 사용하여 전역으로 설치할 수 있습니다. AI 기반 해석을 활성화하려면 초기화 과정에서 Groq, OpenRouter 또는 사용자 정의 OpenAI 호환 엔드포인트의 API 키를 제공해야 합니다. 이 도구는 개인정보 보호를 고려하여 설계되었으므로, 전체 저장소 소스는 로컬에 유지되며 AI 모델로 통째로 전송되지 않습니다. devmap mcp 명령을 통해 MCP server로 실행하면, 에이전트가 구조화된 JSON 응답을 통해 프로젝트를 탐색할 수 있도록 devmap_overview, devmap_map, devmap_flow와 같은 특정 도구를 제공합니다.
활용 사례
- 1에이전트를 위한 프로젝트 아키텍처 맵 생성AI 에이전트는 모든 파일을 읽지 않고도 이 서버를 사용하여 저장소의 엔트리 포인트와 주요 파일을 이해할 수 있습니다.
- 2특정 코드 기능 분석개발자는 모델에 정확한 컨텍스트를 제공하기 위해 단일 기능이나 파일에 대한 범위 제한된 맵을 요청할 수 있습니다.
- 3애플리케이션 로직 흐름 추적AI에게 애플리케이션 내에서 선별된 주요 흐름을 식별하고 설명하도록 요청할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
devmap MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 devmap MCP 설치
$ claude mcp add devmap -- npx -y @flaid/devmapCursor에 devmap MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"devmap": {
"command": "npx",
"args": [
"-y",
"@flaid/devmap"
]
}
}
}VS Code에 devmap MCP 설치
.vscode/mcp.json
{
"servers": {
"devmap": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@flaid/devmap"
]
}
}
}VS Code CLI에 devmap MCP 설치
$ code --add-mcp '{"name":"devmap","type":"stdio","command":"npx","args":["-y","@flaid/devmap"]}'Claude Desktop에 devmap MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"devmap": {
"command": "npx",
"args": [
"-y",
"@flaid/devmap"
]
}
}
}Codex에 devmap MCP 설치
$ codex mcp add devmap -- npx -y @flaid/devmapCodex config.toml에 devmap MCP 설치
~/.codex/config.toml
[mcp_servers.devmap] command = "npx" args = ["-y", "@flaid/devmap"]
Gemini CLI에 devmap MCP 설치
$ gemini mcp add -s user devmap npx -- -y @flaid/devmapGemini settings.json에 devmap MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"devmap": {
"command": "npx",
"args": [
"-y",
"@flaid/devmap"
]
}
}
}구성
GROQ_API_KEYOPENROUTER_API_KEY
| 이름 | 설명 | 유형 |
|---|---|---|
| GROQ_API_KEY | — | |
| OPENROUTER_API_KEY | — |
자동 검사
2026년 11월 13일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음통과
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음통과
README
GitHub에서 보기DevMap
Analyze once. Reuse context everywhere. A CLI that maps your codebase for developers and AI agents: entry points, critical files, features and routes.
Documentation · Website · GitHub
Every new AI chat about your code starts from zero — you re-explain the same codebase every time. DevMap fixes that.
It's a CLI that combines static analysis with optional AI
interpretation to build a structured, reusable understanding layer
of your project — once. That layer (.devmap/index.json, feature
maps, DEVMAP.md) is what you and any AI agent read afterward,
instead of re-scanning or re-pasting the whole repo. Full repo
source stays local — nothing gets sent wholesale to the AI model.
Install
npm install --global @flaid/devmap
Or run without a global install:
npx @flaid/devmap --help
Requirements
- Node.js 22.12 or newer
- An API key for an AI provider: Groq, OpenRouter, or any custom OpenAI-compatible endpoint
Static analysis still works when AI is not configured.
Quick Start
Run these commands from the root of the project you want to understand:
devmap init
devmap analyze
devmap onboarding
devmap doctor
devmap init selects a provider, validates its key, stores configuration locally, prepares
.devmap/, generates DEVMAP.md, and integrates with AGENTS.md safely.
AI Provider Setup
Choose Groq, OpenRouter, or a custom OpenAI-compatible endpoint with the arrow keys during:
devmap init
Groq keys are available at https://console.groq.com/keys. OpenRouter keys are available at https://openrouter.ai/keys.
For custom endpoints, DevMap asks for the base URL (prefilled with
http://localhost:20128/v1) and lists the models your server exposes, so any
OpenAI-compatible self-hosted gateway works out of the box.
For OpenRouter, DevMap prompts:
OpenRouter model [openrouter/free]:
Press Enter to use the free router, or type any free or paid OpenRouter model ID. The selected model is saved and used as the primary choice.
For non-interactive Groq setup:
GROQ_API_KEY="your-key" devmap init
On PowerShell:
$env:GROQ_API_KEY="your-key"
devmap init
Remove-Item Env:GROQ_API_KEY
For non-interactive OpenRouter setup:
OPENROUTER_API_KEY="your-key" devmap init
The key is stored locally in ~/.devmap/config.json. Requests go directly from
your machine to the selected provider. DevMap does not send the key to a
DevMap-owned server.
Commands
devmap init
devmap analyze
devmap analyze --fresh
devmap map # full project map
devmap map <feature-or-file> # scoped to one feature or file
devmap flow # curated top flows
devmap flow <feature-or-route>
devmap explain <target> # file, feature, or function
devmap onboarding --write
devmap onboarding --write --language id
devmap doctor
devmap config model auto
devmap mcp # run as an MCP server
Groq and OpenRouter use the model selected during init. Change either provider's model with:
devmap config model <model-id>
devmap config model auto
MCP Server
devmap mcp runs DevMap as a Model Context Protocol
server over stdio. An AI agent asks the project map questions with tool calls and
gets structured JSON back, instead of reading a whole context file up front.
devmap analyze
claude mcp add devmap -- npx -y @flaid/devmap mcp
Other clients launch the same command (npx -y @flaid/devmap mcp) as a stdio server:
{
"mcpServers": {
"devmap": {
"command": "npx",
"args": ["-y", "@flaid/devmap", "mcp"]
}
}
}
Tools: devmap_overview, devmap_map, devmap_flow, devmap_routes,
devmap_impact, devmap_find, devmap_analyze and, only with --allow-ai,
devmap_explain.
The server is read-only and static by default: no AI provider is contacted unless
you start it with --allow-ai, and it only writes inside .devmap/ when the agent
calls devmap_analyze or you start it with --auto-refresh. Every answer reports
whether the snapshot is stale. See the
MCP guide for client
setup and tool inputs.
Generated Context
DevMap generates:
.devmap/index.jsonfor lightweight AI-agent navigation.devmap/features/*.jsonfor focused feature maps and source priority.devmap/snapshot.jsonfor the full structured project analysis archiveDEVMAP.mdfor human and AI-agent usage guidance- a small DevMap block in
AGENTS.mdonly after confirmation when the file already exists
Existing AGENTS.md and DEVMAP.md files are never overwritten.
For AI Agents
Read .devmap/index.json first, open the relevant feature map, and inspect its
sourcePriority files. Use .devmap/snapshot.json only when the lightweight
navigation layer is insufficient.
Use --json for scripts, editors, CI, or AI agents:
devmap analyze --json
devmap onboarding --json
devmap doctor --json
JSON mode writes one parseable JSON document to stdout without ANSI colors, terminal decoration, or streamed partial output.
Supported Stacks
- Frontend: Next.js, Astro, SvelteKit, Nuxt, Remix, React Router v7, TanStack Router/Start, Expo Router, SolidStart, Qwik City, Angular, React, Vue, Svelte
- Backend: Express, NestJS, Fastify, Hono, Elysia, Koa, AdonisJS
Detection covers the full list above; Next.js and Express receive the deepest analysis. Multi-package workspaces are classified per project type, so a monorepo containing a CLI and a web app is reported as both.
Privacy
- Project analysis runs locally before AI interpretation.
- Full repository source is not sent to the selected provider.
.envfiles and common generated directories are ignored.- API keys are stored locally and should never be committed.
Links
- Repository: https://github.com/itsflaid/devmap
- Issues: https://github.com/itsflaid/devmap/issues
- Changelog: https://github.com/itsflaid/devmap/blob/main/CHANGELOG.md
License
MIT
devmap MCP 질문
devmap MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add devmap -- npx -y @flaid/devmap를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
devmap MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
DevMap이 전체 코드베이스를 AI 제공업체로 전송하나요?
아니요, 전체 저장소 소스 코드는 로컬에 유지되며 AI 모델로 통째로 전송되지 않습니다.
어떤 AI 제공업체를 지원하나요?
DevMap은 Groq, OpenRouter 또는 모든 사용자 정의 OpenAI 호환 엔드포인트를 지원합니다.
AI 제공업체 없이 DevMap을 사용할 수 있나요?
네, AI를 설정하지 않아도 정적 분석 기능은 작동합니다.