<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tability MCP Server - Setup</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
color: #fff;
}
.container {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border-radius: 16px;
padding: 40px;
max-width: 600px;
width: 100%;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.logo {
text-align: center;
margin-bottom: 30px;
}
.logo h1 {
font-size: 28px;
margin-bottom: 8px;
}
.logo p {
color: rgba(255, 255, 255, 0.6);
font-size: 14px;
}
.step {
margin-bottom: 24px;
}
.step-number {
display: inline-block;
width: 28px;
height: 28px;
background: #4f46e5;
border-radius: 50%;
text-align: center;
line-height: 28px;
font-size: 14px;
font-weight: 600;
margin-right: 12px;
}
.step-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 12px;
}
label {
display: block;
margin-bottom: 8px;
font-size: 14px;
color: rgba(255, 255, 255, 0.8);
}
input[type="text"], input[type="password"] {
width: 100%;
padding: 12px 16px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
background: rgba(255, 255, 255, 0.05);
color: #fff;
font-size: 14px;
transition: border-color 0.2s;
}
input:focus {
outline: none;
border-color: #4f46e5;
}
input::placeholder {
color: rgba(255, 255, 255, 0.4);
}
.btn {
display: inline-block;
padding: 12px 24px;
background: #4f46e5;
color: #fff;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
width: 100%;
margin-top: 8px;
}
.btn:hover {
background: #4338ca;
}
.btn:disabled {
background: #555;
cursor: not-allowed;
}
.btn-secondary {
background: rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.2);
}
.output-box {
margin-top: 16px;
padding: 16px;
background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
word-break: break-all;
font-family: monospace;
font-size: 12px;
display: none;
}
.output-box.visible {
display: block;
}
.success {
color: #10b981;
margin-top: 8px;
font-size: 14px;
display: none;
}
.success.visible {
display: block;
}
.info {
background: rgba(79, 70, 229, 0.2);
border: 1px solid rgba(79, 70, 229, 0.3);
border-radius: 8px;
padding: 16px;
margin-top: 24px;
font-size: 13px;
line-height: 1.6;
}
.info h4 {
margin-bottom: 8px;
color: #a5b4fc;
}
.info ol {
margin-left: 20px;
color: rgba(255, 255, 255, 0.8);
}
.info li {
margin-bottom: 4px;
}
a {
color: #a5b4fc;
}
.transport-select {
display: flex;
gap: 12px;
margin-bottom: 16px;
}
.transport-option {
flex: 1;
padding: 12px;
background: rgba(255, 255, 255, 0.05);
border: 2px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
cursor: pointer;
text-align: center;
transition: all 0.2s;
}
.transport-option:hover {
border-color: rgba(79, 70, 229, 0.5);
}
.transport-option.selected {
border-color: #4f46e5;
background: rgba(79, 70, 229, 0.2);
}
.transport-option h4 {
font-size: 14px;
margin-bottom: 4px;
}
.transport-option p {
font-size: 11px;
color: rgba(255, 255, 255, 0.5);
}
</style>
</head>
<body>
<div class="container">
<div class="logo">
<h1>Tability MCP Server</h1>
<p>Generate your connection URL for ChatGPT, Claude, and other AI assistants</p>
</div>
<div class="step">
<div class="step-title"><span class="step-number">1</span>Enter your Tability API Token</div>
<label for="apiToken">Get it from <a href="https://tability.app/account" target="_blank">Tability Settings > API</a></label>
<input type="password" id="apiToken" placeholder="Enter your Tability API token">
</div>
<div class="step">
<div class="step-title"><span class="step-number">2</span>Select Transport</div>
<div class="transport-select">
<div class="transport-option selected" data-transport="mcp" onclick="selectTransport('mcp')">
<h4>Streamable HTTP</h4>
<p>ChatGPT, Modern clients</p>
</div>
<div class="transport-option" data-transport="sse" onclick="selectTransport('sse')">
<h4>SSE (Legacy)</h4>
<p>Older clients</p>
</div>
</div>
</div>
<div class="step">
<div class="step-title"><span class="step-number">3</span>Generate URL</div>
<button class="btn" onclick="generateUrl()">Generate Connection URL</button>
<div class="output-box" id="outputUrl"></div>
<button class="btn btn-secondary" id="copyBtn" style="display: none;" onclick="copyUrl()">Copy URL</button>
<div class="success" id="successMsg">URL copied to clipboard!</div>
</div>
<div class="info">
<h4>How to use in ChatGPT:</h4>
<ol>
<li>Go to ChatGPT > Settings > Developer Settings > MCP Servers</li>
<li>Click "Add MCP Server"</li>
<li>Paste the generated URL</li>
<li>Select "Sin autenticación" (No authentication)</li>
<li>Save and start using Tability tools!</li>
</ol>
</div>
</div>
<script>
let selectedTransport = 'mcp';
function selectTransport(transport) {
selectedTransport = transport;
document.querySelectorAll('.transport-option').forEach(el => {
el.classList.remove('selected');
});
document.querySelector(`[data-transport="${transport}"]`).classList.add('selected');
}
function generateUrl() {
const apiToken = document.getElementById('apiToken').value.trim();
if (!apiToken) {
alert('Please enter your Tability API token');
return;
}
const config = JSON.stringify({ apiToken: apiToken });
const base64Config = btoa(config);
const baseUrl = window.location.origin;
const url = `${baseUrl}/${selectedTransport}?config=${encodeURIComponent(base64Config)}`;
document.getElementById('outputUrl').textContent = url;
document.getElementById('outputUrl').classList.add('visible');
document.getElementById('copyBtn').style.display = 'block';
}
function copyUrl() {
const url = document.getElementById('outputUrl').textContent;
navigator.clipboard.writeText(url).then(() => {
document.getElementById('successMsg').classList.add('visible');
setTimeout(() => {
document.getElementById('successMsg').classList.remove('visible');
}, 2000);
});
}
</script>
</body>
</html>