Kkeloola GUIDES

Keloola Project · MCP setup guide

Connect Keloola Project to your AI client

Use this guide to connect Claude, Codex, or ChatGPT to Keloola Project. Your client signs in directly to Keloola SSO; this MCP server only receives and validates the access token.

No secret in MCP: do not configure an SSO client_secret in this project or paste one into your AI client. OAuth client registration and the authorization flow belong to Keloola SSO.

Before you start

  1. Use a public HTTPS URL for the MCP server. AI clients cannot connect to a private localhost address.
  2. Make sure you can sign in to Keloola SSO and have access to the intended Project organization.
  3. Ask your SSO administrator to register the AI client or enable Dynamic Client Registration (DCR).
  4. Keep this page open during setup; you will need the endpoint below.

Connection details

All clients use one remote, streamable HTTP MCP endpoint. Copy this value exactly into the client's MCP server URL field.

MCPhttp://mcp.keloola.xyz/mcp/keloola
Setting Value
Server type Remote MCP / Streamable HTTP
Server URL http://mcp.keloola.xyz/mcp/keloola
Authentication OAuth 2.0 via Keloola SSO
Protected-resource metadata http://mcp.keloola.xyz/.well-known/oauth-protected-resource

Do not use a manually copied bearer token unless your client specifically requires it for a short-lived test. Normal operation should start the OAuth sign-in flow.

Sign in with Keloola SSO

After you add the server, the client discovers the authorization server from protected-resource metadata and opens Keloola SSO in a browser.

  1. Choose OAuth authentication when the client asks.
  2. Sign in on the Keloola SSO page—not on the MCP server.
  3. Review the requested permissions and approve access for the correct organization.
  4. Return to the client. It stores the resulting token and reconnects to Keloola MCP.

Expected authorization server: https://sso.keloola.xyz.

Verify the connection

Once connected, begin with a read-only request. This confirms that OAuth, organization access, and the MCP server are all working.

  1. Ask the client to list available Keloola tools.
  2. Ask: “Show my Keloola Project organizations.”
  3. Then ask: “List my Keloola projects.”
  4. Only after the results are correct, allow actions that create or modify data.
Tip: if you work in more than one organization, ask the client to call list-organizations, then select one with switch-organization.

Set up Codex

In a terminal where Codex is installed, add the remote server. Codex will use the server's OAuth discovery when connecting.

Terminal
codex mcp add keloola --url 'http://mcp.keloola.xyz/mcp/keloola'
  1. Run the command above.
  2. Start a Codex session and connect to keloola.
  3. Complete the Keloola SSO browser sign-in if prompted.
  4. Use a read-only prompt to verify the connection.

If your SSO does not support DCR, provide the public Codex OAuth client ID through SSO registration; do not use a client secret.

Menyiapkan Claude

Ikuti langkah-langkah berikut untuk menghubungkan Claude dengan Keloola MCP menggunakan OAuth.

1. Login ke Keloola Developer

Pertama, buka halaman Keloola Developer melalui:

Login menggunakan akun Keloola Anda.

Halaman login Keloola Developer

2. Buat Application Baru

Setelah berhasil login, kemudian klik Create Applications,

Halaman create application Keloola Developer

3. Isi Form Application

Isi informasi application sesuai kebutuhan. Pastikan data yang dimasukkan sudah benar sebelum melanjutkan.

Form Create Application

Setelah semua data di rasa sudah benar. Klik Save & publish.

4. Isi Form Configuration

Setelah application berhasil dibuat dan sudah di-Publish, lanjutkan ke menu Settings → Configuration.

Pada bagian Redirect URI, isi dengan:

https://claude.ai/api/mcp/auth_callback

Pengaturan Redirect URI

Setelah terisi, klik Save lalu Copy Client ID & Client Secret yang di dapat.

6. Buka Pengaturan Claude

Setelah Claude terbuka, klik ikon tiga garis di pojok kiri atas untuk membuka menu navigasi. Selanjutnya, pilih Profile, kemudian pilih Settings untuk membuka halaman pengaturan Claude.

Tampilan menu pengaturan Claude
Tampilan halaman settings Claude

7. Tambahkan Custom Connector

Ketika halaman Settings sudah terbuka, klik Connector, lalu klik Add dan pilih Add custom connector.

Memilih custom connector di Claude

8. Isi Form Add Custom Connector

