Skip to main content

MCP server for batch GitHub repository information retrieval with parallel processing

Project description

Jay MCP

A demo MCP (Model Context Protocol) server with tools and resources for demonstration purposes.

Features

  • Tools: Mathematical operations and server information
  • Resources: Personalized greetings and server documentation
  • Easy to use: Simple command-line interface
  • Extensible: Modular design for easy customization

Installation

From PyPI

pip install jay-mcp

From Source

git clone https://github.com/your-username/jay-mcp.git
cd jay-mcp
pip install -e .

Usage

Command Line

After installation, you can run the MCP server directly:

jay-mcp

This will start the server with stdio transport, which is the standard way to run MCP servers.

Programmatic Usage

You can also use jay-mcp as a library:

from jay_mcp import create_server

# Create a server instance
server = create_server("My Custom Server")

# Run the server
server.run(transport='stdio')

Available Tools

  • batch_get_repo_info(repos): 批量获取GitHub仓库信息
    • 参数: repos - 仓库列表,格式:["owner/repo", ...]
    • 返回: 包含仓库详细信息的字典列表
    • 功能: 并行查询多个GitHub仓库的基本信息(stars、forks、语言等)
    • 限制: 单次最多查询50个仓库

Available Resources

  • greeting://{name}: Get a personalized greeting
  • info://server: Get server information and documentation

Development

Setup Development Environment

git clone https://github.com/your-username/jay-mcp.git
cd jay-mcp
pip install -e ".[dev]"

Running Tests

pytest

Code Formatting

black jay_mcp/
isort jay_mcp/

Type Checking

mypy jay_mcp/

MCP Client Configuration

To use jay-mcp with an MCP client, add this configuration to your MCP settings:

{
  "mcpServers": {
    "jay-mcp": {
      "command": "uvx",
      "args": ["jay-mcp@latest"],
      "description": "Jay MCP Demo Server - Auto-updates to latest version"
    }
  }
}

The @latest tag ensures you always get the newest version automatically.

For a complete configuration example with tool and resource definitions, see mcp_config.json.

Advanced Configuration

You can also create a custom server instance programmatically:

from jay_mcp.server import create_server

# Create a custom server
server = create_server("My Custom MCP Server")

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Run the test suite
  6. Submit a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Changelog

0.1.0 (2025-07-14)

  • Initial release
  • Basic MCP server with tools and resources
  • Command-line interface
  • PyPI package support

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

jay_mcp-0.2.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

jay_mcp-0.2.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file jay_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: jay_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for jay_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 db0577744c021cc27009eae790645925fb7e3b13f5f6d88139f873239917fb4b
MD5 75e94e5c03363d390fa8ea961e44ed6d
BLAKE2b-256 a0c97f145683907e8ce655ef5fa623520b4a5f876da2b0c455191c5f65913262

See more details on using hashes here.

File details

Details for the file jay_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: jay_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for jay_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0654461013369522fa928009f6c339698d97c5baddc0865ee8252cb761f90596
MD5 c21f6b1acc58079d5a67a71e1c3712c6
BLAKE2b-256 6f589c647a339f4fdf05a2e85736fdf14908d01f67fe89a9269fa2f74e1e2618

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