# DevGuides — Complete AI & Agent Reference > Comprehensive developer documentation and published field guide catalog for LLMs and autonomous coding agents. --- # Developer documentation Connect your AI agent to DevGuides to find technical guides, write in Markdown and publish the version you approve. ## Make your first request [Connect an agent](https://www.devguides.com/docs/connect) and grant it permission to read public guides. Try the following request in your client. > Find a DevGuides guide about accessible CSS transitions. Read the reduced-motion example and link me to the source. Your agent searches the published catalog, reads the matching guide’s Markdown and returns the author’s public link. The live example is [Accessible CSS Transitions](https://www.devguides.com/jordan/accessible-css-transitions-disclosure-reduced-motion). ## Write with Studio and an agent 1. Grant private draft access and ask your agent to [create a Markdown draft](https://www.devguides.com/docs/authoring). Open the returned Studio link to inspect it. 2. [Upload a banner or animation](https://www.devguides.com/docs/media) and use it in the draft. The same files appear in Studio and the published guide. 3. When you’ve reviewed the saved version, [publish that revision](https://www.devguides.com/docs/publishing) from Studio or directly through your connected agent. Each connection has its own [permissions](https://www.devguides.com/docs/permissions). You can give a research client read access and a writing client permission to maintain your guides. --- # Connect your agent Set up the DevGuides Model Context Protocol (MCP) server in your chat app, editor or CLI. Start a connection from the client you plan to use. Each client opens DevGuides in your browser so you can sign in, choose an author account and grant permissions. ## Server settings | Setting | Value | | --- | --- | | MCP server URL | `https://www.devguides.com/api/mcp` | | Transport | Streamable HTTP | | Authentication | OAuth with PKCE (S256) | | Client secret | Leave empty for the clients listed below | ## ChatGPT 1. Open [ChatGPT Plugins](https://chatgpt.com/plugins) on the web. Select **+ → Add custom MCP server** and name it **DevGuides**. 2. Enter `https://www.devguides.com/api/mcp`, select OAuth with an existing client and enter `devguides-chatgpt` as the client ID. Leave the secret empty. If prompted for a token authentication method, choose `none`. 3. Review the connection, select **Create as a plugin**, then install and connect it. On DevGuides, grant public guide reading, private draft reading and writing, and publishing to try the full author workflow. 4. Start a [new ChatGPT conversation](https://chatgpt.com/). Type `@`, select **DevGuides** in the picker, and ask it to find a guide. Select DevGuides again on follow-ups that need another action. ChatGPT may ask you to confirm a write. Drafting and publishing require a Business or Enterprise/Edu workspace with write actions enabled. On Business, an owner or admin creates a custom connection. Personal Pro supports reading and fetching from custom servers. After changing your grant, open the plugin, select **Refresh**, and start a new chat. [ChatGPT plan and workspace requirements](https://help.openai.com/en/articles/12584461-connecting-custom-mcp-servers-in-chatgpt) Workspace admins with upload access can also [download the ChatGPT workspace plugin](https://www.devguides.com/account/mcp/downloads/devguides-chatgpt.zip) and use **Admin console → your workspace → Plugins → Add → Upload plugin**. Enter the same public client ID when configuring OAuth. The registered callback is `https://chatgpt.com/connector_platform_oauth_redirect`. ## Codex CLI [Download the Codex CLI marketplace ZIP](https://www.devguides.com/account/mcp/downloads/devguides-codex-cli.zip) and extract it to a folder you’ll keep. From the folder that contains `.agents`, install the plugin and sign in. ```sh codex plugin marketplace add . codex plugin add devguides@devguides codex mcp login devguides ``` Start a new Codex session after consent. Run `codex mcp list` to see the connection. For a manual setup, use this entry in `~/.codex/config.toml` in place of the plugin. ```toml [mcp_servers.devguides] url = "https://www.devguides.com/api/mcp" [mcp_servers.devguides.oauth] client_id = "devguides-codex-cli" callback_port = 48654 callback_url = "http://127.0.0.1:48654/callback" ``` For the manual setup, request your desired permissions at login. This command offers all eight author permissions. ```sh codex mcp login devguides --scopes guides:read,drafts:read,drafts:write,media:upload,guides:publish,revisions:read,revisions:write,analytics:author ``` ## Claude Code Install the plugin from the DevGuides marketplace. ```sh claude plugin marketplace add https://www.devguides.com/account/mcp/downloads/claude-marketplace.json claude plugin install devguides@devguides ``` Start Claude Code, open `/mcp` and authenticate `plugin:devguides:devguides`. To try the plugin for one session, [download the Claude Code ZIP](https://www.devguides.com/account/mcp/downloads/devguides-claude-code.zip) and run `claude --plugin-dir ./devguides-claude-code.zip`. For a direct connection across projects, use the registered client and callback port. ```sh claude mcp add --scope user --transport http --client-id devguides-claude-code --callback-port 48655 devguides https://www.devguides.com/api/mcp claude mcp login devguides ``` The direct connection returns to `http://localhost:48655/callback`. ## Claude on the web In **Customize → Connectors**, add a custom connector named **DevGuides** with the server URL above. Choose **Sign in now → Use your own OAuth client**, enter `devguides-claude` as the client ID and leave the secret empty. Add the connector and finish consent in DevGuides. Claude returns to `https://claude.ai/api/mcp/auth_callback`. ## Perplexity Computer In **Plugins → Add MCP connector**, name the connector **DevGuides** and paste the server URL. Under **Advanced**, choose **OAuth**, **Streamable HTTP** and **Public** network access. Enter `devguides-perplexity` as **Client ID** and leave **Client Secret** empty. Click **Add**, then open the connector card to sign in and choose scopes. This registration uses `https://www.perplexity.ai/rest/connections/oauth_callback`. A Perplexity Enterprise subdomain with a different callback needs a separate registration. ## Cursor Add this entry to `~/.cursor/mcp.json` for your user, or `.cursor/mcp.json` in a project. Merge it with any existing servers. Follow Cursor’s sign-in prompt. Its desktop callback is `http://localhost:8787/callback`. ```json { "mcpServers": { "devguides": { "url": "https://www.devguides.com/api/mcp", "auth": { "CLIENT_ID": "devguides-cursor", "scopes": ["guides:read", "drafts:read", "drafts:write", "media:upload", "guides:publish", "revisions:read", "revisions:write", "analytics:author"] } } } } ``` ## Gemini CLI Add this entry to `~/.gemini/settings.json` for your user, or `.gemini/settings.json` in a project. Merge it with any existing servers. ```json { "mcpServers": { "devguides": { "httpUrl": "https://www.devguides.com/api/mcp", "oauth": { "enabled": true, "clientId": "devguides-gemini-cli", "redirectUri": "http://localhost:41822/oauth/callback", "scopes": ["guides:read", "drafts:read", "drafts:write", "media:upload", "guides:publish", "revisions:read", "revisions:write", "analytics:author"] } } } } ``` Run `/mcp auth devguides` in Gemini CLI and choose the permissions to grant. ## General connector Any other MCP-compatible IDE, chat application, CLI, or custom agent framework can connect to DevGuides over standard Streamable HTTP with OAuth 2.1 + PKCE. | Parameter | Value | | --- | --- | | Endpoint | `https://www.devguides.com/api/mcp` | | Transport | Streamable HTTP (MCP `2025-11-25`) | | Resource metadata | `https://www.devguides.com/.well-known/oauth-protected-resource/api/mcp` | | Authorization server | `https://www.devguides.com/.well-known/oauth-authorization-server` | | Grant & PKCE | Authorization Code with `S256` PKCE (`token_endpoint_auth_method: "none"`) | | Author scopes | `guides:read`, `drafts:read`, `drafts:write`, `media:upload`, `guides:publish`, `revisions:read`, `revisions:write`, `analytics:author` | 1. Point your MCP client at `https://www.devguides.com/api/mcp` using **Streamable HTTP**. Clients that implement MCP OAuth discovery automatically read the bearer challenge and fetch the authorization server metadata. 2. For self-describing platforms and agents that support [Client ID Metadata Documents](https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization#client-id-metadata-documents), pass your client’s canonical `https://` metadata URL as `client_id` with `token_endpoint_auth_method: "none"` and no client secret—no operator pre-registration is required. 3. For desktop or web tools that require a static `client_id`, configure an HTTPS public callback or fixed loopback callback (`http://127.0.0.1:/callback` or `http://localhost:/callback`) and include `offline_access` alongside your requested DevGuides scopes if your client rotates refresh tokens. 4. Complete the browser sign-in and permission selection on DevGuides. Access tokens last 1 hour and renew automatically via rotating refresh tokens. ## Verify the connection Select DevGuides in your client and try this request. > Use DevGuides to find the guide about accessible CSS transitions. Read the guide, summarize its reduced-motion example and give me its public URL. With `guides:read` granted, look for `search_guides` and `read_guide` in the tool activity. With draft access, [create a private draft](https://www.devguides.com/docs/authoring) and open its returned Studio link. You can [manage connected clients in Account](https://www.devguides.com/account#connections-heading). --- # Permissions Choose what each connected agent can read, write and publish under your name. ## Choose what an agent can do Start the connection from your client. Sign in to the DevGuides author account you want it to use. Review the client name and return address, select the permissions you want, and choose **Allow access**. If a client omits its scope list, DevGuides offers eight author permissions and selects public guide reading by default. If a client requests particular scopes, you may select a subset of those scopes. Check the author account and the selected boxes before approving. | Scope | What you grant | | --- | --- | | `guides:read` | Search and read published guides and get public catalog counts. | | `drafts:read` | List and read your unpublished drafts, including Markdown and Studio links. | | `drafts:write` | Create and edit your unpublished drafts. | | `media:upload` | Upload images and animations under your account. | | `guides:publish` | Publish a reviewed draft. Combined with `revisions:read`, release an edit to a published guide. | | `revisions:read` | Read the private working copy of one of your published guides and list pending edits. | | `revisions:write` | Save a private working copy of a published guide. | | `analytics:author` | Read aggregate views and reading depth for your published guides. | | `analytics:system` | Read platform-wide publication and view totals. DevGuides administrators must request this scope explicitly. | ## Match a grant to a workflow For research, grant `guides:read`. To write a private draft and review its saved Markdown, add both `drafts:read` and `drafts:write`. Add `media:upload` if the agent needs to supply images or videos, and `guides:publish` if you want it to publish a revision you approve. For an existing publication, grant `revisions:read` and `revisions:write` to edit its private working copy. Add `guides:publish` to release it. The [tool reference](https://www.devguides.com/docs/tools) lists the exact scopes for each call. ## Change or revoke access To grant another scope, authorize the client again, request the desired scopes and select them on the new consent screen. Refresh its tool list or start a fresh client session. A token already issued keeps its own permissions. Open [Account → Connected clients](https://www.devguides.com/account#connections-heading) to see active grants and disconnect an old or unwanted connection. Revocation cuts off both new tool calls and token refresh. You can connect again from the client when you need access. --- # Write a private draft Create a guide from Markdown, open it in Studio and edit the same revision from either place. ## Create a private draft Grant `drafts:write` and `drafts:read`. Ask your connected client to create the guide. > Create a private DevGuides draft titled “Keyboard focus basics.” Include a “Keyboard checks” heading and a checklist item for testing the Tab key. Give me its Studio link, ID and revision. The client calls `create_draft`, generates a UUID for `idempotencyKey` and saves the title and `bodyMarkdown`. It receives `id`, `revision` and `editUrl`. Opening the Studio link lets you edit the same private draft. For a retry after a lost response, reuse the same creation key and identical fields. ## Choose the guide fields | Field | How to use it | | --- | --- | | `title` | A required title, up to 160 characters. | | `bodyMarkdown` | The body alone, up to 150,000 characters. Store headings, lists, fenced code, tables and media here. | | `topics` | Up to eight distinct topics after normalization. Topic slugs contain lowercase letters, digits and hyphens, with a maximum of 32 characters each. | | `summary` | Supply up to 400 characters for a custom summary. An empty string restores the generated excerpt. | | `slug` | An optional permalink segment of up to 160 characters. Use lowercase letters or digits with single hyphens between words. | | `banner` | Use the author-owned image path returned by [finishing an upload](https://www.devguides.com/docs/media). | | `aiAssisted` | Ask the author before setting this optional label. Set it to true if the author wants readers to see “AI-assisted.” | Store the title and topics in their fields. Studio’s Markdown download adds a title, topics and optional banner around the stored body. Passing the whole export as `bodyMarkdown` would duplicate that metadata. ## Edit the reviewed version Ask the agent to read the draft using `read_draft`, then to apply a change. > Append a “Browser check” section that says “Test in two browsers.” Keep my earlier checklist. Save it and show me the new Markdown and revision. Pass the read result’s `revision` as `expectedRevision` to `update_draft`. Omitted fields retain their values. A supplied `bodyMarkdown` replaces the entire body, so include the original Markdown you intend to keep. Read the saved draft again and refresh its Studio tab to see the change. ## Recover from a conflict When Studio or another client saves first, the stale write returns `conflict`. Keep your proposed Markdown, read the latest draft and compare the two versions. Apply the agreed changes to the newer body and send its revision with the next write. Follow the [publishing workflow](https://www.devguides.com/docs/publishing) when the author approves the result. --- # Images and animations Upload a cover image, place illustrations in the body and embed short videos that readers can play. ## Choose a file Grant `media:upload` to the client handling the file and `drafts:write` or `revisions:write` to the client that will place it in a guide. Use an image for a banner or an inline illustration, and a short video for an inline animation. | Use | Supported types | Maximum size | | --- | --- | --- | | Banner or inline image | PNG, JPEG, WebP | 3 MiB (3,145,728 bytes) | | Inline animation | MP4, WebM | 10 MiB (10,485,760 bytes) | ## Upload the original bytes 1. Call `begin_media_upload` with the exact byte count and MIME type, for example `{"size":42681,"contentType":"image/png"}`. It returns `method`, `uploadUrl`, `headers`, `path` and `expiresAt`. 2. Use the returned HTTP method (`PUT`) and every returned header to send the raw file bytes to `uploadUrl`. The body is the file itself. Keep the temporary upload URL private and complete the transfer before `expiresAt`. 3. After the PUT succeeds, call `finish_media_upload` with that same `path`. The server checks the file type and returns the stable DevGuides path and Markdown. If you lose the finish response, repeat the finish call with the same path. A client needs a way to send file bytes over HTTPS to perform step two. If your chat client cannot transfer a file, open the draft’s Studio link and attach it there. ## Add a banner, image or animation For a banner, put the finished image’s `banner` value in the guide’s `banner` field. A video is only available for inline placement. For an inline image, insert the returned `markdown` into `bodyMarkdown` and add descriptive alt text inside the square brackets. For an animation, put the returned `[Guide animation](…)` Markdown on its own line and keep that label. Studio and the guide page recognize this line as a video player. When modifying an existing draft, preserve the rest of its Markdown and send the current `expectedRevision`. Open the Studio link and check the banner, images and playback before [publishing the reviewed version](https://www.devguides.com/docs/publishing). --- # Publish and revise Release an approved revision and keep later edits private until they are ready. ## Publish an unpublished draft Give the client `drafts:read` to review the saved copy and `guides:publish` to publish. Read the full Markdown, ID and revision with `read_draft` or inspect the draft in Studio. After reviewing that specific version, give the agent explicit approval. > Publish the exact draft revision I just reviewed. Open the public guide, compare its Markdown with the saved draft, and give me the link. The client passes `id` and `expectedRevision` to `publish_draft`. The response includes the live `revision`, `publishedAt` and canonical `url`. With `guides:read` it can verify the published `bodyMarkdown` using `read_guide`. Publishing requires a title and nonblank body. ## Update a published guide 1. Use `read_guide_revision` with the published guide’s ID. Before the first private edit, this returns the current publication. Check `hasPendingChanges`, `revision` and `baseRevision`. 2. Pass that `revision` as `expectedRevision` to `save_guide_revision` with the fields to change. The save is private. Open its `editUrl` in Studio, or use `list_guide_revisions` later to find pending work. 3. Read the saved private version and obtain the author’s approval. Call `publish_guide_revision` with its ID and exact revision. This requires both `revisions:read` and `guides:publish`. Readers now see the new version at the returned URL. The original publication date is preserved. After a conflict, read and review the latest content before trying to publish again. If a successful publication response is lost, replay the same ID and revision. While that publication is still live the server returns its original receipt. ## Publication limits An author can make ten successful publications per rolling hour across all connected clients and Studio combined. This includes first publications and releases of private edits. Replays of a live publication receipt do not use another slot. At the limit the tool returns `rate_limited` with `retryAfterSeconds`. Keep editing privately while you wait. DevGuides publishes immediately when the approved call succeeds. Scheduling future publication is currently unavailable. --- # Stats and analytics Get public catalog counts and understand how readers use the guides you publish. ## Count the public catalog Call `public_stats` with `{}` and the `guides:read` permission. It returns `publishedGuides`, `publishedAuthors`, `representedTopics` and a UTC `observedAt` timestamp. Authors and topics are counted distinctly across eligible published guides. An empty catalog returns zeros. > Use DevGuides to count the published guides, authors and topics. Include when the counts were observed. ## Measure your publications With `analytics:author`, call `author_analytics` with `{}` for all your published guides or with a published guide’s UUID in `guideId` to isolate it. The response includes `publishedGuides`, `lifetimeViews`, `viewsLast7Days`, `readingDepth` and `observedAt`. The seven-day window covers today in UTC and the preceding six UTC dates. Reading depth counts signed-in reader–guide pairs and excludes author self-reads. Each reader contributes once per guide to `readerGuidePairs` and once to each milestone they reach. Use `quarter`, `halfway`, `threeQuarters` and `completed` for the four milestones. One reader reaching the end of two different guides contributes two completed reader–guide pairs. ## Read platform analytics DevGuides administrators can explicitly request `analytics:system` and call `system_analytics` with `{}`. It returns public catalog counts, `publishedGuidesLast7Days`, `lifetimeViews`, `viewsLast7Days` and `observedAt` across eligible public guides. For public catalog counts alone, use `public_stats`. --- # Tool reference Look up each MCP tool by name, permission, accepted inputs and returned fields. Call `tools/list` after authorization for the schemas your connection can use. The eight author scopes expose 15 tools together. The sixteenth tool requires explicit administrator access. Each successful tool returns JSON in both `structuredContent` and a text content block. ## Public discovery ### search_guides Requires `guides:read`. Supply any combination of `query`, `topic`, `limit` and `after`. An empty request lists published guides. Search uses the first eight distinct words in `query`. Each word must occur in the title, summary or topics, or the full search phrase must match part of a topic. Adding `topic` narrows either match to guides tagged with that normalized slug. Results include `guides` with IDs and canonical URLs, plus `nextCursor`. For another page, pass that cursor as `after` and keep the filters unchanged. The default limit is 20 and maximum is 50. ```json {"query":"accessible CSS transitions","limit":5} ``` ### read_guide Requires `guides:read`. Supply exactly one UUID (`id`) or canonical `path` such as `/jordan/accessible-css-transitions-disclosure-reduced-motion`. Returns the exact stored `bodyMarkdown`, title, summary, topics, banner, AI-assisted flag, author handle, URL, revision and timestamps. ### public_stats Requires `guides:read`. Pass `{}`. Returns `publishedGuides`, `publishedAuthors`, `representedTopics` and `observedAt` for the public catalog. ## Unpublished drafts ### list_drafts Requires `drafts:read`. Pass optional `offset` (default 0) and `limit` (default 20, maximum 50). Returns `drafts` with IDs, metadata, revisions and Studio edit links for the connected author. Pass `nextOffset` to continue while it has a value. ### read_draft Requires `drafts:read`. Pass `id`. Returns the unpublished draft’s `bodyMarkdown`, metadata, `revision` and `editUrl`. ### create_draft Requires `drafts:write`. Requires a fresh UUID `idempotencyKey`, `title` and `bodyMarkdown`. Optional fields are `topics`, `slug`, `summary`, `banner` and `aiAssisted`. See [field limits](https://www.devguides.com/docs/authoring#choose-the-guide-fields). Returns `id`, `revision` and `editUrl`. Retry a lost response with the original key and identical fields. ### update_draft Requires `drafts:write`. Pass `id`, `expectedRevision` and the [guide fields](https://www.devguides.com/docs/authoring#choose-the-guide-fields) to change. A supplied body replaces the existing body. Returns the saved `revision`, `id` and `editUrl`. A stale revision produces a conflict. ## Media ### begin_media_upload Requires `media:upload`. Pass `contentType` and a positive integer `size` in bytes. Supports PNG, JPEG and WebP up to 3 MiB and MP4 or WebM up to 10 MiB. Returns `uploadUrl`, `method`, `headers`, `path` and `expiresAt`. HTTP PUT the bytes using those headers. [Upload workflow](https://www.devguides.com/docs/media) ### finish_media_upload Requires `media:upload`. Pass the `path` from the successful upload. Returns a stable `url` and `markdown`. Images also return `banner`. You can repeat a successful finish if its response is lost. ## Publication and private revisions ### publish_draft Requires `guides:publish`. Pass `id` and the reviewed draft’s `expectedRevision`. Returns the public `url`, `revision`, `id` and `publishedAt`. [Publish a draft](https://www.devguides.com/docs/publishing) ### list_guide_revisions Requires `revisions:read`. Pass optional `offset` and `limit` (default 20, maximum 50). Returns the author’s published guides with pending private edits, newest save first, under `revisions` with `nextOffset` for pagination. ### read_guide_revision Requires `revisions:read`. Pass the published guide’s `id`. Returns the editable Markdown and metadata, `publicSlug`, `revision`, `baseRevision`, `hasPendingChanges` and `editUrl`. Before a private working copy exists this reads the current publication. ### save_guide_revision Requires `revisions:write`. Pass `id`, `expectedRevision` and changed guide fields. Saves a private working copy while the public page continues to serve its previous release. Returns `id`, `revision` and `editUrl`. ### publish_guide_revision Requires `revisions:read` and `guides:publish` together. Pass `id` and the approved private copy’s `expectedRevision`. Returns the released `revision`, `id`, `publishedAt` and canonical `url`. Publishing shares the author’s [rolling-hour allowance](https://www.devguides.com/docs/publishing#publication-limits) with Studio. ## Analytics ### author_analytics Requires `analytics:author`. Pass `{}` to aggregate across your published guides, or include a published `guideId` that you own. Returns publication count, lifetime views, seven-day views, aggregate reading depth and the observation timestamp. [Reading-depth definitions](https://www.devguides.com/docs/analytics#measure-your-publications) ### system_analytics Requires `analytics:system`. Available to a DevGuides administrator who explicitly grants the scope. Pass `{}` for catalog totals, new publications in the last seven UTC dates, lifetime and seven-day views, and `observedAt`. --- # OAuth and transport Implement discovery, account consent, token rotation and client identification. ## Discover the endpoints Connect over Streamable HTTP at `https://www.devguides.com/api/mcp`. An unauthenticated POST returns HTTP 401 with a `WWW-Authenticate` bearer challenge pointing to the protected resource metadata. Follow the metadata links to build a public OAuth client. | Endpoint | Purpose | | --- | --- | | [Protected resource metadata](https://www.devguides.com/.well-known/oauth-protected-resource/api/mcp) | Resource URL, bearer transport, supported scopes and authorization server. | | [Authorization server metadata](https://www.devguides.com/.well-known/oauth-authorization-server) | Issuer, authorization and token endpoints, supported grant types and PKCE methods. | | `/account/connect` | Browser sign-in and account consent. Start this URL with an authorization request from the client. | | `/api/oauth/token` | Code exchange and refresh. POST a form-encoded request. | ## Authorize and exchange 1. Generate a fresh PKCE verifier, its S256 challenge and a state value. Open the authorization endpoint with `response_type=code`, `client_id`, `redirect_uri`, `resource`, `code_challenge`, `code_challenge_method=S256` and `state`. The resource is the complete canonical MCP server URL. 2. Optionally send a space-separated `scope` parameter. It must contain at least one [DevGuides permission](https://www.devguides.com/docs/permissions). The author can grant a subset. `offline_access` may accompany the request. 3. Check the state and issuer on return. Exchange the code at the token endpoint using `grant_type=authorization_code` with `client_id`, the same `redirect_uri` and `resource`, the `code` and the original `code_verifier`. Use `application/x-www-form-urlencoded` and token authentication method `none`. 4. Read `access_token`, `token_type`, `scope`, `expires_in` and `refresh_token` from the response. Use `Authorization: Bearer ` for MCP POST requests, then use `tools/list` to discover the consented tools. Tool calls return JSON in both `structuredContent` and a text content block. ## Renew a connection Access tokens last up to one hour. Refresh with `grant_type=refresh_token`, `client_id` and the current `refresh_token`. If you send `resource`, use the same canonical URL. Every successful refresh returns a new token pair. Store the new pair together before the next call and serialize refreshes per connection. The refresh window is 30 days from issuance or rotation, up to 90 days from the initial exchange. A refresh keeps the granted scopes. Reuse of a retired refresh token after its ten-second concurrency grace period revokes the connection. A concurrent use during the grace period is still refused, so share the latest successful response within the client. After expiry or revocation, start a new consent flow. ## Identify your client The seven [client setups](https://www.devguides.com/docs/connect) use registered public client IDs with exact callback addresses. For a new integration you can identify a public client with an HTTPS Client ID Metadata Document. Serve JSON from a canonical public HTTPS URL with a path. The URL must return the document directly. Use that URL as the `client_id` in the authorization request. ```json { "client_id": "https://example.com/oauth/client.json", "client_name": "Example writing client", "redirect_uris": ["https://example.com/oauth/callback"], "token_endpoint_auth_method": "none" } ``` Replace the example host and callback with your own. The document must repeat its own URL, declare `none` explicitly and list one to ten callbacks. Use public HTTPS callbacks or HTTP loopback addresses. A metadata client may vary a loopback port while keeping the same scheme, host and path. DevGuides rechecks expired metadata during authorization or token refresh. A change to the registered name or callbacks requires fresh consent. --- # Troubleshooting Resolve setup errors, missing tools, conflicting saves and failed uploads. ## Invalid connection request Start sign-in from the MCP client. DevGuides expects a complete authorization request including PKCE, a resource and a matching callback. Opening the consent page by itself cannot identify the client. Check the registered ID and exact callback in [Connect your agent](https://www.devguides.com/docs/connect). For Codex CLI, set both the callback port and the full callback URL. ## My client asks for a secret For a listed client, use its public client ID, OAuth with PKCE and an empty secret. Perplexity’s automatic registration warning appears when the public client ID is missing. Set `devguides-perplexity` and use its standard callback. If your custom integration uses a different callback, follow [Client identification](https://www.devguides.com/docs/oauth#identify-your-client). ## Some tools are missing Inspect the result of `tools/list` or the client’s tools screen. DevGuides exposes only the tools available to the current grant. [Authorize the connection again](https://www.devguides.com/docs/permissions#change-or-revoke-access) for additional scopes, refresh the tool list and start a new session. In ChatGPT, check the workspace allows write actions and select **@DevGuides** on messages that need the plugin. ## A draft or publication failed | Result | What to do | | --- | --- | | `conflict` | Preserve your proposed changes. Read the latest draft or private revision and review the differences before saving or publishing again. For a reused creation key, retry with the original fields. | | `invalid` | Check title, Markdown, topic count, slug and banner ownership. A public guide needs a nonblank body. | | `rate_limited` | Wait the returned `retryAfterSeconds` before publishing. You can keep saving private work. | | `unavailable` | Check the guide ID, signed-in author and consent. Use draft tools for an unpublished guide and revision tools for a published one. | ## A token exchange failed For `invalid_target`, check the exact resource URL, including `www` and `/api/mcp`. For `invalid_request`, check the form encoding, required fields and duplicate parameters. For `invalid_grant` after refresh, use the newest stored tokens or sign in again. On `temporarily_unavailable`, retry later. [OAuth reference](https://www.devguides.com/docs/oauth) ## Media will not display Check the file type and byte limits, PUT the original bytes with the returned headers, then finish the upload. Use the finished DevGuides URL for the banner or inline image. For video, keep the finished Markdown on its own line. [Media upload guide](https://www.devguides.com/docs/media) If the problem persists, [contact DevGuides support](https://www.devguides.com/support) with the client name, action and error message. Keep tokens and temporary upload URLs out of support messages. --- ## Published Developer Field Guides Catalog ### How to Sync AI Agent Skills For All Models - Canonical URL: https://www.devguides.com/jordan/how-to-sync-ai-agent-skills-for-all-models - Markdown URL: https://www.devguides.com/jordan/how-to-sync-ai-agent-skills-for-all-models.md - Author: Jordan Hudgens (@jordan) - Topics: AI Ops, AI Development, Agent Skills - Reading Time: 8 min - Summary: Learn how to implement a two-layer solution that addresses both local and cloud agents from a single source of truth. ### How to Use NVIDIA Auto Ontology with SQL Agents and MCP - Canonical URL: https://www.devguides.com/jordan/how-to-use-nvidia-auto-ontology-sql-agents-mcp - Markdown URL: https://www.devguides.com/jordan/how-to-use-nvidia-auto-ontology-sql-agents-mcp.md - Author: Jordan Hudgens (@jordan) - Topics: AI Development, SQL, Postgresql, Python, Mcp, Agents, Llm, AI - Reading Time: 29 min - Summary: Build a governed SQL semantic layer with NVIDIA Auto Ontology 1.3.0. Connect databases, compile business terms and joins into Postgres and pgvector, wire up the 9-tool MCP server, and verify an ontology locally with Docker and Apache Ossie. ### Learn What an AI Harness Is by Building One in Rust - Canonical URL: https://www.devguides.com/jordan/learn-what-an-ai-harness-is-by-building-one-in-rust - Markdown URL: https://www.devguides.com/jordan/learn-what-an-ai-harness-is-by-building-one-in-rust.md - Author: Jordan Hudgens (@jordan) - Topics: Rust, AI, Agents, Cli, Llm, Security - Reading Time: 46 min - Summary: A model writes the patch. The harness decides what it can touch, runs the tests and logs every step. Build one in Rust from an empty folder. ### Rust Tutorial: How to Build a CLI Tool that Writes Your Git Commit Messages - Canonical URL: https://www.devguides.com/jordan/rust-tutorial-how-to-build-a-cli-tool-that-writes-your-git-commit-messages - Markdown URL: https://www.devguides.com/jordan/rust-tutorial-how-to-build-a-cli-tool-that-writes-your-git-commit-messages.md - Author: Jordan Hudgens (@jordan) - Topics: Rust, Cli, Git, AI, Llm, Open Source - Reading Time: 22 min - Summary: Walk through how to build an open source Rust CLI tool that turns staged Git changes into AI-written commits messages. ### Accessible CSS Transitions: Build a Disclosure That Respects Reduced Motion - Canonical URL: https://www.devguides.com/jordan/accessible-css-transitions-disclosure-reduced-motion - Markdown URL: https://www.devguides.com/jordan/accessible-css-transitions-disclosure-reduced-motion.md - Author: Jordan Hudgens (@jordan) - Topics: CSS, Accessibility, JavaScript - Reading Time: 6 min - Summary: Build a keyboard-accessible shipping disclosure in HTML, CSS, and JavaScript. Compare linear and ease-out timing, watch how reduced motion changes the interaction, and test the result in your browser. ### Step By Step Instructions for Working With Large Models via Hugging Face - Canonical URL: https://www.devguides.com/jordan/step-by-step-instructions-for-working-with-large-models-via-hugging-face - Markdown URL: https://www.devguides.com/jordan/step-by-step-instructions-for-working-with-large-models-via-hugging-face.md - Author: Jordan Hudgens (@jordan) - Topics: Hugging Face, AI Development, Large Files, AI - Reading Time: 3 min - Summary: Managing large model files on Hugging Face can feel cumbersome, especially when dealing with multigigabyte embeddings or generative models. Fortunately, the Hugging Face CLI now streamlines the entire process. ### Auth Strategies: The Right Tool for the Right Scenario - Canonical URL: https://www.devguides.com/jordan/auth-strategies-the-right-tool-for-the-right-scenario-a51e0ef8 - Markdown URL: https://www.devguides.com/jordan/auth-strategies-the-right-tool-for-the-right-scenario-a51e0ef8.md - Author: Jordan Hudgens (@jordan) - Topics: Authentication, Jwt, Session Auth - Reading Time: 24 min - Summary: A practical developer guide to sessions, JWTs, OAuth 2.0/OIDC, SAML, API keys, mTLS, passkeys, and magic links — without picking sides. ### Stop Your React App From Shifting: A Deep Dive into useCLS from @page-speed/hooks - Canonical URL: https://www.devguides.com/jordan/stop-your-react-app-from-shifting-a-deep-dive-into-usecls-from-page-speed-hooks - Markdown URL: https://www.devguides.com/jordan/stop-your-react-app-from-shifting-a-deep-dive-into-usecls-from-page-speed-hooks.md - Author: Jordan Hudgens (@jordan) - Topics: React, Performance, Hooks - Reading Time: 23 min - Summary: A complete developer tutorial on measuring, diagnosing, and eliminating Cumulative Layout Shift in React applications using the open-source @page-speed/hooks library. Wh ### Rust Is Fast, How Can We Ensure Our Code Doesn't Make It Slow? - Canonical URL: https://www.devguides.com/jordan/rust-is-fast-how-can-we-ensure-our-code-does-not-make-it-slow - Markdown URL: https://www.devguides.com/jordan/rust-is-fast-how-can-we-ensure-our-code-does-not-make-it-slow.md - Author: Jordan Hudgens (@jordan) - Topics: Rust, Performance, Ci, Codspeed - Reading Time: 18 min - Summary: Application performance is a mission critical metric for nearly every type of modern application. If your codebases look like mine, they are overflowing with specs and automated te