Metadata-Version: 2.4
Name: qj_demo
Version: 0.1.0
Summary: Add your description here
Requires-Python: >=3.13
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.28.1
Requires-Dist: mcp>=1.27.0
Requires-Dist: openai>=2.34.0
Requires-Dist: python-dotenv>=1.2.2

# QJ MCP Server (for VS Code Copilot)

这个项目已经可以作为一个本地 MCP 服务使用，服务入口是 `qj.py`。

## 1. 安装依赖

```powershell
uv sync
```

## 2. 本地配置 VS Code MCP

项目中已提供配置文件：`.vscode/mcp.json`

内容如下：

```json
{
	"servers": {
		"qj-server": {
			"type": "stdio",
			"command": "uv",
			"args": ["run", "python", "qj.py"]
		}
	}
}
```

VS Code 打开此工作区后，Copilot Chat 会读取 MCP 配置。

## 3. 可用工具

- `get_qj_profile`: 返回个人简介
- `get_profile_by_name(name: str)`: 根据姓名返回对应简介
- `server_time`: 返回当前服务器时间（用于验证服务可用）

## 4. 手动启动（可选）

```powershell
uv run python qj.py
```

这个命令会启动 stdio 模式的 MCP 服务，通常由 VS Code Copilot 自动拉起，不需要你手工常驻运行。