Setelah klik Add custom connector, akan terbuka form untuk mengisi Name, MCP Server URL, Client ID, dan Client Secret. Untuk Client ID dan Client Secret, isi dengan data yang Anda dapatkan dari https://developer.keloola.xyz/ .

Form add custom connector di Claude

9. Simpan dan Connect

Setelah semua data terisi, klik Save lalu klik Connect untuk melanjutkan proses koneksi MCP.

Klik Connect untuk menyambungkan MCP

10. Login ke Keloola SSO

Setelah klik Connect, Claude akan diarahkan ke halaman login Keloola SSO. Masukkan email dan password Anda untuk melanjutkan proses login.

Halaman login Keloola SSO

11. Authorize Akses

Setelah login selesai, Claude akan redirect ke halaman Authorize untuk meminta akses. Pada halaman ini, pilih Authorize untuk melanjutkan.

Halaman authorize akses Keloola

12. Koneksi Berhasil

Setelah izin diberikan, Claude akan kembali ke halaman utama dan MCP siap digunakan.

Koneksi Claude ke MCP berhasil

Set up ChatGPT

Ikuti langkah-langkah berikut untuk menghubungkan ChatGPT ke Keloola MCP.

1. Klik Plugin dan Tambahkan App

Klik Plugin di sidebar kiri. Setelah halaman plugin terbuka, klik ikon plus untuk mulai menambahkan app.

Halaman plugin ChatGPT

2. Buka Popup Create Plugin

Setelah ikon plus diklik, akan muncul popup untuk create plugin. Isi form utama terlebih dahulu, lalu klik Advanced OAuth Setting dan salin Callback URL yang ditampilkan.

Popup create plugin ChatGPT

3. Login ke Keloola Developer

Buka halaman Keloola Developer lalu login menggunakan akun Keloola Anda:

Halaman login Keloola Developer untuk ChatGPT

4. Buka Keloola Developer dan Create Application

Setelah login berhasil, klik Create Application untuk mulai membuat application baru di Keloola Developer.

Halaman create application ChatGPT

5. Isi Configuration dan Redirect URL

Setelah application dibuat, buka bagian Configuration lalu isi Redirect URL dengan Callback URL yang sudah Anda copy dari step sebelumnya.

Halaman configuration ChatGPT

6. Isi Client ID dan Client Secret

Setelah menyimpan perubahan di developer.keloola.xyz, kembali lagi ke ChatGPT untuk mengisi Client ID dan Client Secret.

Form credential ChatGPT

7. Klik Connect

Setelah data disimpan, akan muncul popup untuk Connect. Klik Connect untuk melanjutkan proses koneksi.

Popup connect ChatGPT

8. Login ke Keloola SSO

Setelah klik Connect, ChatGPT akan diarahkan ke halaman login Keloola SSO. Masukkan akun yang memiliki akses ke Project yang dibutuhkan.

Halaman login Keloola SSO di ChatGPT

9. Authorize Akses

Setelah login selesai, ChatGPT akan redirect ke halaman Authorize untuk meminta akses. Pada halaman ini, pilih Authorize untuk melanjutkan.

Halaman authorize akses ChatGPT

10. MCP Siap Digunakan

Setelah berhasil, MCP akan terdaftar dan siap digunakan di ChatGPT.

MCP ChatGPT berhasil terhubung

Troubleshooting

Problem What to check
Client cannot reach server The MCP URL must be public, HTTPS, and accessible from the client environment.
Login succeeds but connection is unauthorized Check token audience/resource, SSO token validation endpoint, and that the user has Project access.
OAuth redirect error Register the client redirect URI in SSO as an exact match.
ChatGPT asks to sign in repeatedly Enable refresh-token issuance and advertise the applicable offline scope in SSO metadata.
No tools appear Reconnect after OAuth, then scan or refresh the tool list in the client.

For Keloola SSO administrators

The SSO service owns OAuth configuration. Before onboarding a new client, confirm the following:

  1. Publish OAuth authorization-server metadata and support Authorization Code with PKCE S256.
  2. Support DCR or register a separate public OAuth client for each AI client.
  3. Use http://mcp.keloola.xyz/mcp/keloola as the resource/audience for access tokens.
  4. Validate exact redirect URIs and restrict scopes to the required Keloola capabilities.
  5. Issue refresh tokens for supported clients that request offline access.