Vane MCP Server

Vane MCP Server

A production-ready Model Context Protocol (MCP) server that extends GitHub Copilot with GitHub repository management capabilities. Enables AI-driven issue tracking, repository information retrieval, and seamless GitHub integration.

Category
访问服务器

README

Vane MCP Server - GitHub Copilot Integration

A production-ready Model Context Protocol (MCP) server that extends GitHub Copilot with GitHub repository management capabilities. Enables AI-driven issue tracking, repository information retrieval, and seamless GitHub integration.

✨ Features

  • 🔌 HTTP-based MCP Server - Universal compatibility with AI tools
  • 🚀 GitHub Integration - Native GitHub tool support (list issues, create issues, get repo info)
  • 🎯 Agent-Ready Architecture - Built on Vane agent framework with workspace isolation
  • 📊 Semantic Caching - Intelligent context management with confidence thresholds
  • 🔧 Configurable - Centralized configuration with environment variable support
  • 📝 Production-Ready - Railway/Docker deployment guides included
  • 🔄 Reusable - Single MCP server instance serves multiple projects

🚀 Quick Start

Local Development (5 minutes)

# 1. Clone and setup
git clone https://github.com/myou260312-eng/skills-integrate-mcp-with-copilot
cd skills-integrate-mcp-with-copilot

# 2. Configure environment
cp .env.example .env
# Edit .env with GITHUB_TOKEN

# 3. Install dependencies
pip install -r requirements.txt

# 4. Start MCP server
python mcp_server.py

Output:

✅ MCP Server started at http://0.0.0.0:3000
🚀 MCP Server is running. Press Ctrl+C to stop.

Verify Server

curl http://localhost:3000/mcp/

🌐 Production URL

https://mdabul-project.railway.app/mcp/

Use this URL in any project's .vscode/mcp.json:

{
  "servers": {
    "github": {
      "type": "http",
      "url": "https://mdabul-project.railway.app/mcp/"
    }
  }
}

📚 API Endpoints

Endpoint Method Description
/ GET Server status and capabilities
/mcp/ GET MCP tools and resources
/ POST Execute MCP tools

🛠️ Available Tools

list_issues

List GitHub issues fromany of my repository.

Parameters:

  • state (string): "open", "closed", or "all"
  • labels (array): Filter by labels
  • limit (integer): Max results (default: 10)

Example:

curl -X POST http://localhost:3000/ \
  -H "Content-Type: application/json" \
  -d '{
    "tool": "list_issues",
    "parameters": {"state": "open", "limit": 5}
  }'

create_issue

Create a new GitHub issue.

Parameters:

  • title (string, required): Issue title
  • body (string): Issue description
  • labels (array): Labels to add

Example:

curl -X POST http://localhost:3000/ \
  -H "Content-Type: application/json" \
  -d '{
    "tool": "create_issue",
    "parameters": {
      "title": "New Feature Request",
      "body": "Description here",
      "labels": ["enhancement"]
    }
  }'

get_repository_info

Get information about the configured repository.

Example:

curl -X POST http://localhost:3000/ \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_repository_info"}'

⚙️ Configuration

Environment Variables

# Required
GITHUB_TOKEN=ghp_xxxx                    # GitHub Personal Access Token
GITHUB_REPO_OWNER=myou260312-eng         # Repository owner
GITHUB_REPO_NAME=repo-name               # Repository name

# Optional
MCP_ENABLED=true                         # Enable/disable MCP (default: true)
LLM_MODEL=gpt-3.5-turbo                  # LLM model to use
LOG_LEVEL=INFO                           # DEBUG, INFO, WARNING, ERROR
DEBUG_MODE=false                         # Verbose logging
VANE_ROOT_ID=VANE_ROOT_ID_8A9B3C4D5E6F7G8H  # Workspace ID

Core Settings (config.py)

Setting Default Purpose
MCP_ENABLED true Enable/disable MCP
TEMPERATURE 0.0 LLM determinism (0=strict)
CONFIDENCE_HIGH_THRESHOLD 0.85 High confidence barrier
API_TIMEOUT 3.5s External API timeout
MAX_TOKENS 800 Max LLM response tokens

📦 Project Structure

