> For the complete documentation index, see [llms.txt](https://docs.kula.digital/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kula.digital/for-developers.md).

# For developers

- [Overview](https://docs.kula.digital/for-developers/overview.md): The technical shape of Kula Intelligence — a remote MCP server over per-studio Postgres, with OAuth and a curated tool surface.
- [Connect — API, Code, Cursor, Lovable](https://docs.kula.digital/for-developers/connect.md): Connect non-OAuth AI clients with a role-scoped access token minted in app.kula.digital, which generates the ready-to-paste config for each platform.
- [Build your own interface](https://docs.kula.digital/for-developers/build-your-own-interface.md): A developer guide to building a custom app or UI directly on the Kula Intelligence MCP — connection and scopes, execute\_query gotchas, the unified schema, and a worked reference implementation.
- [Tool reference](https://docs.kula.digital/for-developers/tools.md): Every tool the Kula Intelligence MCP server exposes, with read-only/destructive flags and the minimum permission level.
- [Schema reference](https://docs.kula.digital/for-developers/schema.md): The tables and columns behind the freeform query tools — schema families, the canonical column pattern, and how PII redaction works per permission level.
- [Graph & relationship tools](https://docs.kula.digital/for-developers/graph.md): The relationship graph — member–staff–location edges, resilience scores, vulnerability quadrants and at-risk signals — and the purpose-scoped tools that read it.
- [OAuth](https://docs.kula.digital/for-developers/oauth.md): How Kula Intelligence implements OAuth 2.1 for MCP clients — discovery, dynamic client registration, PKCE, scopes, and audience binding.
- [Changelog & versioning](https://docs.kula.digital/for-developers/changelog.md): How the Kula Intelligence tool surface evolves, our compatibility promises, and notable changes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.kula.digital/for-developers.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
