8000 GitHub - adeebahmed/github-mcp-repo-create-test: A repository for testing MCP GitHub repo creation. · GitHub
[go: up one dir, main page]

Skip to content

About

A repository for testing MCP GitHub repo creation.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastMCP Server Example

A Python MCP server that exposes tools to Large Language Models (LLMs) using the Model Context Protocol (MCP).

Features

  • FastMCP server with example tools (add, divide, greeting, GitHub issue simulation)
  • VS Code integration with both FastMCP and GitHub MCP servers
  • Docker support

Quick Start

Prerequisites

Run Locally

# Clone and setup
git clone https://github.com/adeebahmed/github-mcp-repo-create-test.git
cd github-mcp-repo-create-test
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt

# Start the server
python server.py

Docker

docker build -t fast-mcp-server .
docker run -p 8000:8000 fast-mcp-server

VS Code Integration

This repository includes configuration for two MCP servers:

  1. FastMCP Server: Connects to http://127.0.0.1:8000/sse
  2. GitHub MCP Server: Uses Docker to run the official GitHub MCP server

To use in VS Code:

  1. Install the Copilot chat
  2. Start your desired server(s)
  3. Open command palette → "MCP: Connect to Server"
  4. Select the server from the list (provide GitHub token if using GitHub server)

How It Works

MCP Configuration

The .vscode/mcp.json file configures:

  • Input fields for secure token handling
  • Server connections (FastMCP via SSE, GitHub via Docker)

GitHub Copilot & MCP

When connected to MCP servers, GitHub Copilot can:

  1. Discover available tools from connected servers
  2. Call appropriate tools when you request tasks
  3. Process results and respond accordingly

For example, asking Copilot to "create an issue" will trigger GitHub API tools, while "add 5 and 7" will use the local FastMCP server's add function.

Available Tools

FastMCP Server

  • add(a: int, b: int) → int: Simple addition
  • divide(a: int, b: int) → float: Division operation
  • get_greeting(name: str) → str: Personalized greeting
  • add_issue_comment(...): GitHub issue comment simulation

GitHub MCP Server

Provides tools for GitHub operations like:

  • Creating issues/PRs
  • Managing repositories
  • Searching code
  • File operations

Create Your Own Tools

@mcp.tool()
def my_new_tool(param1: str, param2: int) -> str:
    """Tool description shown to the model."""
    return f"Result: {param1} {param2}"

License

MIT License

About

A repository for testing MCP GitHub repo creation.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0