Skip to main content
Model Context Protocol

Build against DIS without leaving your editor

Connect Cursor, Claude, or VS Code. Search the API catalogue, inspect your applications, and manage playground seed data β€” using the same login as the developer portal.

CursorClaudeVS CodeCodexWindsurfZed

API catalogue

Search published APIs, switch versions, and pull OpenAPI plus endpoint detail into chat.

Your applications

List apps you already registered and read clientId plus subscribed API versions.

Playground seed data

Read, update, or reset isolated seed tables for an application you own.

Creating apps and live API try-out stay in the developer portal. MCP is a curated wrapper β€” not a generic API proxy, and not a place for API keys.

Connect your assistant​

Pick your client and copy the snippet. The MCP server URL for this environment is already filled in β€” you do not need to edit it. Sign in with the same account you use on the developer portal.

Filled in from this environment Β· paste configs as-ishttps://dis-mcp-server.dev.digieconcenter.gov.lk/mcp
  1. Click Add to Cursor, or paste the JSON below as-is into ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
  2. Choose Connect and sign in with the same account you use on the developer portal.
  3. Confirm tools such as search_apis and list_my_applications appear.
~/.cursor/mcp.json
{
"mcpServers": {
"dis": {
"url": "https://dis-mcp-server.dev.digieconcenter.gov.lk/mcp",
"auth": {
"CLIENT_ID": "dis-mcp",
"scopes": [
"openid",
"profile",
"email",
"offline_access"
]
}
}
}
}

Try it​

After the server shows as connected, paste a prompt. For seed data, ask the assistant to call list_my_applications first so it has a clientId.

Discover APIs

Search the DIS catalogue for identity APIs and summarize the published versions, auth methods, and main endpoints.

Inspect my apps

List my applications and show the clientId and subscribed API versions for each one.

Read seed data

For my application, show playground seed tables and a sample of rows. Prefer get_seed_tables then get_seed_table_rows.

Reset playground

Reset playground seed data for this application to the template initial seed, then confirm the table row counts.

Tools​

Catalogue

Read only
  • search_apisSearch published APIs by name or category
  • get_api_summarySummary for an apiId
  • get_api_versionsPublished and unpublished (deprecated) versions
  • get_api_documentationFull OpenAPI for apiId + apiVersionId
  • get_api_endpointsEndpoint list for a version
  • get_endpoint_detailEndpoint detail and samples

Applications

Read only
  • list_my_applicationsid, name, clientId, subscribed apiVersionIds
  • get_applicationSame fields for one application

Playground seed data

Read / write
  • get_playground_contextTable names and row counts
  • get_seed_tablesSummary of tables in the current state
  • get_seed_table_rowsRows for one table (default 50, max 200)
  • update_seed_tableReplace one table (max 500 rows)
  • reset_seed_dataReset isolated client state to the template seed

Seed tools need a clientId from list_my_applications that belongs to your organisation and is subscribed to the requested apiVersionId. Prefer table summaries over dumping the full playground state. Register apps in My Applications.

Limits and troubleshooting​

20Max catalogue / app page size
60 / 10Requests / write tools per minute
200Max seed rows returned per read
How sign-in works

Use the same account as the developer portal. Your MCP client opens a browser login, then keeps you signed in for tool calls. You never paste API keys into MCP config.

Connect fails or sign-in errors

Confirm the endpoint on this page, then disconnect and try again. Cursor completes login in the browser using a local callback at http://localhost:8787/callback.

Tools load but applications are empty

Disconnect, reconnect, and sign in again so your organisation is picked up.

401 on every call

Reconnect and complete browser sign-in again. Do not paste an access token by hand.

My client only supports local stdio MCP

Use the mcp-remote bridge under Other clients. Fully quit and relaunch the host after editing config.

Seed tools reject clientId

The application must belong to your organisation and be subscribed to that apiVersionId. Create or subscribe in My Applications.