Skip to main content

Add your description here

Project description

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 自动拉起,不需要你手工常驻运行。

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

qj_demo-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

qj_demo-0.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file qj_demo-0.1.0.tar.gz.

File metadata

  • Download URL: qj_demo-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for qj_demo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2d29ea2074959ca96c00ac991babc53d31d9fd391ad2964eef15db3562d1d092
MD5 5f2805b642a557d78502bd88be486e50
BLAKE2b-256 8d593b1974c0ce971373581365d8dd059f8ae68ef94ebc293d40957a7d2cd809

See more details on using hashes here.

File details

Details for the file qj_demo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qj_demo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for qj_demo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b45029ac292475610e88bdd93393709debaf32eb2332181fdb0fa2007c4cfb5
MD5 3156d84ad05a8e22e2f01914dbfd484d
BLAKE2b-256 61c84efc403b76fdd6e4edf93874fce1a5c8a2f716188fe8a2491a8aa1834956

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