Ringkasan
s.id menjalankan server MCP (Model Context Protocol) yang di-hosting, jadi AI agent dan klien yang kompatibel dengan MCP — seperti Claude — bisa membuat link, mengelola microsite, dan membaca analitik atas nama kamu. Server ini menggunakan JSON-RPC 2.0 lewat satu endpoint dan mengautentikasi dengan API key atau kredensial OAuth 2.0 yang sama seperti REST API.
Hubungkan
Arahkan klien MCP kamu ke endpoint di bawah dan autentikasi dengan API key atau OAuth 2.0 Bearer token — server akan otomatis menemukan authorization server kamu lewat RFC 9728.
Endpoint: https://mcp.s.id/mcp
{
"mcpServers": {
"sid": {
"url": "https://mcp.s.id/mcp",
"headers": {
"Authorization": "Bearer sk_live_..."
}
}
}
}Tools
Tersedia 28 tools, mencakup link, microsite, kode QR, dan data akun. Setiap tool membutuhkan scope yang sama dengan padanan REST-nya.
Links
| Tool | Deskripsi | Scope |
|---|---|---|
| create_link | Create a short link | links:write |
| bulk_create_links | Create multiple short links in one call | links:write |
| get_link | Get a link by ID | links:read |
| list_links | List links | links:read |
| update_link | Update a link | links:write |
| delete_link | Archive a link | links:archive |
| unarchive_link | Restore an archived link | links:write |
| check_short_availability | Check if a custom slug is available | links:read |
| get_link_stats | Get a link's click timeline | links:analytics |
| get_link_lifetime_stats | Get a link's lifetime click count | links:analytics |
| get_account_stats | Get account-level click analytics | links:analytics |
Microsites
| Tool | Deskripsi | Scope |
|---|---|---|
| create_microsite | Create a microsite | microsites:write |
| get_microsite | Get a microsite by slug | microsites:read |
| list_microsites | List microsites | microsites:read |
| update_microsite | Update a microsite | microsites:write |
| delete_microsite | Delete a microsite | microsites:delete |
| check_microsite_slug | Check if a microsite slug is available | microsites:read |
| create_microsite_component | Add a component to a microsite | microsites:write |
| list_microsite_components | List a microsite's components | microsites:read |
| update_microsite_component | Update a microsite component | microsites:write |
| delete_microsite_component | Delete a microsite component | microsites:delete |
| order_microsite_components | Reorder a microsite's components | microsites:write |
QR
| Tool | Deskripsi | Scope |
|---|---|---|
| get_link_qr | Get a link's QR code settings | qr:read |
| set_link_qr | Customize a link's QR code | qr:write |
| get_global_qr | Get global QR code settings | qr:read |
| set_global_qr | Customize global QR code settings | qr:write |
Account
| Tool | Deskripsi | Scope |
|---|---|---|
| get_user_info | Get the authenticated user's profile | user:read |
| get_quota | Get the authenticated user's account quota | user:read |
Kuota
Kuota terpisah
Panggilan tool MCP menggunakan kuota harian tersendiri, terpisah dari kuota panggilan REST API kamu — menggunakan server MCP tidak mengurangi jatah /v2 API kamu. Hanya permintaan tools/call yang menghitung kuota; tools/list dan initialize gratis.
Lihat penggunaan kamuAutentikasi
API key atau OAuth 2.0
Autentikasi dengan API key sk_live_ atau OAuth 2.0 Bearer token yang sama seperti yang kamu pakai untuk REST API — s.id adalah authorization server OAuth 2.0-nya sendiri, jadi klien bisa menyelesaikan alur autorisasi penuh dan memakai token hasilnya di sini.
Panduan OAuth 2.0