skills-integrate-mcp-with-copilot/
├── config.py                      # Core configuration with MCP settings
├── mcp_server.py                  # MCP HTTP server implementation
├── requirements.txt               # Python dependencies
├── .env.example                   # Environment variable template
├── .vscode/
│   └── mcp.json                   # VS Code MCP configuration
├── MCP_DEPLOYMENT_GUIDE.md        # Complete deployment guide
└── README.md                      # This file

🔌 Using with GitHub Copilot

In VS Code or Codespace

  1. Update .vscode/mcp.json with my MCP server URL
  2. Click Start button and authenticate
  3. Open Copilot Chat and use:
    @github List all open issues
    @github Create issue: Bug fix needed
    @github Show repository information
    

🚀 Deploy to Production

Railway.app (Recommended)

  1. Visit Railway.app
  2. Create new project from GitHub repo
  3. Name service: mdabul-project
  4. Add environment variables
  5. Deploy! My URL: https://mdabul-project.railway.app/mcp/

Docker

docker build -t vane-mcp-server .
docker run -p 3000:3000 \
  -e GITHUB_TOKEN=$GITHUB_TOKEN \
  -e MCP_ENABLED=true \
  vane-mcp-server

Heroku

heroku create mdabul-mcp-server
git push heroku main
heroku config:set GITHUB_TOKEN=ghp_xxxx

📖 Complete Documentation

See MCP_DEPLOYMENT_GUIDE.md for:

  • Detailed setup instructions
  • Multiple deployment options
  • Troubleshooting guide
  • Testing procedures
  • Cross-project usage examples

🧪 Testing

Test Locally

# Server status
curl http://localhost:3000/mcp/

# List issues
curl -X POST http://localhost:3000/ \
  -H "Content-Type: application/json" \
  -d '{"tool": "list_issues", "parameters": {"state": "open"}}'

Test Production

curl https://mdabul-project.railway.app/mcp/

Test with Copilot

In VS Code Copilot Chat:

@github What are the open issues?

🔄 Reuse Across Projects

We can use this MCP server in any GitHub project:

  1. Copy .vscode/mcp.json to your project
  2. Update .env with your repo credentials
  3. Start using: @github commands in Copilot Chat

One server. Unlimited projects. 🎯

📋 Checklist

  • [x] MCP server implementation
  • [x] GitHub tool integration
  • [x] Vane agent framework integration
  • [x] Local testing
  • [x] Production deployment guide
  • [x] VS Code configuration
  • [x] Documentation
  • [x] Railway URL configured

🛠️ Architecture

Core Components

config.py - Centralized configuration

  • Workspace isolation via VANE_ROOT_ID
  • MCP server settings
  • LLM orchestration parameters
  • Confidence thresholds
  • Logging configuration

mcp_server.py - HTTP MCP Server

  • MCPRequestHandler - HTTP request processing
  • MCPServer - Server lifecycle management
  • Tool execution engine
  • GitHub integration interface

Vane Agent Framework

  • Semantic caching with Chroma DB
  • Confidence-based filtering
  • Structured workspace management

🔐 Security

  • GitHub token stored in .env (never committed)
  • HTTPS enforced in production
  • Request validation on all endpoints
  • Error handling prevents information leakage

📊 Logging

Logs stored in: workspaces/{VANE_ROOT_ID}/logs/vane_agent.log

Configure verbosity:

LOG_LEVEL=DEBUG DEBUG_MODE=true python mcp_server.py

🤝 Contributing

This is a production MCP server. To extend:

  1. Add new tools in MCPRequestHandler.CAPABILITIES
  2. Implement handler methods: handle_<tool_name>()
  3. Update documentation
  4. Test locally before deploying

📝 License

MIT License - See LICENSE file for details

🔗 Resources

📞 Support

For issues or questions:

  1. Check MCP_DEPLOYMENT_GUIDE.md troubleshooting section
  2. Review logs: tail -f workspaces/*/logs/vane_agent.log
  3. Test connectivity: curl https://mdabul-project.railway.app/mcp/

My MCP Server: https://mdabul-project.railway.app/mcp/

Built by MD ABUL HOSSAIN (myou260312-eng) | 2026

Copyright © 2026 MD ABUL HOSSAIN (MCP SERVER). All Rights Reserved.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选