经 AI Skill Hub 精选评估,context-portal — Claude MCP 必备工具中文教程 获评「强烈推荐」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.3 分,适合有一定技术背景的用户使用。
context-portal — Claude MCP 必备工具中文教程 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
context-portal — Claude MCP 必备工具中文教程 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/GreatScottyMac/context-portal
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"context-portal---claude-mcp---------": {
"command": "npx",
"args": ["-y", "context-portal"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 context-portal — Claude MCP 必备工具中文教程 执行以下任务... Claude: [自动调用 context-portal — Claude MCP 必备工具中文教程 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"context-portal___claude_mcp_________": {
"command": "npx",
"args": ["-y", "context-portal"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<br>
Before you begin, ensure you have the following installed:
uv significantly simplifies virtual environment creation and dependency installation.The recommended way to install and run ConPort is by using uvx to execute the package directly from PyPI. This method avoids the need to manually create and manage virtual environments.
The most appropriate way to develop and test ConPort is to run it in your IDE as an MCP server using the configuration above. This exercises STDIO mode and real client behavior.
If you need to run against a local checkout and virtualenv, you can configure your MCP client to launch the dev server via uv run and your .venv/bin/python:
{
"mcpServers": {
"conport": {
"command": "uv",
"args": [
"run",
"--python",
".venv/bin/python",
"--directory",
"<path to context-portal repo> ",
"conport-mcp",
"--mode",
"stdio",
"--log-file",
"./logs/conport-dev.log",
"--log-level",
"DEBUG"
],
"disabled": false
}
}
}
Notes: - Set --directory to your repo path; this uses your local checkout and venv interpreter. - Logs go to ./logs/conport-dev.log with DEBUG verbosity.
Set up for development or contribution via the Git repo.
1. Clone the repository
git clone https://github.com/GreatScottyMac/context-portal.git
cd context-portal
2. Create a virtual environment
uv venv
Activate it using your shell’s standard activation (e.g., source .venv/bin/activate on macOS/Linux).
3. Install dependencies
uv pip install -r requirements.txt
4. Run in your IDE (recommended) Configure your IDE’s MCP settings using the "uvx Configuration" or the dev uv run configuration shown above. This is the most representative test of ConPort in STDIO mode.
5. Optional: CLI help
uv run python src/context_portal_mcp/main.py --help
Notes: - For --workspace_id behavior and IDE path handling, see the guidance under the "uvx Configuration" section above. Many IDEs do not expand ${workspaceFolder}.
<br>
For pre-upgrade cleanup, including clearing Python bytecode cache, please refer to the v0.2.4_UPDATE_GUIDE.md.
ConPort's effectiveness with LLM agents is significantly enhanced by providing specific custom instructions or system prompts to the LLM. This repository includes tailored strategy files for different environments:
roo_code_conport_strategy: Contains detailed instructions for LLMs operating within the Roo Code VS Code extension, guiding them on how to use ConPort tools for context management.<br>
cline_conport_strategy: Contains detailed instructions for LLMs operating within the Cline VS Code extension, guiding them on how to use ConPort tools for context management.<br>
cascade_conport_strategy: Specific guidance for LLMs integrated with the Windsurf Cascade environment. Important: When initiating a session in Cascade, it is necessary to explicity tell the LLM: Initialize according to custom instructions
generic_conport_strategy: Provides a platform-agnostic set of instructions for any MCP-capable LLM. It emphasizes using ConPort's get_conport_schema operation to dynamically discover the exact ConPort tool names and their parameters, guiding the LLM on when and why to perform conceptual interactions (like logging a decision or updating product context) rather than hardcoding specific tool invocation details.<br>
How to Use These Strategy Files:
These instructions equip the LLM with the knowledge to:
- Initialize and load context from ConPort. - Update ConPort with new information (decisions, progress, etc.). - Manage custom data and relationships. - Understand the importance of workspace_id. Important Tip for Starting Sessions: To ensure the LLM agent correctly initializes and loads context, especially in interfaces that might not always strictly adhere to custom instructions on the first message, it's a good practice to start your interaction with a clear directive like: Initialize according to custom instructions. This can help prompt the agent to perform its ConPort initialization sequence as defined in its strategy file.
When you first start using ConPort in a new or existing project workspace, the ConPort database (context_portal/context.db) will be automatically created by the server if it doesn't exist. To help bootstrap the initial project context, especially the Product Context, consider the following:
For detailed instructions on how to manage your context.db file, especially when updating ConPort across versions that include database schema changes, please refer to the dedicated v0.2.4_UPDATE_GUIDE.md. This guide provides steps for manual data migration (export/import) if needed, and troubleshooting tips.
In your MCP client settings (e.g., mcp_settings.json), use the following configuration:
{
"mcpServers": {
"conport": {
"command": "uvx",
"args": [
"--from",
"context-portal-mcp",
"conport-mcp",
"--mode",
"stdio",
"--workspace_id",
"${workspaceFolder}",
"--log-file",
"./logs/conport.log",
"--log-level",
"INFO"
]
}
}
}
command: uvx handles the environment for you.args: Contains the arguments to run the ConPort server.${workspaceFolder}: This IDE variable is used to automatically provide the absolute path of the current project workspace.--log-file: Optional: Path to a file where server logs will be written. If not provided, logs are directed to stderr (console). Useful for persistent logging and debugging server behavior.--log-level: Optional: Sets the minimum logging level for the server. Valid choices are DEBUG, INFO, WARNING, ERROR, CRITICAL. Defaults to INFO. Set to DEBUG for verbose output during development or troubleshooting.Important: Many IDEs do not expand${workspaceFolder}when launching MCP servers. Use one of these safe options: 1) Provide an absolute path for--workspace_id. 2) Omit--workspace_idat launch and rely on per-callworkspace_id(recommended if your client provides it on every call).
Alternative configuration (no --workspace_id at launch):
{
"mcpServers": {
"conport": {
"command": "uvx",
"args": [
"--from",
"context-portal-mcp",
"conport-mcp",
"--mode",
"stdio",
"--log-file",
"./logs/conport.log",
"--log-level",
"INFO"
]
}
}
}
If you omit --workspace_id, the server will skip pre-initialization and initialize the database on the first tool call using the workspace_id provided in that call.
<br>
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:context-portal — Claude MCP 必备工具中文教程 的核心功能完整,质量优秀。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | context-portal |
| 原始描述 | Context Portal (ConPort): A memory bank MCP server building a project-specific knowledge graph to supercharge AI assistants. Enables powerful Retrieval Augmented Generation (RAG) for context-aware development in your IDE. |
| Topics | rag |
| GitHub | https://github.com/GreatScottyMac/context-portal |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-05-22 · 更新时间:2026-05-22 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端