agentleFS
silvioventresilvioventre/lovable-skills/skills/build/mcp/SKILL.md

mcp

Skill4 starsChanged 4 months agoMITView on GitHub

Use when the user wants their published app usable from an AI assistant, or is working on one that already is — "publish my app as an MCP server", "make my app work with ChatGPT", "connect my app to Claude", "add an agent integration", "expose my app as tools", "let assistants call my app", "review my MCP tools", "should this tool require sign-in", "my users can't connect the integration". Covers whether an integration is worth adding, designing the tool surface, the access model, testing it before sharing, and keeping it current. Not for connecting external services into the Lovable editor while you build, and not for letting AI tools edit the Lovable project itself.

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use frontend-design.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Backend-enforced access control: Not formally required, and in practice the thing that decides whether this is safe.

    line 65

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MCP

Turning a published app into a set of tools an AI assistant can call. People use an app by clicking; an assistant cannot click, so it needs a list of actions instead. That list is the MCP server.

The integration runs against your live published app, not a copy. The assistant gets the tools you expose, and nothing else about your project.

Three things called MCP, doing opposite jobs

Confusing these wastes real time, because they point in different directions.

FeatureDirectionWhat it does
Agent integrations (this skill)Assistants → your appYour users' assistants call actions you expose in your published app
Lovable MCP serverAI tools → LovableExternal tools create and edit your Lovable projects
Chat connectorsLovable → external toolsThe agent pulls context from Notion, Linear and similar while you build

This skill is only the first. It does not let an assistant edit your Lovable project.

The security fact that governs everything

A tool call does not go through your app's screens.

Buttons you hid, pages you removed from the menu, fields you disabled, flows that are hard to reach — none of them protect the backend action underneath. An assistant calls the action directly.

So an app whose access control lives in its interface is fully exposed the moment tools go live. Everything real must be enforced in the backend, which is the secure skill's territory and is a prerequisite here, not a follow-up.

Three separate layers, and keeping them apart is what makes this safe:

  1. Sign-in identifies the caller. Users authenticate through your app's own sign-in, then approve the assistant on a consent screen.
  2. Your app's rules decide what that caller can do. Backend rules keyed on the signed-in user apply to tool calls. Anything extra — ownership, role, paid plan — applies only where the action itself checks it.
  3. The tool definition decides what is exposed. Its inputs, its action, and the fields it returns.

Route the task

The taskPlaybook
Deciding whether to add one at allreference/fit.md
Designing, reviewing, or changing toolsreference/tools.md
Sign-in, permissions, public versus protectedreference/access.md
Testing before sharing, publishing, maintainingreference/launch.md

The rules

Keep sign-in on. It is the default, and making tools public is always an explicit choice. Allow anonymous access only when every exposed action and every returned field is safe for anyone at all.

Access is all or nothing. Sign-in applies to the whole integration — you cannot mix public and protected tools. Individual actions can still enforce their own role, ownership, and plan checks inside a protected integration.

There is no rate limit and no spending cap. A signed-in user can call a tool as often as they like. Do not expose an action that costs money or consumes resources unless your app already enforces its own usage and plan limits on it.

Write actions must be safe to retry. An assistant will retry after a timeout or a dropped connection. A tool that creates an order twice has created two orders. Design writes so a repeated call does not duplicate the effect.

Start read-only and narrow. A small set of focused read tools, live and working, is a better starting point than a broad surface you review once. Add write actions deliberately.

Automated checks do not replace your review. A basic check runs at every publish and a deep scan on public integrations, but neither understands your business logic. Work through reference/tools.md and test as a real user before sharing.

Prerequisites

  • A publicly published app. Workspace-only and internal apps are not supported.
  • A backend — a front-end-only site cannot host an integration.
  • Backend-enforced access control. Not formally required, and in practice the thing that decides whether this is safe.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.