Skip to content

Commit 4015781

Browse files
Merge pull request #7 from modelcontextprotocol/fix-splash-page-styling
Fix splash page styling issues
2 parents 4254bf3 + 72fcc29 commit 4015781

File tree

3 files changed

+198
-187
lines changed

3 files changed

+198
-187
lines changed

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ app.get("/mcp-logo.png", (req, res) => {
167167
res.sendFile(logoPath);
168168
});
169169

170+
app.get("/styles.css", (req, res) => {
171+
const cssPath = path.join(__dirname, "static", "styles.css");
172+
res.setHeader('Content-Type', 'text/css');
173+
res.sendFile(cssPath);
174+
});
175+
170176
// Splash page
171177
app.get("/", (req, res) => {
172178
const splashPath = path.join(__dirname, "static", "index.html");

src/static/index.html

Lines changed: 4 additions & 187 deletions
Original file line numberDiff line numberDiff line change
@@ -3,197 +3,14 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>MCP Everything Server</title>
7-
<style>
8-
* {
9-
margin: 0;
10-
padding: 0;
11-
box-sizing: border-box;
12-
}
13-
14-
body {
15-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
16-
background: #ffffff;
17-
color: #000000;
18-
min-height: 100vh;
19-
display: flex;
20-
flex-direction: column;
21-
}
22-
23-
.container {
24-
max-width: 1200px;
25-
margin: 0 auto;
26-
padding: 2rem;
27-
flex: 1;
28-
}
29-
30-
header {
31-
display: flex;
32-
align-items: center;
33-
gap: 2rem;
34-
margin-bottom: 3rem;
35-
padding-bottom: 2rem;
36-
border-bottom: 2px solid #000000;
37-
}
38-
39-
.logo {
40-
width: 80px;
41-
height: 80px;
42-
}
43-
44-
h1 {
45-
font-size: 2.5rem;
46-
font-weight: 700;
47-
letter-spacing: -0.02em;
48-
}
49-
50-
.tagline {
51-
font-size: 1.25rem;
52-
color: #666666;
53-
margin-bottom: 3rem;
54-
line-height: 1.6;
55-
}
56-
57-
.features {
58-
display: grid;
59-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
60-
gap: 2rem;
61-
margin-bottom: 3rem;
62-
}
63-
64-
.feature-card {
65-
border: 2px solid #000000;
66-
padding: 1.5rem;
67-
background: #ffffff;
68-
transition: all 0.2s ease;
69-
}
70-
71-
.feature-card:hover {
72-
background: #000000;
73-
color: #ffffff;
74-
transform: translateY(-2px);
75-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
76-
}
77-
78-
.feature-card h3 {
79-
font-size: 1.25rem;
80-
margin-bottom: 0.75rem;
81-
font-weight: 600;
82-
}
83-
84-
.feature-card p {
85-
line-height: 1.6;
86-
opacity: 0.9;
87-
}
88-
89-
.endpoints {
90-
background: #f5f5f5;
91-
border: 2px solid #000000;
92-
padding: 2rem;
93-
margin-bottom: 3rem;
94-
}
95-
96-
.endpoints h2 {
97-
font-size: 1.75rem;
98-
margin-bottom: 1.5rem;
99-
font-weight: 600;
100-
}
101-
102-
.endpoint-list {
103-
display: flex;
104-
flex-direction: column;
105-
gap: 1rem;
106-
}
107-
108-
.endpoint {
109-
font-family: 'Courier New', monospace;
110-
background: #ffffff;
111-
padding: 0.75rem 1rem;
112-
border: 1px solid #000000;
113-
display: flex;
114-
align-items: center;
115-
gap: 1rem;
116-
}
117-
118-
.method {
119-
font-weight: bold;
120-
min-width: 80px;
121-
}
122-
123-
.method.get { color: #0066cc; }
124-
.method.post { color: #009900; }
125-
.method.delete { color: #cc0000; }
126-
127-
.links {
128-
display: flex;
129-
gap: 2rem;
130-
flex-wrap: wrap;
131-
margin-bottom: 3rem;
132-
}
133-
134-
.link-button {
135-
display: inline-flex;
136-
align-items: center;
137-
gap: 0.5rem;
138-
padding: 1rem 2rem;
139-
background: #000000;
140-
color: #ffffff;
141-
text-decoration: none;
142-
font-weight: 600;
143-
transition: all 0.2s ease;
144-
border: 2px solid #000000;
145-
}
146-
147-
.link-button:hover {
148-
background: #ffffff;
149-
color: #000000;
150-
}
151-
152-
.link-button.secondary {
153-
background: #ffffff;
154-
color: #000000;
155-
}
156-
157-
.link-button.secondary:hover {
158-
background: #000000;
159-
color: #ffffff;
160-
}
161-
162-
footer {
163-
background: #000000;
164-
color: #ffffff;
165-
padding: 2rem;
166-
text-align: center;
167-
}
168-
169-
footer a {
170-
color: #ffffff;
171-
text-decoration: underline;
172-
}
173-
174-
@media (max-width: 768px) {
175-
h1 {
176-
font-size: 2rem;
177-
}
178-
179-
header {
180-
flex-direction: column;
181-
align-items: flex-start;
182-
gap: 1rem;
183-
}
184-
185-
.logo {
186-
width: 60px;
187-
height: 60px;
188-
}
189-
}
190-
</style>
6+
<title>MCP Example Server</title>
7+
<link rel="stylesheet" href="/styles.css">
1918
</head>
1929
<body>
19310
<div class="container">
19411
<header>
19512
<img src="/mcp-logo.png" alt="MCP Logo" class="logo">
196-
<h1>MCP Everything Server</h1>
13+
<h1>MCP Example Server</h1>
19714
</header>
19815

19916
<p class="tagline">
@@ -264,7 +81,7 @@ <h2>API Endpoints</h2>
26481
<a href="https://modelcontextprotocol.io" class="link-button secondary">
26582
MCP Documentation
26683
</a>
267-
<a href="https://modelcontextprotocol.io/specification" class="link-button secondary">
84+
<a href="https://modelcontextprotocol.io/specification/2025-06-18" class="link-button secondary">
26885
Protocol Specification
26986
</a>
27087
</div>

0 commit comments

Comments
 (0)