QJ MCP Server (for VS Code Copilot)
这个项目已经可以作为一个本地 MCP 服务使用,服务入口是 qj.py。
1. 安装依赖
uv sync
2. 本地配置 VS Code MCP
项目中已提供配置文件:.vscode/mcp.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. 手动启动(可选)
uv run python qj.py
这个命令会启动 stdio 模式的 MCP 服务,通常由 VS Code Copilot 自动拉起,不需要你手工常驻运行。
Metadata
Release files for qj-demo 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qj_demo-0.1.0.tar.gz | 1.9 kB | Without provenance | Details for qj_demo-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qj_demo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for qj_demo-0.1.0-py3-none-any.whl |
Total release size: 3.8 kB
Release files / qj_demo-0.1.0.tar.gz
| Download URL | qj_demo-0.1.0.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d29ea2074959ca96c00ac991babc53d31d9fd391ad2964eef15db3562d1d092
|
|
BLAKE2b-256 checksum How to use checksums |
8d593b1974c0ce971373581365d8dd059f8ae68ef94ebc293d40957a7d2cd809
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.6
|
Release files / qj_demo-0.1.0-py3-none-any.whl
| Download URL | qj_demo-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b45029ac292475610e88bdd93393709debaf32eb2332181fdb0fa2007c4cfb5
|
|
BLAKE2b-256 checksum How to use checksums |
61c84efc403b76fdd6e4edf93874fce1a5c8a2f716188fe8a2491a8aa1834956
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.6
|
Security for qj-demo 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.