Integrations

Connect GitMoon to your AI agents

GitMoon has a remote MCP server and a REST API. Claude, Codex, Hermes, Replit, Lovable, v0 and Emergent can create repositories, commit files, work on branches and run AI review as your GitMoon account. DeepSeek and other models use the same operations through function calling.

MCP server (Streamable HTTP)
https://gitmoon.dev/mcp
REST API (OpenAPI 3.1)
gitmoon.dev/openapi.json
Auth
API key (Bearer) or OAuth 2.1

1. Create an API key

  1. Sign in and open Dashboard > Settings > API keys.
  2. Click create, give the key a name (for example "Claude Code") and copy it. GitMoon shows it only once and stores only a hash.
  3. Paste it where your tool asks for a bearer token. Keys start with gitmoom_.
  4. Revoke a key on the same page at any time. Agents using it stop working right away.

No key needed for apps that sign in with OAuth (Claude, ChatGPT, and the OAuth option of Replit, Lovable and v0): they register themselves with GitMoon, and you always see an Allow screen that names where the app will send you back. GitMoon only lets known AI apps and programs on your own computer register.

A key acts as your account: it can read and change your repositories and read public ones. The free Starter plan allows 1 key, Pro 5. Keep keys out of code and chats; use environment variables.

2. Add GitMoon to your tool

Claude (claude.ai and Claude Desktop)

MCP (OAuth)

Add GitMoon as a custom connector. You sign in with your GitMoon account; no API key needed.

  1. In Claude, open Customize > Connectors, click Add, then Add custom connector.
  2. Name: GitMoon. Remote MCP server URL: https://gitmoon.dev/mcp. Leave the OAuth client fields empty: Claude registers itself with GitMoon.
  3. Click Add, then Connect. Sign in to GitMoon and click Allow.
  4. In a chat, turn GitMoon on from + > Connectors. Claude asks before each tool call unless you allow it.
Server URL
https://gitmoon.dev/mcp
OAuth Client ID (only if Claude asks for one)
46e2fa1c-e6bb-47e8-83c6-851019696d76

If your Claude version asks for an OAuth client, choose "Use your own OAuth client" and paste the client ID above with no secret. Custom connectors work on Claude Free (one connector), Pro, Max, Team and Enterprise. On Team and Enterprise an Owner adds the connector first in Organization settings > Connectors.

Claude docs

Claude Code

MCP (API key)

One command. Claude Code sends your GitMoon API key as a bearer token.

  1. Create an API key at https://gitmoon.dev/dashboard/settings/api-keys.
  2. Run the command below in a terminal (replace the key, or export GITMOON_API_KEY first).
  3. Check it with claude mcp list, or /mcp inside Claude Code.
Terminal
claude mcp add --transport http gitmoon https://gitmoon.dev/mcp \
  --header "Authorization: Bearer $GITMOON_API_KEY"
Claude Code docs

Claude Desktop (config file)

MCP (API key)

Prefer the Connectors screen above. If you manage Claude Desktop with claude_desktop_config.json, bridge the remote server with mcp-remote (needs Node.js).

  1. Open Claude Desktop > Settings > Developer > Edit Config.
  2. Add the gitmoon entry below, put your key after Bearer, save and restart Claude Desktop.
claude_desktop_config.json
{
  "mcpServers": {
    "gitmoon": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://gitmoon.dev/mcp",
        "--header",
        "Authorization:${GITMOON_AUTH}"
      ],
      "env": {
        "GITMOON_AUTH": "Bearer gitmoom_your_api_key"
      }
    }
  }
}
Claude Desktop docs

OpenAI Codex (CLI, IDE extension, ChatGPT desktop app)

MCP (API key)

