Skip to main content

Add your description here

Project description

截图服务器

这个项目是一个截图服务器,使用Python编写。它提供了以下主要功能:

  1. 截图功能:通过调用take_screenshot_image工具,可以截取用户屏幕的截图,并将其返回为图像数据。
  2. 图像处理:使用Pillow库对截取的图像进行处理和显示。
  3. MCP服务器:通过MCP协议与客户端进行通信,提供截图服务。

使用方法

  1. 确保已安装Python和所需的依赖项。
$ uv sync
  1. 运行clint.py文件,启动截图服务器。
$ uv run clint.py
  1. 使用MCP客户端调用take_screenshot_image工具,获取屏幕截图。

依赖项

  • Python 3.x
  • Pillow库
  • MCP协议相关库

MCP配置

{
  "mcpServers": {
    "mcp-server": {
      "command": "/Users/username/.local/bin/uv",
      "args": [
        "--directory",
        "/Users/username/MCP",
        "run",
        "screenshot.py"
      ]
    }
  }
}

文件结构

  • screenshot.py:提供截图功能的MCP服务器。
  • clint.py:MCP客户端,用于调用截图服务器的工具。
  • README.md:项目说明文档。

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

screenshot_server-0.1.3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

screenshot_server-0.1.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file screenshot_server-0.1.3.tar.gz.

File metadata

  • Download URL: screenshot_server-0.1.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for screenshot_server-0.1.3.tar.gz
Algorithm Hash digest
SHA256 89aa699f6306d0daf2b14ddfb444688bde9694697319e707f6f247e6d76170f7
MD5 a36d3bf4853d4a171993c3fc379d9008
BLAKE2b-256 8b20cbb7f2133d37e3a5248d17aff1eda682c1075cb368e966383db8409ac59e

See more details on using hashes here.

File details

Details for the file screenshot_server-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for screenshot_server-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4ccd54c3bf41c10171bf1a8315ac20d1687a35822ceac78d643a41d44d69f69c
MD5 fec6cf533f8eac17635c6d4636b99610
BLAKE2b-256 8fad7ec2819002f04eb5757113cc45ef10f7ccd784adab79735d9ab16c9f8413

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