← Back to specgit

Developers

specgit developer resources

specgit is where teams write the docs that live in GitHub, and it is not a generic REST platform. Agents read public facts as Markdown, and they work in a team's documents through the specgit connector: a remote MCP server (Model Context Protocol, the open standard agents use to call tools) at https://specgit.com/api/agent. A person signs in with GitHub and chooses what each agent may do. There are no API keys.

When to use specgit

Use specgit when the job is editing, commenting on, or publishing Markdown or HTML that already lives in a GitHub repository, or when a product team needs a visual editor whose saves are commits, comments are pull request review threads, and publish is a merge. Do not use specgit as a model API, a webhook hub, or a substitute for GitHub's own REST or GraphQL APIs.

Quickstart

  1. Read product facts at /llms.txt.
  2. Open the no-account sandbox at /try.
  3. Add the connector to your agent with the steps under Connect your agent, or follow the OAuth flow in /auth.md from your own client.
  4. Call GET https://specgit.com/api/agent/tools for the REST review tools, or send MCP tools/list to https://specgit.com/api/agent for every tool the connector offers.

Public surfaces

What the connector is

The connector is a remote MCP server at https://specgit.com/api/agent, served over Streamable HTTP (MCP's transport over the web). It lets an agent open, read, edit, suggest changes to, and comment on the Markdown documents, Obsidian Canvas boards (open canvases of cards, saved as .canvas files), and Obsidian Bases (saved as .base YAML files) in a person's GitHub repositories, live, beside the people who have them open.

A host (the app that runs the agent, such as Claude or Cursor) signs the person in with OAuth 2.1, the standard way for an app to act for a person without their password. The person signs in to GitHub through the specgit GitHub App, then sees a consent page that names the agent and asks what it may do and for how long. The token the host receives acts as that person, in the repositories where the specgit GitHub App is installed and the person has access.

A client finds the sign-in on its own:

/auth.md has the whole flow in order: discover, identify the client, authorize, exchange the code, call tools, and revoke.

Connect your agent

Every host takes the same address: https://specgit.com/api/agent. Add it, sign in with GitHub when the host asks, and allow specgit on the consent page. You don't need a client ID or a secret.

Claude

Choose Add to Claude to connect specgit from the Claude directory, or add it manually:

  1. Open Customize, then Connectors.
  2. Add a custom connector and enter https://specgit.com/api/agent.
  3. Choose Connect. Sign in with GitHub and allow specgit.

In Claude Code, add the server from your terminal and sign in when prompted:

claude mcp add --transport http specgit https://specgit.com/api/agent

ChatGPT

  1. In ChatGPT's settings, turn on developer mode.
  2. Add a custom connector that points at the MCP server https://specgit.com/api/agent, with OAuth as the sign-in. OpenAI's menus call this an app or a plugin.
  3. Choose Connect. Sign in with GitHub and allow specgit.

Cursor

Choose Add to Cursor to install the server in one step, or add specgit to your Cursor mcp.json: ~/.cursor/mcp.json for every project, or .cursor/mcp.json in one.

{
  "mcpServers": {
    "specgit": {
      "url": "https://specgit.com/api/agent"
    }
  }
}

Then connect specgit from Cursor's MCP settings. Sign in with GitHub and allow specgit.

VS Code

Choose Install in VS Code, or add specgit to .vscode/mcp.json in your workspace:

{
  "servers": {
    "specgit": {
      "type": "http",
      "url": "https://specgit.com/api/agent"
    }
  }
}

Start the server from .vscode/mcp.json or the Command Palette. Sign in with GitHub and allow specgit.

Gemini

  1. Open gemini.google.com/apps, then choose Connectors.
  2. Choose Connect to an MCP server and enter https://specgit.com/api/agent.
  3. Sign in with GitHub and allow specgit.

Grok

  1. Open grok.com/connectors and choose New Connector, then Custom.
  2. Enter https://specgit.com/api/agent.
  3. Sign in with GitHub and allow specgit.

