loading…
Search for a command to run...
loading…
A Model Context Protocol server that integrates the Sanka TypeScript SDK to provide document search and code execution capabilities. It allows clients to intera
A Model Context Protocol server that integrates the Sanka TypeScript SDK to provide document search and code execution capabilities. It allows clients to interact with Sanka's public API through a hosted HTTP or SSE interface.
This repository contains the hosted Sanka MCP service and the internal TypeScript API client it depends on. 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 /mcp as the primary endpointPOST /sse as a compatibility alias for clients that still expect an SSE-style pathPOST / as a compatibility aliasGET /health for health checksThe /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/sseStaging endpoint:
https://sanka-mcp-staging.fly.dev/mcpsrc/: internal Sanka API client used by the MCP servicepackages/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 StainlessRemote clients authenticate with either:
Authorization: Bearer <token>x-sanka-api-key: <token>The server forwards those credentials to the Sanka public API.
pnpm install
pnpm build
node packages/mcp-server/dist/index.js --transport=http --port=8080
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"}}}'
This repo deploys to Fly from packages/mcp-server/Dockerfile.
fly deploy -c fly.tomlfly deploy -c fly.staging.tomlstagingmainUse the same promotion shape as the main Sanka app:
staging.staging after CI passes to deploy sanka-mcp-staging.staging -> main.main is ready, run Create new Sanka MCP Tag and Release.Required Fly apps and secrets:
sanka-mcpsanka-mcp-stagingMCP_SERVER_* secrets on both apps unless staging intentionally uses a different auth stack.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 internal 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.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"sanka-mcp-server": {
"command": "npx",
"args": []
}
}
}PRs, issues, code search, CI status
Database, auth and storage
Reference / test server with prompts, resources, and tools.
Secure file operations with configurable access controls.