Codex reads MCP servers from ~/.codex/config.toml and can send a bearer token from an environment variable.

  1. Create an API key at https://gitmoon.dev/dashboard/settings/api-keys and export it: export GITMOON_API_KEY=gitmoom_your_api_key
  2. Add the table below to ~/.codex/config.toml (or a trusted project's .codex/config.toml).
  3. Start Codex and type /mcp to see the GitMoon tools.
~/.codex/config.toml
[mcp_servers.gitmoon]
url = "https://gitmoon.dev/mcp"
bearer_token_env_var = "GITMOON_API_KEY"
# optional: ask before tools that write
default_tools_approval_mode = "writes"
OpenAI Codex docs

ChatGPT

MCP (OAuth)

Add GitMoon as a custom MCP server in ChatGPT. ChatGPT registers itself with GitMoon and you sign in with your GitMoon account; no API key.

  1. On chatgpt.com open Plugins and add a custom MCP server (on older versions: Settings > Apps & Connectors > Advanced settings > turn on Developer mode, then Create app).
  2. Name: GitMoon. MCP server URL: https://gitmoon.dev/mcp. Authentication: OAuth. Leave client ID and secret empty.
  3. Read and accept ChatGPT's warning about custom servers, then click Create (or Add).
  4. Sign in to GitMoon in the window that opens and click Allow.
  5. In a chat, pick GitMoon from the + menu (or Developer mode tools). ChatGPT asks before tools that change things.
Server URL
https://gitmoon.dev/mcp

Custom MCP servers depend on your ChatGPT plan and workspace settings; on Business and Enterprise an admin may need to allow them.

ChatGPT docs

Hermes Agent (Nous Research)

MCP (API key)

Hermes reads MCP servers from ~/.hermes/config.yaml. Keep the key in ~/.hermes/.env.

  1. Add GITMOON_API_KEY=gitmoom_your_api_key to ~/.hermes/.env.
  2. Add the gitmoon entry under mcp_servers in ~/.hermes/config.yaml and restart Hermes.
~/.hermes/config.yaml
mcp_servers:
  gitmoon:
    url: "https://gitmoon.dev/mcp"
    headers:
      Authorization: "Bearer ${GITMOON_API_KEY}"
    timeout: 120
Hermes Agent docs

DeepSeek (and any OpenAI-compatible model)

REST + OpenAPI

DeepSeek's API does function calling, not MCP. Load GitMoon's ready-made tool list, let the model pick a tool, and run it with one HTTP call.

  1. Get the tools in OpenAI format from https://gitmoon.dev/api/v1/tools (no key needed).
  2. Pass them as tools to the chat completions call.
  3. Run each tool call with POST https://gitmoon.dev/api/v1/tools/<name> and your GitMoon API key, then send the result back.
Python
import json, os, requests
from openai import OpenAI

GITMOON = "https://gitmoon.dev/api/v1"
gm = {"Authorization": f"Bearer {os.environ['GITMOON_API_KEY']}"}
llm = OpenAI(api_key=os.environ["DEEPSEEK_API_KEY"], base_url="https://api.deepseek.com")
tools = requests.get(f"{GITMOON}/tools").json()["tools"]

messages = [{"role": "user", "content": "List my GitMoon repositories."}]
while True:
    reply = llm.chat.completions.create(model="deepseek-chat", messages=messages, tools=tools)
    msg = reply.choices[0].message
    messages.append(msg)
    if not msg.tool_calls:
        print(msg.content)
        break
    for call in msg.tool_calls:
        out = requests.post(f"{GITMOON}/tools/{call.function.name}", headers=gm,
                            json=json.loads(call.function.arguments or "{}"))
        messages.append({"role": "tool", "tool_call_id": call.id, "content": out.text})

Use the model name your DeepSeek account offers. The same code works with any OpenAI-compatible API.

DeepSeek docs

Replit Agent

MCP (OAuth or API key)

Add GitMoon as a personal MCP server. Replit can sign in with OAuth, or send your API key in a header.

  1. Open Settings > Integrations > Your integrations, then Add custom > Add personal MCP server.
  2. Display name: GitMoon. MCP Server URL: https://gitmoon.dev/mcp
  3. OAuth: leave Advanced settings empty, click Test & save, then sign in to GitMoon and click Allow.
  4. API key instead: open Advanced settings and add the header Authorization with the value Bearer gitmoom_your_api_key, then Test & save.
Server URL
https://gitmoon.dev/mcp
Header
Authorization: Bearer gitmoom_your_api_key

Custom MCP options depend on your Replit plan and workspace permissions. If the OAuth sign-in fails, use the API key.

Replit Agent docs

Lovable

MCP (OAuth or API key)

Add GitMoon as a custom MCP chat connector. Sign in with OAuth, or use a bearer token.

  1. Open Connectors, select Add custom, then MCP server.
  2. Server name: GitMoon. Server URL: https://gitmoon.dev/mcp
  3. Authentication: OAuth (default). Click Add & authorize, sign in to GitMoon and click Allow.
  4. Or choose Bearer token or API key and paste your GitMoon API key, then click Add server.
Server URL
https://gitmoon.dev/mcp

If Lovable shows invalid_redirect_uri, use the API key and tell us at gitmoon.dev/about. Chat connectors are personal and are not part of your published app.

Lovable docs

v0 by Vercel

MCP (OAuth or API key)

Add GitMoon as a bring-your-own MCP server with OAuth or Bearer Token authentication.

  1. In the prompt form open + > MCPs (or the MCP Connections settings page) and choose Add MCP.
  2. Configure a custom server with the URL https://gitmoon.dev/mcp.
  3. Authentication: OAuth, then sign in to GitMoon and click Allow. Or choose Bearer Token and paste your GitMoon API key.
Server URL
https://gitmoon.dev/mcp
v0 Platform API (optional)
curl -X POST https://api.v0.dev/v1/mcp-servers \
  -H "Authorization: Bearer $V0_API_KEY" -H "Content-Type: application/json" \
  -d '{"name":"GitMoon","url":"https://gitmoon.dev/mcp","auth":{"type":"bearer","token":"'$GITMOON_API_KEY'"}}'
v0 by Vercel docs

Emergent

MCP (API key)

Register GitMoon as a custom MCP server for Emergent's build agent.

  1. Open Account Settings > Manage Agents > MCP tab.
  2. Add a server with the JSON mcpServers config below (or fill the fields: endpoint URL plus a bearer token).
  3. Click Verify and Save.
mcpServers JSON
{
  "mcpServers": {
    "gitmoon": {
      "url": "https://gitmoon.dev/mcp",
      "headers": {
        "Authorization": "Bearer gitmoom_your_api_key"
      }
    }
  }
}

Emergent's docs describe the mcpServers format and bearer-token auth but do not publish every field name; if its form asks for the token separately, paste only the key.

Emergent docs

3. What agents can do

12 tools. The same names work as MCP tools, REST operations (operationId) and OpenAI-style functions (tools list).

list_repositories

List the repositories you own on GitMoon, newest activity first. Optional text filter on the name or description.

get_repository

Get one repository: name, visibility, default branch, branches, file count and the latest commits.

create_repositorywrites

Create a new repository in your GitMoon account. It is private unless you set visibility to PUBLIC. Fails if you already have a repository with the same name.

list_files

List the files of a repository at a branch or commit (default branch when ref is empty). Optional folder prefix.

read_file

Read one file by path at a branch or commit. Text files come back as text; other files as base64. Files over 1 MB are not returned.

commit_fileswrites

Create, update and delete several files in ONE commit on a branch of your repository. Files you do not list stay as they are. Limits: 300 files, 5 MB per file, 15 MB per commit. Send expected_head_sha to fail instead of overwriting if someone else committed first. Set create_branch to make the branch from the default branch when it does not exist.

list_commits

List commits of a repository, newest first. Optional branch filter.

list_branches

List the branches of a repository with their head commit.

create_branchwrites

Create a branch in your repository from another branch or a commit (default: the default branch).

run_ai_reviewwrites

Run GitMoon's AI on a commit of your repository: CODE_REVIEW (default), AUTO_FIX, REFACTOR or DOCGEN. This SPENDS AI tokens from your GitMoon plan (monthly quota first, then bought token packs). Ask the user before running it. Returns the review text and the tokens used.

set_repository_visibilitywrites

Make your repository PUBLIC (shown in Explore, anyone can read it) or PRIVATE. Only the owner can do this. Check with the user before making code public.

search_public_repositories

Search public repositories in GitMoon Explore by name or description. Sort: trending (Kudos this week), top (all-time Kudos) or new.

Not available yet: git push and clone over SSH or HTTPS, importing from other hosts, pull requests and issues. Agents save code with commit_files instead.

REST API

For GPT Actions, Replit or Emergent apps and your own scripts. Base URL https://gitmoon.dev/api/v1, spec at /openapi.json, guide for coding agents at /agents.md.

curl
curl -H "Authorization: Bearer $GITMOON_API_KEY" https://gitmoon.dev/api/v1/repos

curl -X POST https://gitmoon.dev/api/v1/repos/my-app/commits \
  -H "Authorization: Bearer $GITMOON_API_KEY" -H "Content-Type: application/json" \
  -d '{"message":"First version","files":[{"path":"README.md","content":"# my-app"}]}'

Questions

What is the GitMoon MCP server?

A remote Model Context Protocol server at https://gitmoon.dev/mcp. AI assistants and app builders connect to it and get 12 tools to list, create and read repositories, commit files, manage branches, run AI review and search Explore, acting as your GitMoon account.

How do AI tools sign in to GitMoon?

With OAuth, where you sign in to GitMoon and click Allow (Claude, ChatGPT, and the OAuth option of Replit, Lovable and v0), or with a GitMoon API key sent as a bearer token (Claude Code, Codex, Hermes, Replit, Lovable, v0, Emergent). AI apps register themselves at gitmoon.dev/oauth/register, which only accepts the sign-in addresses of known AI apps or your own computer, and you always see the Allow screen.

Can an AI agent see other people's private repositories?

No. Every call acts as you: it can read and change your own repositories and read public ones. Private repositories of other people are reported as not found.

Does it cost anything?

Connecting is free on every plan. Only run_ai_review spends AI tokens from your plan, the same as the AI review button in the dashboard.

Can agents use git push or open pull requests?

Not yet. GitMoon has no git push/clone over SSH or HTTPS, no pull requests and no issues. Agents write code with commit_files, which saves many files in one commit.

Is there a REST API?

Yes. The same operations are at https://gitmoon.dev/api/v1, described by an OpenAPI 3.1 file at https://gitmoon.dev/openapi.json.

Last updated 2026-12-03.