Sanka MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sanka MCP Serversearch the documentation for authentication examples"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sanka MCP Server
This repository contains the hosted Sanka MCP service and the TypeScript client it uses to call Sanka's externally callable API surface. It is now maintained as a normal TypeScript workspace, not as a Stainless-managed repository.
The production service is a remote Streamable HTTP MCP endpoint:
POST /mcpas the primary endpointPOST /sseas a compatibility alias for clients that still expect an SSE-style pathPOST /as a compatibility aliasGET /healthfor health checks
The /mcp endpoint exposes both the general SDK tools and the read-only CRM tools from a single MCP surface.
Live endpoints:
https://mcp.sanka.com/mcphttps://mcp.sanka.com/sse
Staging endpoint:
https://sanka-mcp-staging.fly.dev/mcp
Repository layout
src/: TypeScript client for Sanka's externally callable API surface, used by the MCP servicesrc/internal/: package-private SDK runtime helpers, not Sanka private backend codepackages/mcp-server/: the MCP server application and Docker entrypoint.github/workflows/: CI plus staging and production Fly deployment workflowsfly.toml: production Fly app configurationfly.staging.toml: staging Fly app configurationdocs/openapi-maintenance.md: guidance for keeping API coverage current without Stainless
Auth
sanka-mcp does not run its own OAuth stack. It uses Sanka OAuth directly:
Authorization server:
https://app.sanka.comAuthorization page:
/oauth/authorizeToken endpoint:
/api/v1/oauth/tokenRevocation endpoint:
/api/v1/oauth/revoke
For hosted or local HTTP transport, MCP clients should use native OAuth against the Sanka authorization server exposed in the protected resource metadata. The MCP server accepts only Sanka OAuth bearer tokens and validates them through:
GET /api/v1/oauth/introspect
The same bearer token is then forwarded to the Sanka public API.
Native OAuth-capable clients such as Codex and Claude receive an MCP OAuth challenge during connection or protected tool calls. Clients that do not support native MCP OAuth can still use the protected-tool fallback, which returns a Connect Sanka URL for the user to open.
Developer API tokens are intentionally not supported for MCP access. They remain valid for direct Sanka API and SDK usage outside MCP.
Local development
pnpm install
pnpm build
export MCP_SERVER_AUTHORIZATION_SERVER_URL="http://app.localhost:8000"
export MCP_SERVER_OAUTH_CLIENT_ID="your-public-oauth-client-id"
export SANKA_BASE_URL="http://api.localhost:8000"
node packages/mcp-server/dist/index.js --transport=http --port=8080MCP_SERVER_OAUTH_CLIENT_ID is optional. When present, the server advertises
that OAuth client_id in its authorization server metadata.
Local Sanka prerequisites:
app.localhost:8000serves/oauth/authorizeand/api/v1/oauth/tokenapi.localhost:8000serves/api/v1/public/*create the OAuth app/client in Sanka first:
first-party:
/manage/oauththird-party:
/:wsid/developers/oauth
register the MCP redirect URI/origin on that OAuth client
If you want to use stdio locally instead of HTTP transport, native OAuth is not
part of the stdio handshake. In that case pass an already-issued Sanka OAuth
access token through SANKA_API_KEY as a local development convenience.
Then verify:
curl http://127.0.0.1:8080/health
curl -sS -D - http://127.0.0.1:8080/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
--data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"curl","version":"0.1"}}}'For a native OAuth-capable MCP client, point the client at http://127.0.0.1:8080/mcp without static auth headers and let the client follow the protected resource metadata to Sanka OAuth.
For manual bearer-token testing:
curl -sS -D - http://127.0.0.1:8080/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-H 'authorization: Bearer soat_your_access_token' \
--data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"curl","version":"0.1"}}}'Deployment
This repo deploys to Fly from packages/mcp-server/Dockerfile.
Manual production deploy:
fly deploy -c fly.tomlManual staging deploy:
fly deploy -c fly.staging.tomlAutomatic staging deploy: push to
stagingAutomatic production deploy: publish a GitHub release that targets
main
Release Flow
Use the same promotion shape as the main Sanka app:
Open feature PRs into
staging.Merge
stagingafter CI passes to deploysanka-mcp-staging.Validate the staging MCP endpoint.
Open
staging -> main.After
mainis ready, runCreate new Sanka MCP Tag and Release.The published release deploys production.
Required Fly apps and secrets:
Production app:
sanka-mcpStaging app:
sanka-mcp-stagingSet the same
MCP_SERVER_*secrets on both apps unless staging intentionally uses a different auth stack.
Maintenance direction
This repository no longer depends on Stainless project access at runtime or for ongoing development. API coverage should be maintained directly in this repo.
The recommended next step is to adopt open-source OpenAPI tooling for updates to the TypeScript client, rather than reintroducing a hosted generator dependency. See openapi-maintenance.md.
The repo now includes a starter typegen command:
pnpm generate:openapi-typesBy default it reads the sibling Sanka spec at ../sanka-sdks/openapi.json.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sankaHQ/sanka-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server