Skip to main content

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. 使用

  1. 重启 Cursor
  2. 在 Cursor 中输入:ai-code-recorder init
  3. 开始使用 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

ai_code_recorder_client-1.0.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_code_recorder_client-1.0.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

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

Hashes for ai_code_recorder_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 045b8e17817b7041706e12ea7dad99ae3699217c46b2efb4282725dc0fcedadd
MD5 9319403fd1696861d02dfb1d7545f99b
BLAKE2b-256 6d4a9965d91cce3acf901ba7df93685af06756ced3b8946055b5071714440ecb

See more details on using hashes here.

File details

Details for the file ai_code_recorder_client-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_code_recorder_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1da6c049322362966d99c7b6ff9f271472b90702901b712a3de1f47b54de2c7
MD5 95e20912af31603f62819ab1614105b0
BLAKE2b-256 356d2d1f11fe800889e197ce6e56c241faf504742c6c24c173af8f2baa4cf317

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page