Back to Browse

Sanka MCP Server

Developer ToolsLow Risk10.0MCP RegistryRemote
Free

Server data from the Official MCP Registry

Sanka Desk IT requests, Sanka Flow records, approvals, workflows and app migrations, with OAuth.

About

Sanka Desk IT requests, Sanka Flow records, approvals, workflows and app migrations, with OAuth.

Remote endpoints: streamable-http: https://mcp.sanka.com/mcp

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (4 strong, 1 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

Endpoint verified · Requires authentication · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

env_vars

Applies to the server that hosts this plugin, not to your machine.

HTTP Network Access

Connects to external APIs or services over the internet.

What You'll Need

Set these up before or after installing:

MCP_SERVER_OAUTH_ISSUERRequired
MCP_SERVER_INTERNAL_AUTHORIZATION_SERVER_URLRequired
MCP_SERVER_OAUTH_RESOURCE_SERVER_SECRETRequired
MCP_SERVER_RESOURCE_URLRequired
SANKA_BASE_URLRequired
SANKA_BROWSER_USE_WORKER_TOKENRequired
SANKA_BROWSER_USE_PROFILE_ROOTRequired
SANKA_BROWSER_USE_ARTIFACT_DIRRequired
SANKA_BROWSER_USE_WORKER_URLRequired

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-sankahq-sanka-mcp": {
      "url": "https://mcp.sanka.com/mcp"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

Sanka MCP Server

The official hosted remote MCP server for Sanka. It lets AI agents handle Sanka Desk tickets, Sanka Flow records, approvals and workflows, and app migrations, with OAuth sign-in.

The server runs at https://mcp.sanka.com/mcp over Streamable HTTP. With it, an agent can:

  • file and follow tickets in Sanka Desk, Sanka's AI help desk
  • read and update companies, contacts, deals, orders and invoices in Sanka Flow
  • review approvals and workflow runs
  • plan and verify app migrations with Sanka Migrate

Each user signs in with OAuth and acts only within their own Sanka permissions. Clients register through dynamic client registration or a Client ID Metadata Document and always use PKCE (S256). No API key goes into the client configuration. The authorization metadata is at https://mcp.sanka.com/.well-known/oauth-authorization-server.

Connect

Claude Code:

claude mcp add --transport http sanka https://mcp.sanka.com/mcp

Then run /mcp, select Sanka and complete sign-in in the browser.

Codex:

codex mcp add sanka --url https://mcp.sanka.com/mcp
codex mcp login sanka

Any other client that supports remote HTTP MCP servers with OAuth discovery can use the same URL. Do not add an API key, bearer token or query parameter to it; the server starts sign-in when the client connects.

Endpoints

  • POST /mcp: the primary endpoint
  • POST /sse: a compatibility alias for clients that still expect an SSE-style path
  • POST /: a compatibility alias
  • GET /health: health checks

Live endpoints:

  • https://mcp.sanka.com/mcp
  • https://mcp.sanka.com/sse

Repository layout

This repository holds the hosted server and the TypeScript client it uses to call Sanka's externally callable API surface. It is maintained as a normal TypeScript workspace, not as a Stainless-managed repository.

  • src/: TypeScript client for Sanka's externally callable API surface, used by the MCP service
  • src/internal/: package-private SDK runtime helpers, not Sanka private backend code
  • packages/mcp-server/: the MCP server application and Docker entrypoint
  • .github/workflows/: CI plus the staging and production deploy workflows
  • fly.toml: production deploy configuration
  • fly.staging.toml: staging deploy configuration
  • docs/openapi-maintenance.md: guidance for keeping API coverage current without Stainless

Auth

The hosted server is a standard MCP OAuth 2.1 protected resource (MCP authorization spec 2026-07-28). Sanka (sanka-api) is the authorization server, issuer https://api-v2.sanka.com/oauth/mcp; the consent page is https://app.sanka.com/oauth/mcp/authorize.

  • Every MCP request needs Authorization: Bearer <token>. Without one the server answers 401 with WWW-Authenticate: Bearer scope="mcp:access", resource_metadata="…"; an invalid or expired token adds error="invalid_token".
  • Each endpoint is its own resource, named by the URL clients connect to: https://mcp.sanka.com/mcp, https://mcp.sanka.com/sse and https://mcp.sanka.com. Its RFC 9728 metadata is at /.well-known/oauth-protected-resource/mcp, …/sse and /.well-known/oauth-protected-resource. A token is bound to one resource.
  • /.well-known/oauth-authorization-server mirrors Sanka's metadata for clients built for the 2025-03-26 protocol.
  • Clients register with a Client ID Metadata Document (preferred) or dynamic client registration, and always use PKCE (S256); Sanka issues no client secrets.
  • The server never passes the client's token to the business API. It exchanges it through POST /oauth/internal/mcp-oauth-token (authenticated with MCP_SERVER_OAUTH_RESOURCE_SERVER_SECRET, shared with sanka-api only) for its own short-lived API token bound to the same connection. Sanka checks the connection on every API call, so disconnecting a client takes effect at once.
  • switch_workspace moves the whole connection to the chosen workspace, so later token exchanges and record URLs follow it.
  • The server keeps no MCP session: a client-sent mcp-session-id is ignored and never forwarded. Developer API keys (X-Sanka-API-Key) are refused.

The ChatGPT connector keeps its own resource at /chatgpt with its own issuer (https://api-v2.sanka.com/oauth/chatgpt).

Local development

pnpm install
pnpm build
export MCP_SERVER_OAUTH_ISSUER="http://localhost:8000/oauth/mcp"
export MCP_SERVER_INTERNAL_AUTHORIZATION_SERVER_URL="http://localhost:8000"
export MCP_SERVER_OAUTH_RESOURCE_SERVER_SECRET="<at least 32 characters>"
export MCP_SERVER_RESOURCE_URL="http://localhost:8080/mcp"
export SANKA_BASE_URL="http://localhost:8000"
node packages/mcp-server/dist/index.js --transport=http --port=8080

The local API needs the matching settings: MCP_OAUTH_ISSUER, MCP_OAUTH_AUTHORIZE_URL (the local React app's /oauth/mcp/authorize), MCP_OAUTH_RESOURCES (a JSON list with http://localhost:8080/mcp and the other local endpoints) and the same MCP_OAUTH_RESOURCE_SERVER_SECRET.

Stdio remains a local-development transport. SANKA_API_KEY there is process configuration, not a client-supplied bearer mode.

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"}}}'

The initialize request answers 401 with the WWW-Authenticate challenge. Point an HTTP MCP client (for example the MCP Inspector) at http://127.0.0.1:8080/mcp without static auth headers; it discovers the authorization server, opens the Sanka consent page, and retries with its token. curl http://127.0.0.1:8080/.well-known/oauth-protected-resource/mcp shows the resource metadata.

Browser Use worker

The browser_use MCP tool dispatches allowlisted browser workflows to a separate worker. The MCP server keeps session authentication, audit metadata, workflow routing, and confirmation gates; the worker owns browser state and third-party UI interaction. The first registered workflow is:

  • demo.hubspot.company_avatar: update HubSpot demo company avatars through the HubSpot UI when CRM APIs cannot set the visible avatar.

Run a local worker with agent-browser:

npm install -g agent-browser
agent-browser install

export SANKA_BROWSER_USE_WORKER_TOKEN="local-worker-token"
export SANKA_BROWSER_USE_PROFILE_ROOT=".browser-use-profiles"
export SANKA_BROWSER_USE_ARTIFACT_DIR=".browser-use-artifacts"
pnpm --dir packages/mcp-server browser-use-worker

Point the MCP server at it:

export SANKA_BROWSER_USE_WORKER_URL="http://127.0.0.1:8787/run"
export SANKA_BROWSER_USE_WORKER_TOKEN="local-worker-token"

For production, run the worker as a separate service with a persistent volume mounted at SANKA_BROWSER_USE_PROFILE_ROOT, so HubSpot login cookies survive restarts. Keep the worker private or token-protected and only expose /run to the MCP service.

See docs/browser-use-worker-fly.md for the worker's deploy configuration, persistent volume, secret wiring, and profile seeding runbook.

Deployment

Production and staging run the image built from packages/mcp-server/Dockerfile, with the deploy configuration in fly.toml and fly.staging.toml.

  • Production: .github/workflows/deploy.yml runs when it is dispatched with the expected main SHA after a merge, or when a GitHub release that targets main is published. A dispatched run stops if the checked-out commit is not that SHA, and a release tag must be on main history. Its build goes through scripts/ci/remote_build.py.
  • Staging: .github/workflows/staging.yml deploys every push to the staging branch.

Deploy through these workflows, not from a workstation.

Release flow

  1. Open pull requests against main. A maintainer approves a pull request before it merges.
  2. After the merge, deploy.yml deploys the merged main commit to production. To cut a versioned release instead, run the Create new Sanka MCP Tag and Release workflow; the published release deploys production.
  3. Check https://mcp.sanka.com/health after the deploy.

Production and staging each need the MCP_SERVER_* secrets. Keep them the same unless staging intentionally uses a different auth stack.

Retry policy

The TypeScript client retries 408, 409, 429, 5xx and connection errors twice by default. Only tools with metadata.operation: 'read' keep those automatic retries. Every write tool calls the API once and returns any error to the agent: a write can fail after its side effect happened, such as an email Gmail accepted before Sanka recorded it, and a retry would repeat it. The API also marks errors from delivery routes with x-should-retry: false. Reply tools report DELIVERY_UNKNOWN as a do-not-resend error.

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-types

By default it reads the sibling Sanka spec at ../sanka-sdks/openapi.json.

Developer Cloud (release candidate)

The hosted tools expose the same V2 source, run, receipt, certificate and Fleet contracts as the CLI and SDKs. This source change does not enable production execution. Read get_developer_cloud_availability first and obey each capability's availability flag. Free local migration and client-evidence registration are unchanged.

Every call takes a pinned workspace_id. Paid creates and selective retries require an explicit request, approved cap, confirm: true, and stable idempotency_key. Existing user authorization is sufficient. A lost response must not create a new intent: read back or replay the identical key and request. No tool purchases credits, creates repository PRs, merges, or deploys.

  • Source/run: upload_developer_cloud_source, create_developer_cloud_run, list_developer_cloud_runs, get_developer_cloud_run, cancel_developer_cloud_run.
  • Evidence: list_developer_cloud_events, get_developer_cloud_receipt, list_developer_cloud_artifacts, download_developer_cloud_artifact.
  • Certificates: list_developer_cloud_certificate_keys, get_developer_cloud_certificate, revoke_developer_cloud_certificate.
  • Fleet: create_developer_cloud_fleet, list_developer_cloud_fleets, get_developer_cloud_fleet, cancel_developer_cloud_fleet, retry_developer_cloud_fleet.

Repair and certificate issuance use create_developer_cloud_run.request.repair and .certification, respectively. Compute is 25 credits per worker-minute, rounded once per run. Successful Repair adds 250 credits; independent certificate issuance adds 500 (1 credit = ¥1 or 1 cent since 2026-11-20). All compute and premiums remain within the approved cap. Failed gates have no premium. Fleet adds no surcharge: its cap is the sum of explicit child caps, reserved atomically, with at most five active workers per workspace. Retry selects only failed children after the original Fleet settles; it creates a new Fleet and preserves completed children's receipts.

Upload the exact ZIP digest and declared full revision; the service pins uploaded bytes but does not independently prove their Git provenance. Inspect certificate scope, scenarios, limitations and revocation. Downloading a certificate does not verify its signature: use the CLI's offline verification with the published key. Artifact downloads verify bytes against recorded SHA-256 metadata. MCP supports up to 64 MiB; larger artifacts use the CLI/API. Large downloads use the existing session-bound URL or read_binary_download_chunk flow.

Request-schema regeneration uses the shared V2 SDK input:

python3 scripts/sync-developer-cloud-contract.py ../sanka-sdks/openapi.json
pnpm exec prettier --write packages/mcp-server/src/generated/developer-cloud-schemas.ts

Embedded workspace

The Sanka app opens the connected full Flow workspace: its sidebar, dashboards, record tables, workflows and reports. Full workspace access requires explicit Sanka authorization. Connections with narrower access show the authorization controls; the earlier Invoice assistant pilot screen is no longer offered.

The hosted invoice MCP tools remain available under their existing scopes and confirmation requirements. Removing the pilot screen does not change invoice records or the API contract.

Reviews

No reviews yet

Be the first to review this server!