What is the mandatory argument for running TokenScope?
The `--base-path` argument is mandatory. It restricts all file operations to the specified directory for security; attempts to access files outside this path are rejected.
@cdgaete
基本信息
Token-Aware Directory Explorer MCP Server for LLMs like Claude
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"directory-explorer-mcp": {
"command": "uv",
"args": [
"pip",
"install",
"tokenscope"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
TokenScope is a Model Context Protocol (MCP) server for token-aware directory exploration and analysis. It helps Large Language Models (LLMs) understand codebases by scanning directory structures with token-efficient summaries, extracting file contents with token awareness, finding important files, and generating comprehensive reports.
Install via uv pip install tokenscope (Python 3.10+ required). Run with the mandatory --base-path argument to restrict all file operations to a specific directory. For Claude Desktop, add the server to mcpServers in the configuration file (e.g., ~/.config/claude/config.json), providing the uv run command with required arguments. A development installation option from GitHub is also available.
The `--base-path` argument is mandatory. It restricts all file operations to the specified directory for security; attempts to access files outside this path are rejected.
Add the server to the `mcpServers` section of Claude Desktop's configuration file. Example: `"TokenScope": { "command": "uv", "args": ["run", "--with", "tokenscope", "tokenscope", "--base-path", "/your/secure/base/path"] }`.
Python 3.10 or higher is required. The recommended package manager is `uv`. For development, `fastmcp` and `tiktoken` are additional dependencies.
The README does not mention any data storage or external communication. All operations are file-system based within the allowed base path.
It provides six tools: `scan_directory_structure`, `extract_file_content`, `search_files_by_pattern`, `analyze_token_usage`, `copy_file_to_destination`, and `generate_directory_report`.

Model Context Protocol Servers
A Box model context protocol server to search, read and access files

AI tools (Claude, ChatGPT, Gemini, Grok, etc.) generate HTML constantly, from reports to landing pages to prototypes, but there's no easy way to share it or know if anyone looked. HTMLvault turns any HTML into a clean, t
Manage your Hevy workouts, routines, folders, and exercise templates. Create and update sessions faster, organize plans, and search exercises to build workouts quickly. Stay synced with changes so your training log is always up to date.
The SSE version of the MCP service is modified from the Filesystem MCP server
评论