Leitvia Studio: own MCP server, OAuth and views in chat

Leitvia Studio 1.3.60 brings its own MCP server with OAuth for claude.ai, ChatGPT and VS Code. Leitvia Pro adds seven views that a chat app shows.

A website of flat blocks on the left of a dark grid and three chat windows on the right, each joined to the site by a line; the middle window and its line are orange as the open connection

Leitvia Studio 1.3.60 runs its own MCP server with 74 tools. It speaks the MCP revisions 2026-07-28 and 2025-11-25, needs no other plugin and lets AI clients sign in with OAuth after a person agrees in WordPress. Leitvia Pro 0.8.50 adds seven views that a chat app with MCP Apps shows next to the answer of a tool.

One server, two revisions, no extra plugin

Until now, the MCP server of Leitvia Studio came through the plugin MCP Adapter. Studio now answers at /wp-json/leitvia-studio/v1/mcp by itself, over streamable HTTP. A client that speaks 2026-07-28 gets the new revision without a session; an older client starts with initialize and works under 2025-11-25. Existing configurations keep their address. The MCP Adapter stays optional: when it is active, its default server offers the same abilities with the same checks.

Every ability is a tool, such as leitvia-get-contract. Resources hold the design contract, the token sets, the patterns, the open change packages and the outline of a page, so an AI agent reads them without a tool call. The screen Agents shows the address of the server and both revisions under Direct connection for AI apps.

Connect claude.ai, ChatGPT and VS Code with OAuth

Clients that sign in to remote MCP servers with OAuth, such as claude.ai, Claude Desktop, ChatGPT and VS Code, need no password anymore. You add the address of the server in the client, the client opens the page Connect agent of your site, and you choose there which agent user the AI client works as. Reading is always included; writing is a box you tick, never ticked in advance. The site needs HTTPS for this.

Studio is resource server and authorization server in one. Clients name themselves with a client document (CIMD); older clients may register themselves (DCR), which you can switch off. Every open connection is listed under Leitvia Studio › Agents › Connections with the user it works as, its rights and its last call. Close connection stops its tokens at once. The steps per client are in Connect an AI agent.

Claude Code, Codex and Cursor keep their key

AI coding tools that send an Authorization header keep working with the application password of an agent user. Claude Code negotiates 2026-07-28 on its own. Codex needs only the header in its configuration and works under 2025-11-25. Cursor reads the header from .cursor/mcp.json. With a Pro plan, the account page Fleet on leitvia.com writes this configuration for every site of your team, one entry per site, without storing any access.

Prompts, questions and tasks

  • Prompts: every skill and workflow of Leitvia Skills, such as leitvia-page, comes as a prompt in the version of the installed Studio, so the AI agent and the site never disagree on the rules.
  • Questions: under 2026-07-28, a client with form elicitation asks the person before an AI agent deletes, removes, rejects or rolls back something. A yes is no approval; changes that need one still wait in a change package.
  • Tasks: leitvia-apply-recipe, leitvia-audit-site and leitvia-export run in the background for a client with the tasks extension and report their progress. Other AI clients wait for the result.

Patterns from every source, reviewed first

An AI agent used to see only the patterns of the design contract. Now it sees every registered pattern: those of a child theme, of other plugins and of the Lab. A pattern outside the contract comes as unreviewed, and its title, description and markup are marked as untrusted data, never as instructions. Studio builds pages with it only after a person approves it in the Lab, where roles and layout can be added.

Seven views in the chat with Leitvia Pro

Leitvia Pro attaches a view to seven tools: approve packages, token studio, pattern picker, page plan, audit report, media and history. A chat app that supports MCP Apps shows the view next to the answer; any other client gets the same result as text and structured data. The views ship with Pro, load nothing from other hosts and talk only to the tools of the same connection. We test them in a sandboxed host with the strict content security policy the MCP Apps extension asks for, light and dark, by keyboard and with axe.

Approving in the chat is reserved for this view and for a person. You connect as yourself with the right to approve, and the buttons act for you. An AI agent never gets that right; it gets the way into the Inbox. Pro needs an active license for the views, which every Pro plan on Pricing includes.

The views in detail

Each view does one job that would take several messages in plain text. What you can do in the other six:

  • Token studio: change colors and fonts of the active token set. Every pair of the design contract is checked against WCAG AA on each keystroke, such as ink on surface at 4.5 to 1. Save as token set creates a new set next to the active one, with a preview of the site on a signed address. Activating it still goes through a change package.
  • Pick a pattern: tiles with a sketch of the layout, filters for role, tone, source and status, and Load more for the next page. Use the choice hands the slug to the AI agent as a message.
  • Page plan: the sections of a planned page as cards. Move one up or down and the composition score is checked again; swap a pattern for another approved one of the same role; then Build page.
  • Audit report: findings for accessibility after BITV, SEO and GEO, first for the whole site, then per page. Have it fixed gives one finding to the AI agent, Check more pages goes on.
  • Media: open an image, make a cropped copy in percent of the image while the original stays, and save its alt text.
  • History of changes: past change packages with their changes and a preview. Rolling back takes two clicks, Roll back and Roll back for good.

Changes you make in a view go through the same checks as those of the AI agent and, depending on the autonomy of the site, are live at once or wait in the Inbox. Every view with its buttons and screenshots is in Views in the chat.

Security checks

Each of these runs as a test before every release:

  • PKCE with S256 only; a code works once and for 60 seconds, a second use closes every token of that consent.
  • Tokens are stored as hashes only. Refresh tokens rotate, and a reused one closes the whole chain.
  • Every token is bound to the address of the MCP server of its site and works on that route only.
  • Client documents come over HTTPS only, never from private, loopback or link local addresses, IPv6 variants included, never through a redirect and never larger than 64 KB; the address is resolved once, so DNS rebinding cannot move the request.
  • The consent page needs a nonce and a signed in person, preselects nothing and refuses to load in a frame.
  • Each connection has its own limit per tool: 120 reading and 30 writing calls a minute.
  • Headers that differ from the body of a request, unknown revisions and sessions of another user are refused.

Video

An AI client connects over OAuth on the site Tidepost, and the connection is closed again. The video has no sound; the transcript is below.
Transcript of the video
  1. Under Leitvia Studio, Agents, the status names the MCP server for AI apps and its address.
  2. Connections lists every AI client connected over OAuth and the agent user it works as.
  3. An AI client opens the page Connect agent. A self-registered client is marked not verified.
  4. Under Work as, choose the agent user the AI client works as.
  5. Reading is always included. Tick Write only if the AI agent may change the site.
  6. Connect sends the client back with a code, which it exchanges for its tokens.
  7. The new connection appears under Connections with its rights, read and write.
  8. Close connection asks once more, then stops the tokens of that client at once.

Changelog

  • Leitvia Studio 1.3.60: own MCP server with both revisions, OAuth 2.1 with consent page and connections, resources, prompts, questions, tasks, patterns of every source, extension points for prompts and views of add-ons.
  • Leitvia Pro 0.8.50: seven views for the chat, the skills of Pro as prompts.
  • Leitvia Skills 1.4.75: a chapter on MCP with OAuth, a header per client and troubleshooting; the MCP Adapter is optional.

Add ons can register their own prompts and views; For developers shows how. Every change is in the changelog.


Related articles