AI代码记录器 MCP 客户端 - 通过 MCP 协议记录 AI 生成的代码片段
Project description
AI代码记录器客户端
AI代码记录器的客户端,运行在本地,获取Git信息并与远程服务器通信。
快速开始
1. 安装客户端
# 进入客户端目录
cd /Users/liuhe/workspace/learning/ai-code-recorder/client
# 安装
pip install -e .
2. 配置 Cursor
编辑 ~/.cursor/mcp.json:
{
"mcpServers": {
"ai-code-recorder": {
"command": "uvx",
"args": ["--from", "/Users/liuhe/workspace/learning/ai-code-recorder/client", "ai-code-recorder-client"]
}
}
}
3. 使用
- 重启 Cursor
- 在 Cursor 中输入:
ai-code-recorder init - 开始使用 AI 生成代码,会自动记录
故障排除
- uvx 未找到:运行
curl -LsSf https://astral.sh/uv/install.sh | sh - 连接失败:检查服务器是否在
http://10.111.200.14:9000运行 - Git 错误:确保在 Git 仓库目录中使用
就这么简单!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_code_recorder_client-1.0.0.tar.gz.
File metadata
- Download URL: ai_code_recorder_client-1.0.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
045b8e17817b7041706e12ea7dad99ae3699217c46b2efb4282725dc0fcedadd
|
|
| MD5 |
9319403fd1696861d02dfb1d7545f99b
|
|
| BLAKE2b-256 |
6d4a9965d91cce3acf901ba7df93685af06756ced3b8946055b5071714440ecb
|
File details
Details for the file ai_code_recorder_client-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ai_code_recorder_client-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1da6c049322362966d99c7b6ff9f271472b90702901b712a3de1f47b54de2c7
|
|
| MD5 |
95e20912af31603f62819ab1614105b0
|
|
| BLAKE2b-256 |
356d2d1f11fe800889e197ce6e56c241faf504742c6c24c173af8f2baa4cf317
|