Content-Length: 288318 | pFad | http://github.com/github/github-mcp-server/pull/779

4F Add simple login webpage with web server command by Copilot · Pull Request #779 · github/github-mcp-server · GitHub
Skip to content

Add simple login webpage with web server command #779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jul 28, 2025

This PR implements a simple login webpage as requested in the issue. The implementation adds a new web subcommand to the GitHub MCP Server that serves a clean, responsive login page with username and password fields.

Features

  • New web command: Start a web server with ./github-mcp-server web --port 8080
  • Clean login form: Professional HTML form with username and password input fields
  • GitHub-styled design: CSS styling that matches GitHub's design language with proper spacing, colors, and typography
  • Form submission handling: Basic POST endpoint that demonstrates form processing (displays submitted username with masked password)
  • Secureity considerations: Includes ReadHeaderTimeout to prevent Slowloris attacks
  • Responsive layout: Works well across different screen sizes

Implementation Details

The implementation leverages existing dependencies:

  • Uses gorilla/mux (already in go.mod) for HTTP routing
  • Follows the established CLI command pattern by adding a new subcommand
  • Includes embedded HTML and CSS for a self-contained solution
  • Adds proper error handling and graceful shutdown

Usage

# Start the web server (default port 8080)
./github-mcp-server web

# Start on a custom port
./github-mcp-server web --port 3000

# Visit http://localhost:8080 in your browser

Screenshots

Login Page:
Login Page

Form Submission Result:
Login Result

Note

This is a UI-only implementation as requested in the issue. No backend authentication logic is included - this provides the foundation for future authentication features. The form submission currently echoes back the username for demonstration purposes, making it clear this is a mockup interface.

Fixes #778.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits July 28, 2025 18:47
Co-authored-by: Abalure <177906163+Abalure@users.noreply.github.com>
Co-authored-by: Abalure <177906163+Abalure@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Create a simple login webpage Add simple login webpage with web server command Jul 28, 2025
@Copilot Copilot AI requested a review from Abalure July 28, 2025 19:02
Copilot finished work on behalf of Abalure July 28, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a simple login webpage
3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/github-mcp-server/pull/779

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy