agent-workspace-mcp
Provides TypeScript-aware code intelligence, including syntactic and semantic diagnostics, symbol navigation, and repository structure discovery for local projects and monorepos.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-workspace-mcp Analyze the monorepo structure and list all packages"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-workspace-mcp
TypeScript-aware MCP server for repository discovery, code intelligence, and web workspace context.
English | 简体中文
English
agent-workspace-mcp is a local stdio MCP server that provides TypeScript-aware project context for local codebases without requiring a full IDE integration. It sits between raw file search and heavyweight editor tooling, helping MCP clients read repositories with explicit project boundaries.
It exposes a focused set of tools. get_diagnostics returns TypeScript syntactic and semantic diagnostics for a file. get_definition, get_references, and get_symbol_summary provide code navigation and symbol insight from 1-based source positions. discover_repository_structure scans a workspace for packages, workspace files, and tsconfig files. get_web_project_context adds frontend-oriented context such as entrypoints, routing surfaces, config files, and framework hints. reload_project clears cached TypeScript state and refreshes project metadata.
It is especially useful for monorepos, frontend applications, and local repository workflows where you want reliable answers to questions such as "which package should I inspect", "where is this symbol defined", or "does this repository look like a web app".
Quick Start
Run directly with npx:
npx -y agent-workspace-mcp@0.1.4To configure Codex automatically without editing ~/.codex/config.toml by hand:
npx -y agent-workspace-mcp@0.1.4 --setup-codexTo print the installed package version:
npx -y agent-workspace-mcp@0.1.4 --versionOr install globally:
npm install -g agent-workspace-mcp
agent-workspace-mcpMCP Client Configuration
For Codex, add this to ~/.codex/config.toml:
[mcp_servers.agent_workspace_mcp]
command = "npx"
args = ["-y", "agent-workspace-mcp"]On Windows, if your MCP client struggles to resolve npx reliably, prefer:
[mcp_servers.agent_workspace_mcp]
command = "npx.cmd"
args = ["-y", "agent-workspace-mcp"]If you use the one-shot setup command above, the package writes this entry for you automatically and uses npx.cmd on Windows.
For JSON-style MCP clients:
{
"mcpServers": {
"agent-workspace-mcp": {
"command": "npx",
"args": ["-y", "agent-workspace-mcp"]
}
}
}If you prefer a local checkout instead of npx:
{
"mcpServers": {
"agent-workspace-mcp": {
"command": "node",
"args": ["C:/path/to/agent-workspace-mcp/dist/cli.js"]
}
}
}The server fails fast on invalid input, uses filesystem and package metadata heuristics for repository classification, and keeps TypeScript language service state in memory so repeated calls are much faster after the initial load.
For development and contribution details, see CONTRIBUTING.md. For vulnerability reporting, see SECURITY.md. License terms are in LICENSE.
Related MCP server: arcscope
简体中文
agent-workspace-mcp 是一个本地 stdio MCP Server,用于在不依赖完整 IDE 集成的前提下,为本地代码仓库提供 TypeScript 感知的项目上下文。它介于简单文件搜索和重量级编辑器工具之间,适合为各类 MCP Client 提供更稳定的仓库级理解能力。
它提供一组收敛的工具能力。get_diagnostics 用于返回单文件的 TypeScript 语法和语义诊断;get_definition、get_references、get_symbol_summary 用于基于 1-based 行列号做定义跳转、引用查找和符号摘要;discover_repository_structure 用于扫描 workspace、package 和 tsconfig 结构;get_web_project_context 用于补充前端语境,比如入口文件、路由面、配置文件和框架线索;reload_project 用于清空缓存并重新加载 TypeScript 项目状态。
这个项目尤其适合 monorepo、前端应用和本地仓库分析场景。比如你想先判断应该查看哪个 package、某个符号真正定义在哪里,或者当前仓库是否更像一个 web app。
快速开始
直接通过 npx 运行:
npx -y agent-workspace-mcp@0.1.4如果你不想手动编辑 ~/.codex/config.toml,可以直接执行:
npx -y agent-workspace-mcp@0.1.4 --setup-codex如果你想查看当前包版本:
npx -y agent-workspace-mcp@0.1.4 --version或者全局安装:
npm install -g agent-workspace-mcp
agent-workspace-mcpMCP 客户端配置
如果你在用 Codex,可在 ~/.codex/config.toml 中加入:
[mcp_servers.agent_workspace_mcp]
command = "npx"
args = ["-y", "agent-workspace-mcp"]如果你使用上面的自动配置命令,包会帮你写入这段配置;在 Windows 上会自动改用 npx.cmd。
如果你使用通用 JSON 风格的 MCP 配置:
{
"mcpServers": {
"agent-workspace-mcp": {
"command": "npx",
"args": ["-y", "agent-workspace-mcp"]
}
}
}如果你希望直接从本地构建产物启动:
{
"mcpServers": {
"agent-workspace-mcp": {
"command": "node",
"args": ["C:/path/to/agent-workspace-mcp/dist/cli.js"]
}
}
}这个服务对非法输入会直接失败,仓库和 Web 项目识别主要依赖文件系统与包元数据启发式,并且会在进程内缓存 TypeScript Language Service,所以首次加载后,后续调用会快很多。
如果你想参与开发或贡献代码,见 CONTRIBUTING.md;安全问题处理方式见 SECURITY.md;许可证见 LICENSE。
Available Tools
7 toolsdiscover_repository_structureDiscover Repository StructureB
Inspect a local root path and return workspace files, monorepo packages, tsconfig files, and package classification hints.
Inputs: root (required).
get_definitionGet DefinitionC
Resolve the definition locations for a symbol at a 1-based line and column in a file.
Inputs: file (required), line (required), column (required), workspaceRoot, +1 more.
get_diagnosticsGet DiagnosticsA
Return TypeScript syntactic and semantic diagnostics for a single file using project-aware configuration.
Inputs: file (required), workspaceRoot, projectTsconfigPath.
get_referencesGet ReferencesC
Resolve project-aware definition and usage references for the symbol at a 1-based line and column in a file.
Inputs: file (required), line (required), column (required), workspaceRoot, +1 more.
get_symbol_summaryGet Symbol SummaryB
Return symbol kind, display text, declaration location, and project metadata for a 1-based source position.
Inputs: file (required), line (required), column (required), workspaceRoot, +1 more.
get_web_project_contextGet Web Project ContextB
Inspect a local root path and return frontend-oriented context such as entrypoints, routing surfaces, config files, and framework hints.
Inputs: root (required).
reload_projectReload ProjectC
Invalidate cached TypeScript project state and reload it from tsconfig.
Inputs: file, workspaceRoot, projectTsconfigPath.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose with no overlap: discover_repository_structure inspects workspace files, get_definition resolves symbol definitions, get_diagnostics provides TypeScript diagnostics, get_references finds usage references, get_symbol_summary returns symbol metadata, get_web_project_context focuses on frontend context, and reload_project refreshes project state. The descriptions make each tool's unique role unambiguous.
All tool names follow a consistent verb_noun pattern using snake_case: discover_repository_structure, get_definition, get_diagnostics, get_references, get_symbol_summary, get_web_project_context, and reload_project. The naming is predictable and readable throughout the set.
With 7 tools, the count is well-scoped for a TypeScript/workspace analysis server. Each tool earns its place by covering distinct aspects like structure discovery, symbol resolution, diagnostics, references, metadata, frontend context, and project reloading, without being too sparse or bloated.
The tool set provides complete coverage for code analysis and workspace inspection in a TypeScript environment. It includes discovery (repository and web context), symbol operations (definition, references, summary), diagnostics, and project management (reload), with no obvious gaps for the server's purpose.
Maintenance
Related MCP Connectors
Coding agents in multi-service codebases routinely rebuild existing helpers, trust stale type definitions, and modify API contracts without knowing who consumes them. Carrick solves this by indexing your entire TypeScript ecosystem across service and repository boundaries. By integrating deeply with the TypeScript compiler, Carrick traces every route, type, and cross-service call while recording function behaviour so agents search by intent rather than name. Delivered via MCP for AI agents and LSP for IDEs, Carrick ensures models see existing endpoints and utilities before generating new code. The scanner is source-available and runs from your CLI or CI pipeline.
Repository knowledge graph MCP server for codebase understanding and debugging.
An MCP server that gives your AI access to the source code and docs of all public github repos
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA self-hosted MCP and HTTP server for TypeScript code intelligence, providing AI agents with fast semantic code navigation tools like finding definitions, references, implementations, file outlines, dependency graphs, and search.185 npmAGPL 3.0
- AlicenseNot gradedqualityCmaintenanceA local MCP server that gives AI coding agents symbol definitions, dependency graphs, and a live architecture vocabulary for TypeScript/JavaScript repos, with no network or embeddings.16 npmMIT
- AlicenseNot gradedqualityDmaintenanceA standalone MCP server that provides TypeScript type inference and hover information using tsgo, enabling AI agents to get type details, diagnostics, references, and more without needing an editor.8 npm1MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides TypeScript 7 native language server capabilities (go to definition, find references, hover types, diagnostics) to coding agents, using the Go-based tsc compiler for fast and accurate semantic analysis.297 npm2MIT