-
Notifications
You must be signed in to change notification settings - Fork 9
Add splash page for MCP Everything Server #6
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,280 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>MCP Everything Server</title> | ||
<style> | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; | ||
background: #ffffff; | ||
color: #000000; | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.container { | ||
max-width: 1200px; | ||
margin: 0 auto; | ||
padding: 2rem; | ||
flex: 1; | ||
} | ||
|
||
header { | ||
display: flex; | ||
align-items: center; | ||
gap: 2rem; | ||
margin-bottom: 3rem; | ||
padding-bottom: 2rem; | ||
border-bottom: 2px solid #000000; | ||
} | ||
|
||
.logo { | ||
width: 80px; | ||
height: 80px; | ||
} | ||
|
||
h1 { | ||
font-size: 2.5rem; | ||
font-weight: 700; | ||
letter-spacing: -0.02em; | ||
} | ||
|
||
.tagline { | ||
font-size: 1.25rem; | ||
color: #666666; | ||
margin-bottom: 3rem; | ||
line-height: 1.6; | ||
} | ||
|
||
.features { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | ||
gap: 2rem; | ||
margin-bottom: 3rem; | ||
} | ||
|
||
.feature-card { | ||
border: 2px solid #000000; | ||
padding: 1.5rem; | ||
background: #ffffff; | ||
transition: all 0.2s ease; | ||
} | ||
|
||
.feature-card:hover { | ||
background: #000000; | ||
color: #ffffff; | ||
transform: translateY(-2px); | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
.feature-card h3 { | ||
font-size: 1.25rem; | ||
margin-bottom: 0.75rem; | ||
font-weight: 600; | ||
} | ||
|
||
.feature-card p { | ||
line-height: 1.6; | ||
opacity: 0.9; | ||
} | ||
|
||
.endpoints { | ||
background: #f5f5f5; | ||
border: 2px solid #000000; | ||
padding: 2rem; | ||
margin-bottom: 3rem; | ||
} | ||
|
||
.endpoints h2 { | ||
font-size: 1.75rem; | ||
margin-bottom: 1.5rem; | ||
font-weight: 600; | ||
} | ||
|
||
.endpoint-list { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
} | ||
|
||
.endpoint { | ||
font-family: 'Courier New', monospace; | ||
background: #ffffff; | ||
padding: 0.75rem 1rem; | ||
border: 1px solid #000000; | ||
display: flex; | ||
align-items: center; | ||
gap: 1rem; | ||
} | ||
|
||
.method { | ||
font-weight: bold; | ||
min-width: 80px; | ||
} | ||
|
||
.method.get { color: #0066cc; } | ||
.method.post { color: #009900; } | ||
.method.delete { color: #cc0000; } | ||
|
||
.links { | ||
display: flex; | ||
gap: 2rem; | ||
flex-wrap: wrap; | ||
margin-bottom: 3rem; | ||
} | ||
|
||
.link-button { | ||
display: inline-flex; | ||
align-items: center; | ||
gap: 0.5rem; | ||
padding: 1rem 2rem; | ||
background: #000000; | ||
color: #ffffff; | ||
text-decoration: none; | ||
font-weight: 600; | ||
transition: all 0.2s ease; | ||
border: 2px solid #000000; | ||
} | ||
|
||
.link-button:hover { | ||
background: #ffffff; | ||
color: #000000; | ||
} | ||
|
||
.link-button.secondary { | ||
background: #ffffff; | ||
color: #000000; | ||
} | ||
|
||
.link-button.secondary:hover { | ||
background: #000000; | ||
color: #ffffff; | ||
} | ||
|
||
footer { | ||
background: #000000; | ||
color: #ffffff; | ||
padding: 2rem; | ||
text-align: center; | ||
} | ||
|
||
footer a { | ||
color: #ffffff; | ||
text-decoration: underline; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
h1 { | ||
font-size: 2rem; | ||
} | ||
|
||
header { | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: 1rem; | ||
} | ||
|
||
.logo { | ||
width: 60px; | ||
height: 60px; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<header> | ||
<img src="/mcp-logo.png" alt="MCP Logo" class="logo"> | ||
<h1>MCP Everything Server</h1> | ||
</header> | ||
|
||
<p class="tagline"> | ||
A comprehensive reference implementation of the Model Context Protocol (MCP) server | ||
demonstrating all protocol features with full authentication support and horizontal scalability. | ||
</p> | ||
|
||
<div class="features"> | ||
<div class="feature-card"> | ||
<h3>Complete MCP Support</h3> | ||
<p>All MCP features including tools, resources, prompts, sampling, completions, and logging with full protocol compliance.</p> | ||
</div> | ||
<div class="feature-card"> | ||
<h3>Multiple Transports</h3> | ||
<p>Streamable HTTP (SHTTP) and Server-Sent Events (SSE) transports for flexible client integration.</p> | ||
</div> | ||
<div class="feature-card"> | ||
<h3>OAuth 2.0 Authentication</h3> | ||
<p>Complete OAuth flow with PKCE support and a built-in fake provider for testing and development.</p> | ||
</div> | ||
<div class="feature-card"> | ||
<h3>Horizontal Scalability</h3> | ||
<p>Redis-backed session management enables multi-instance deployments with automatic load distribution.</p> | ||
</div> | ||
<div class="feature-card"> | ||
<h3>7 Demo Tools</h3> | ||
<p>Echo, add, long-running operations, LLM sampling, image handling, annotations, and resource references.</p> | ||
</div> | ||
<div class="feature-card"> | ||
<h3>100+ Resources</h3> | ||
<p>Example resources with pagination, templates, subscriptions, and real-time update notifications.</p> | ||
</div> | ||
</div> | ||
|
||
<div class="endpoints"> | ||
<h2>API Endpoints</h2> | ||
<div class="endpoint-list"> | ||
<div class="endpoint"> | ||
<span class="method post">POST</span> | ||
<span>/mcp - Initialize sessions or send messages (Streamable HTTP)</span> | ||
</div> | ||
<div class="endpoint"> | ||
<span class="method get">GET</span> | ||
<span>/mcp - Establish SSE streams (Streamable HTTP)</span> | ||
</div> | ||
<div class="endpoint"> | ||
<span class="method delete">DELETE</span> | ||
<span>/mcp - Terminate sessions (Streamable HTTP)</span> | ||
</div> | ||
<div class="endpoint"> | ||
<span class="method get">GET</span> | ||
<span>/sse - Legacy SSE transport endpoint</span> | ||
</div> | ||
<div class="endpoint"> | ||
<span class="method post">POST</span> | ||
<span>/message - Legacy message endpoint for SSE transport</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="links"> | ||
<a href="https://github.com/modelcontextprotocol/example-remote-server" class="link-button"> | ||
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"> | ||
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/> | ||
</svg> | ||
GitHub Repository | ||
</a> | ||
<a href="https://modelcontextprotocol.io" class="link-button secondary"> | ||
MCP Documentation | ||
</a> | ||
<a href="https://modelcontextprotocol.io/specification" class="link-button secondary"> | ||
Protocol Specification | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<footer> | ||
<p> | ||
Built by the <a href="https://modelcontextprotocol.io">Model Context Protocol</a> team | ||
as a reference implementation for the MCP ecosystem. | ||
</p> | ||
</footer> | ||
</body> | ||
</html> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / CodeQL
Missing rate limiting High
Copilot Autofix
AI about 2 months ago
To fix the problem, we should add a rate-limiting middleware to the route handler for
/
(the splash page) insrc/index.ts
. The recommended approach is to use the well-knownexpress-rate-limit
package, which is compatible with Express and easy to configure. We will:express-rate-limit
at the top of the file./
route only, so it does not affect other routes unnecessarily.