Diffinery

codician/diffinerypublic

Open-source, agent-first GitHub and GitHub Actions alternative that runs on your own Cloudflare account: git hosting, pull requests, code review and drop-in GitHub Actions YAML on Workers, Durable Objects, R2 and Containers.

69 lines · 3.1 KBRaw History
1---
2title: Other apps
3description: Connect Cursor, VS Code or any other MCP client to Diffinery with the server URL and a browser sign-in, or with a token where sign-in isn't supported.
4---
5
6Any app that supports remote MCP servers over HTTP can connect to Diffinery. Apps that support MCP's OAuth sign-in need only the URL; the rest send a token.
7
8```text
9https://diffinery.com/mcp
10```
11
12On a [self-hosted Diffinery](/docs/self-hosting), use your instance's address instead, such as `https://git.example.com/mcp`. Use it in place of `https://diffinery.com/mcp` in the examples below.
13
14## Cursor
15
16Add Diffinery to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` in a project to share it with everyone who opens the project:
17
18```json
19{
20 "mcpServers": {
21 "diffinery": { "url": "https://diffinery.com/mcp" }
22 }
23}
24```
25
26Cursor lists the server in its MCP settings with a way to sign in; Diffinery's consent page opens in your browser.
27
28To clone Diffinery repositories in Cursor (**Clone from Diffinery** in the clone picker) and push without a password, install the Diffinery editor extension: see [Clone in VS Code, Cursor and other editors](/docs/repositories/clone-in-your-editor).
29
30## VS Code
31
32Add Diffinery to `.vscode/mcp.json` in a workspace (or run **MCP: Add Server** from the Command Palette and choose **HTTP**):
33
34```json
35{
36 "servers": {
37 "diffinery": { "type": "http", "url": "https://diffinery.com/mcp" }
38 }
39}
40```
41
42Start the server from the file or the MCP view, and sign in when VS Code asks.
43
44To clone Diffinery repositories in VS Code (**Clone from Diffinery** in the clone picker) and push without a password, install the Diffinery editor extension: see [Clone in VS Code, Cursor and other editors](/docs/repositories/clone-in-your-editor).
45
46## Any other app
47
48Look for "remote MCP server", "HTTP" or "Streamable HTTP" in the app's settings, and give it `https://diffinery.com/mcp`. If the app supports OAuth for MCP, it finds everything else on its own: Diffinery answers its first request with a `401` that points at the sign-in details, the app registers itself, and you approve it on the consent page. See [How sign-in works](/docs/connect/how-sign-in-works).
49
50## Apps without OAuth sign-in
51
52Send a Diffinery token in the `Authorization` header instead. Use an [agent](/docs/agents/overview)'s token (created under **Settings → Agents**) and keep it in an environment variable, never in a file you commit:
53
54```json
55{
56 "mcpServers": {
57 "diffinery": {
58 "url": "https://diffinery.com/mcp",
59 "headers": { "Authorization": "Bearer ${DIFFINERY_TOKEN}" }
60 }
61 }
62}
63```
64
65`diffinery mcp-config` prints this snippet. Apps that can only start local (stdio) servers, such as those set up through Claude Desktop's configuration file, can reach Diffinery through a small bridge; [MCP server](/docs/agents/mcp#claude-desktop-and-other-clients-that-start-local-servers) has the setup for those and for many more clients.
66
67## Check that it works
68
69Ask the app "Who am I on Diffinery?". It calls the `whoami` tool and answers with the account it acts as. Apps that signed in also show under **Settings → Access tokens → Connected apps** on Diffinery.