Skip to main content

Model Context Protocol (MCP) server for GitHub Chat

Project description

GitHubChat MCP Server

Model Context Protocol (MCP) server for GitHub Chat.

Installation

pip install githubchat-mcp-server

After installation, you can run the server in two ways:

  1. Using the command-line script:
# Default port (4651)
githubchat-mcp-server

# Custom port
githubchat-mcp-server --port 3000
  1. Using Python directly:
# Default port (4651)
python -m githubchat_mcp_server

# Custom port
python -m githubchat_mcp_server --port 3000

The server will run on localhost using streamable-http transport.

Tools

githubchat_completion

Main tool that accepts query and GitHub URL parameters.

Example request using FastMCP client:

import asyncio
from fastmcp import Client
import json

async def main():
    # Connect to the MCP server
    async with Client("http://localhost:4651/githubchat-mcp") as client:
        # Request completion
        print("\nRequesting completion...\n\n")
        result = await client.call_tool("githubchat_completion", {
            "query": "your query",
            "url": "https://github.com/username/repo"
        })
        print(json.dumps(json.loads(result[0].text), indent=2))

if __name__ == "__main__":
    asyncio.run(main())

Supported GitHub URL formats:

  • Repository URLs (e.g., https://github.com/username/repo)
  • File URLs (e.g., https://github.com/username/repo/blob/main/file.md)
  • Branch URLs (e.g., https://github.com/username/repo/tree/feat/branch)
  • Wiki URLs (e.g., https://github.com/username/repo/wiki)

License

All rights reserved, Bluera Inc..

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

githubchat_mcp_server-0.2.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

githubchat_mcp_server-0.2.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for githubchat_mcp_server-0.2.0.tar.gz
Algorithm Hash digest
SHA256 58914789f9037a993748562c1677d9ca1ff1d9becdc8114e62e8bacae2ae49fd
MD5 31625aacc5b18083c631893197df2d3c
BLAKE2b-256 c7427501b4172b19827fab11fbdccd025c80d3126cacfda11fd08d31baef4c8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for githubchat_mcp_server-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a80a746e95fc54b8d3c46e8af9ab90754f8a02ab2628b99bd08a7e8d5798a4a
MD5 c9a8bb18e2cd1fc89824553ea727eed6
BLAKE2b-256 d3387b960408fad103b6b054f40e4be8dc3290334f06ccc9eaf7f80a8fd5212b

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