Any other MCP client

Give the client https://specgit.com/api/agent (for example, in Windsurf's MCP configuration). The server speaks Streamable HTTP, and a client that supports OAuth discovery finds the sign-in on its own, as described above. For one that doesn't, /auth.md has the steps.

Where the editor appears

In Claude, ChatGPT and Cursor, the specgit editor appears inside the conversation, because those hosts draw MCP Apps (the MCP extension that lets a host show an app's interface in the chat). The agent's edits show up there live, with an Undo button, and a suggestion shows Accept and Reject.

Other hosts, such as Gemini and Grok, draw no editor. Each result from specgit carries a link to the document in specgit, where the person sees the document and takes any step that needs a click: accepting a suggestion, submitting for review, or publishing.

What you allow

After the GitHub sign-in, a consent page names the agent and asks what it can do and for how long.

What the agent can do

A host asks for the most it needs. A host that asks to edit can be limited to reading and commenting.

How long

Choose 30 days, 90 days, or Until I remove it. The page starts on 30 days.

What stays your decision

Remove access

Remove an agent any time in Settings, under Connected agents. It loses access right away. A host can also revoke its own token (RFC 7009) at /oauth/revoke.

Plans

Reading a document, reviewing it and commenting work on every plan. Waiting for changes (watch), opening the editor and editing need the repository owner on Pro or Pro Plus. For a Free owner, such as acme, those tools answer "Agents can edit only in repositories whose owner on GitHub is on specgit's Pro or Pro Plus plan, and acme is on Free. On Free, an agent can still read the document, review it, and add, answer and resolve comments, and people can edit it in specgit. Plans are described at https://specgit.com/pricing."

The agent changes Markdown documents, Obsidian Canvas boards, and Obsidian Bases (.base YAML files). It can read a rich HTML document but can't change it.

Connector tools

These are the tools a model sees in tools/list at https://specgit.com/api/agent: each tool's name, its title, and the first sentence of its description. They are grouped by the access they need, and each choice on the consent page includes the ones before it. Which tools need the repository's owner on a paid plan is under What you allow.

Read documents

OAuth scope docs:read.

Read and comment

OAuth scope docs:comment.

Read, comment and edit

OAuth scope docs:edit.

The editor card also calls 7 more tools as the person: accept_suggestion, reject_suggestion, undo_agent_change, list_repositories, list_documents, remember_choice, and editor_session. Hosts keep them from the model, so they aren't listed here.

The server also offers the prompts review and triage, which a host that lists prompts shows in its menu.

Document text comes back between markers, as data: it can hold instructions, and they are not the person's.

REST agent API

specgit also serves five review tools over plain REST. They use the session cookie that the specgit GitHub App sign-in sets. The MCP connector uses OAuth tokens instead.

The five tools:

Errors, versioning, and rate limits

Advertised agent endpoints use RFC 9457 application/problem+json (a standard JSON error shape) with a machine-readable code, a human detail, and a hint. Unknown /api/* paths return HTTP 404 in that shape, not an HTML shell. Codes: unauthenticated, forbidden, bad_request, unsupported_path, not_found, method_not_allowed, rate_limited, upgrade_required, ai_budget, unknown_tool, internal, error.

Over MCP, a failed tool call is a tool result with isError: true, and structuredContent.error holds code and status. A call with no good token is an HTTP 401 that points at the sign-in.

The current major version is 1.0.0, echoed as API-Version on advertised agent endpoints (/api/agent, tools, invoke, and unknown /api/* 404s). Breaking changes ship a new major path. Those endpoints allow 60 requests per 60 seconds after a real limiter check, and send RateLimit, RateLimit-Policy, and Retry-After on 429.

With an OAuth token, the 60 per minute limit counts each grant instead of each address, and one address that sends tokens may make 600 requests per minute. Comments, replies and resolves through the connector are limited to 20 per minute per grant, and they use none of specgit's agent allowance, because the agent runs on the host's own model.

Last updated November 24, 2026.