<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jill Mercer</title>
    <description>The latest articles on DEV Community by Jill Mercer (@jill_builds_apps).</description>
    <link>https://dev.to/jill_builds_apps</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3842253%2Feba6b2c1-bef7-4c6a-9e8a-254d1bc29930.png</url>
      <title>DEV Community: Jill Mercer</title>
      <link>https://dev.to/jill_builds_apps</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jill_builds_apps"/>
    <language>en</language>
    <item>
      <title>i added MCP support to my SaaS in an afternoon. here's the whole thing.</title>
      <dc:creator>Jill Mercer</dc:creator>
      <pubDate>Mon, 25 May 2026 03:40:23 +0000</pubDate>
      <link>https://dev.to/jill_builds_apps/i-added-mcp-support-to-my-saas-in-an-afternoon-heres-the-whole-thing-1eo8</link>
      <guid>https://dev.to/jill_builds_apps/i-added-mcp-support-to-my-saas-in-an-afternoon-heres-the-whole-thing-1eo8</guid>
      <description>&lt;p&gt;I built Imagcon because I kept needing it. PWA icon generator — describe what you want, get all 19 sizes back plus splash screens and a manifest.json. every app I ship needs a fresh icon set and I got tired of doing it manually.&lt;br&gt;
a few weeks ago I'm in the terminal with Claude Code working on something, I need icons, and I'm about to open a browser tab to do it. which means: describe the icon, wait for it to render, download the ZIP, drag the files into the project. while I'm already in a session where I could just say what I want.&lt;br&gt;
so I asked Claude: is there a way to make this callable from inside the terminal, without leaving the editor?&lt;br&gt;
MCP came back as the answer. I said let's build it. we went back and forth for an afternoon, hit one URL gotcha that cost me a solid hour, and by the end it was packaged and installable with one command. this is that whole afternoon.&lt;/p&gt;

&lt;p&gt;what MCP is&lt;br&gt;
Claude explained it to me as: you expose a set of functions, give them names and descriptions, and the AI can call them the same way it calls any built-in tool. the user never has to leave their editor.&lt;br&gt;
before: "generate icons for my app" → switch tabs, describe, wait, download ZIP, drag files in.&lt;br&gt;
after:&lt;br&gt;
generate_pwa_icons("minimal blue compass on dark gradient", "./public/icons")&lt;/p&gt;

&lt;p&gt;Claude Code runs that, extracts the ZIP, the icons land in your project. you keep typing.&lt;br&gt;
(I've also been sitting on something that fits alongside this — a way to tell agents how to actually navigate your app, not just call the API. got deep into that before I even knew MCP existed. different post.)&lt;/p&gt;

&lt;p&gt;the structure&lt;br&gt;
three files. Claude laid this out before writing anything:&lt;br&gt;
imagcon_mcp/&lt;br&gt;
  client.py   # httpx wrapper around the Imagcon REST API&lt;br&gt;
  server.py   # FastMCP tool definitions&lt;br&gt;
  main.py     # entry point, auth, argparse&lt;/p&gt;

&lt;p&gt;here's what's in each one.&lt;/p&gt;

&lt;p&gt;the client&lt;br&gt;
nothing clever — each method maps to one API call:&lt;br&gt;
import io&lt;br&gt;
import zipfile&lt;br&gt;
from pathlib import Path&lt;br&gt;
import httpx&lt;/p&gt;

&lt;p&gt;BASE_URL = "&lt;a href="https://imagcon.app" rel="noopener noreferrer"&gt;https://imagcon.app&lt;/a&gt;"&lt;/p&gt;

&lt;p&gt;class ImagconClient:&lt;br&gt;
    def &lt;strong&gt;init&lt;/strong&gt;(self, api_key: str, timeout: float = 300.0) -&amp;gt; None:&lt;br&gt;
        self._client = httpx.Client(&lt;br&gt;
            base_url=BASE_URL,&lt;br&gt;
            headers={"Authorization": f"Bearer {api_key}"},&lt;br&gt;
            timeout=timeout,&lt;br&gt;
        )&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def generate_image(self, description: str) -&amp;gt; dict:
    r = self._client.post(
        "/routes/generate-image",
        json={"description": description, "aspect_ratio": "1:1", "number_of_images": 1},
    )
    r.raise_for_status()
    return r.json()

def generate_pwa_icons(self, image_key: str) -&amp;gt; dict:
    r = self._client.post("/routes/generate-pwa-icons", json={"image_key": image_key})
    r.raise_for_status()
    return r.json()

@staticmethod
def extract_zip_to_dir(zip_bytes: bytes, output_dir: Path) -&amp;gt; None:
    output_dir.mkdir(parents=True, exist_ok=True)
    with zipfile.ZipFile(io.BytesIO(zip_bytes)) as zf:
        zf.extractall(output_dir)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;the 300-second timeout — I found out why that matters the first time a request died mid-generation. image generation takes real compute time and the default httpx timeout cuts it off before it finishes. Claude bumped it after that happened.&lt;br&gt;
the auth error handling was Claude thinking ahead:&lt;br&gt;
def _request_error_message(self, response: httpx.Response) -&amp;gt; str:&lt;br&gt;
    if response.status_code in (401, 403):&lt;br&gt;
        return (&lt;br&gt;
            f"Imagcon API returned {response.status_code}. "&lt;br&gt;
            f"Check your API key at &lt;a href="https://imagcon.app/api-keys" rel="noopener noreferrer"&gt;https://imagcon.app/api-keys&lt;/a&gt;"&lt;br&gt;
        )&lt;br&gt;
    return f"Imagcon API error {response.status_code}: {response.text[:500]}"&lt;/p&gt;

&lt;p&gt;without something like this, a bad API key just returns a 401 with no useful message and you spend twenty minutes convinced it's a network problem.&lt;/p&gt;

&lt;p&gt;the server&lt;br&gt;
FastMCP makes this almost too simple. you decorate a function and it becomes a callable tool:&lt;br&gt;
from mcp.server.fastmcp import FastMCP&lt;br&gt;
from imagcon_mcp.client import ImagconClient&lt;/p&gt;

&lt;p&gt;mcp = FastMCP("imagcon")&lt;br&gt;
_client: ImagconClient | None = None&lt;/p&gt;

&lt;p&gt;def set_client(client: ImagconClient) -&amp;gt; None:&lt;br&gt;
    global _client&lt;br&gt;
    _client = client&lt;/p&gt;

&lt;p&gt;def _require_client() -&amp;gt; ImagconClient:&lt;br&gt;
    if _client is None:&lt;br&gt;
        raise RuntimeError("Imagcon client is not configured.")&lt;br&gt;
    return _client&lt;/p&gt;

&lt;p&gt;I asked why the client was a global instead of passed around. Claude explained: the MCP server runs as a long-lived process, not a request handler — you wire up auth once at boot and reuse it across every tool call. hadn't thought about that. makes sense once you see it.&lt;br&gt;
the main tool — the one that does the full pipeline:&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/mcp"&gt;@mcp&lt;/a&gt;.tool()&lt;br&gt;
def generate_pwa_icons(description: str, output_dir: str = "./public/icons") -&amp;gt; str:&lt;br&gt;
    client = _require_client()&lt;br&gt;
    out = Path(output_dir)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Step 1: generate the base image
gen = client.generate_image(description)
image_key = gen["image_key"]

# Step 2: resize to all 19 PWA sizes
pwa = client.generate_pwa_icons(image_key)
raw_icons = pwa["icons"]

# Step 3: save to gallery so it can be re-downloaded
save = client.save_pwa_icon_set(
    set_name=description[:99],
    original_image_key=image_key,
    icons=[{"size": ic["size"], "image_key": ic["image_key"]} for ic in raw_icons],
    prompt=description,
)

# Step 4: download the ZIP and extract
zip_bytes = client.download_pwa_icon_set_zip(save["set_id"])
ImagconClient.extract_zip_to_dir(zip_bytes, out)

return f"Generated {len(raw_icons)} icons in {out.resolve()}. manifest.json included."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;four API calls under the hood, but from the AI's perspective it's one tool with two parameters. it doesn't need to know about image keys or set IDs — those are just plumbing. the user says what they want, the tool handles everything.&lt;br&gt;
the smaller tools follow the same pattern:&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/mcp"&gt;@mcp&lt;/a&gt;.tool()&lt;br&gt;
def get_credit_balance() -&amp;gt; str:&lt;br&gt;
    data = _require_client().get_credit_balance()&lt;br&gt;
    return f"You have {data['remaining_credits']} credits remaining."&lt;/p&gt;

&lt;p&gt;&lt;a class="mentioned-user" href="https://dev.to/mcp"&gt;@mcp&lt;/a&gt;.tool()&lt;br&gt;
def list_saved_icon_sets() -&amp;gt; str:&lt;br&gt;
    data = _require_client().list_pwa_icon_sets()&lt;br&gt;
    sets = data.get("icon_sets", [])&lt;br&gt;
    if not sets:&lt;br&gt;
        return "No saved icon sets found."&lt;br&gt;
    return "\n".join(&lt;br&gt;
        f"{s['id']}: {s['set_name']} (created {s['created_at'][:10]})"&lt;br&gt;
        for s in sets&lt;br&gt;
    )&lt;/p&gt;

&lt;p&gt;return strings, not JSON. the AI reads the return value and decides what to say to the user — plain text relays directly. JSON makes the AI summarize the JSON, which adds noise.&lt;/p&gt;

&lt;p&gt;the entry point&lt;br&gt;
I didn't know how auth was typically handled for something like this. Claude set up two patterns — environment variable and CLI flag:&lt;br&gt;
import argparse, os, sys&lt;br&gt;
from imagcon_mcp.client import ImagconClient&lt;br&gt;
from imagcon_mcp.server import mcp, set_client&lt;/p&gt;

&lt;p&gt;def &lt;em&gt;resolve_api_key(cli_key: str | None) -&amp;gt; str:&lt;br&gt;
    key = (cli_key or os.environ.get("IMAGCON_API_KEY") or "").strip()&lt;br&gt;
    if not key:&lt;br&gt;
        print(&lt;br&gt;
            "Missing Imagcon API key. Set IMAGCON_API_KEY or pass --api-key.\n"&lt;br&gt;
            "Create a key at &lt;a href="https://imagcon.app/api-keys" rel="noopener noreferrer"&gt;https://imagcon.app/api-keys&lt;/a&gt;",&lt;br&gt;
            file=sys.stderr,&lt;br&gt;
        )&lt;br&gt;
        raise SystemExit(2)&lt;br&gt;
    if not key.startswith("ic_live&lt;/em&gt;"):&lt;br&gt;
        print("Invalid API key format. Keys start with ic_live_.", file=sys.stderr)&lt;br&gt;
        raise SystemExit(2)&lt;br&gt;
    return key&lt;/p&gt;

&lt;p&gt;def main() -&amp;gt; None:&lt;br&gt;
    parser = argparse.ArgumentParser(prog="imagcon-mcp")&lt;br&gt;
    parser.add_argument("--api-key", default=None)&lt;br&gt;
    args, remaining = parser.parse_known_args()&lt;br&gt;
    sys.argv = [sys.argv[0], *remaining]  # pass remaining args to FastMCP&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;api_key = _resolve_api_key(args.api_key)
client = ImagconClient(api_key)
set_client(client)
try:
    mcp.run()
finally:
    client.close()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;the parse_known_args trick — I wouldn't have known to do that. it lets you add your own flags without conflicting with whatever FastMCP wants to pass through. the finally: client.close() cleans up the connection pool on shutdown; skip it and you'll see warnings.&lt;/p&gt;

&lt;p&gt;packaging&lt;br&gt;
[project]&lt;br&gt;
name = "imagcon-mcp"&lt;br&gt;
version = "0.1.3"&lt;br&gt;
requires-python = "&amp;gt;=3.11"&lt;br&gt;
dependencies = [&lt;br&gt;
    "mcp&amp;gt;=1.0.0",&lt;br&gt;
    "httpx&amp;gt;=0.27.0",&lt;br&gt;
]&lt;/p&gt;

&lt;p&gt;[project.scripts]&lt;br&gt;
imagcon-mcp = "imagcon_mcp.&lt;strong&gt;main&lt;/strong&gt;:main"&lt;/p&gt;

&lt;p&gt;[build-system]&lt;br&gt;
requires = ["hatchling"]&lt;br&gt;
build-backend = "hatchling.build"&lt;/p&gt;

&lt;p&gt;the [project.scripts] entry is what makes uvx imagcon-mcp work. uvx creates an isolated environment, installs the package, runs the script. no pip install step, no virtualenv the user has to manage.&lt;/p&gt;

&lt;p&gt;the gotcha that cost me an hour&lt;br&gt;
my backend routes are auto-discovered from Python modules and mounted at a prefix. so image_generator/generate_image should be at /routes/image_generator/generate_image.&lt;br&gt;
in production it's not. the actual paths are flat: /routes/generate-image. the prefixes only exist in the router config, not in the deployed URLs.&lt;br&gt;
I spent an hour calling paths that 404'd because I assumed the URL structure matched the file structure. Claude was working from the same wrong assumption I'd given it — so it didn't catch it either. we were both confidently wrong.&lt;br&gt;
open your browser's network tab before you write a single line of client code. look at the actual request URLs your app makes. don't trust your mental model, and don't assume the AI's is any better than yours.&lt;/p&gt;

&lt;p&gt;what I'd do differently&lt;br&gt;
first version had four separate tools — one per API step. generate_image, generate_pwa_icons, save_set, download_set. the AI used them correctly but every conversation filled up with intermediate steps the user didn't care about. nobody needs to see the image key. collapsing everything into one generate_pwa_icons call made it dramatically cleaner. if nobody would ever want to stop in the middle of your pipeline, it should be one tool.&lt;br&gt;
the docstrings matter more than I expected. I left them vague at first and the AI kept asking clarifying questions that weren't necessary. the function docstring is how the AI decides whether to use a tool and when — vague means it guesses.&lt;br&gt;
the JSON return thing I found out by watching the AI respond. it would get a JSON blob back and then narrate the JSON to the user. switching to plain text fixed it immediately.&lt;/p&gt;

&lt;p&gt;if you vibe code your apps you probably already have some service you built that you're constantly switching tabs to use. this pattern works for any of them.&lt;br&gt;
full source is in the Imagcon repo. keys at imagcon.app/api-keys — I use it on every app I ship.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>webdev</category>
      <category>python</category>
    </item>
    <item>
      <title>my apps were invisible to AI agents — here's what I am doing about it</title>
      <dc:creator>Jill Mercer</dc:creator>
      <pubDate>Mon, 18 May 2026 01:22:32 +0000</pubDate>
      <link>https://dev.to/jill_builds_apps/my-apps-were-invisible-to-ai-agents-heres-what-i-am-doing-about-it-5h4d</link>
      <guid>https://dev.to/jill_builds_apps/my-apps-were-invisible-to-ai-agents-heres-what-i-am-doing-about-it-5h4d</guid>
      <description>&lt;p&gt;your app has a readme for humans. it has nothing for ai agents.&lt;/p&gt;

&lt;p&gt;this isn't a future problem. ai agents are already how people discover and use tools. when someone asks claude or chatgpt to "find an invoicing app" or "help me send a quote," the ai either knows what your app can do or it doesn't. if it doesn't, you're invisible — not because your app is bad, but because you never told the agent how to read it.&lt;br&gt;
when an ai assistant tries to use your app — recommend it, navigate it, automate a task inside it — it guesses. it looks at your landing page, reads whatever text it can find, and tries to figure out what your app does and how to use it. sometimes it gets close. often it hallucinates the wrong tool, clicks the wrong thing, or just fails silently and moves on.&lt;/p&gt;

&lt;p&gt;so i built blueprint protocol. a blueprint.txt file at the root of your app that tells agents exactly what it can do, which tools to call, what's human-only, and how to complete each flow step by step. no mcp required. it works for any agent trying to navigate any web app.&lt;/p&gt;

&lt;p&gt;then i ran a benchmark and found out it also cuts mcp discovery overhead by 78%.&lt;/p&gt;

&lt;p&gt;what it does for mcp specifically&lt;br&gt;
mcp has two calls. tools/list returns every tool the server exposes. tools/call calls a specific tool by name.&lt;/p&gt;

&lt;p&gt;without a blueprint, an agent calls tools/list first, reads through all N tool definitions, picks one, then calls it.&lt;/p&gt;

&lt;p&gt;with a blueprint, the agent already knows the tool name and exact parameters. it calls tools/call directly. tools/list never happens.&lt;/p&gt;

&lt;p&gt;that's not just cheaper discovery. it's the removal of an entire round trip.&lt;/p&gt;

&lt;p&gt;the benchmark&lt;br&gt;
i ran a controlled test across four models — claude, gpt-4o, gemini, and grok — five candidate mcp servers, one correct match. agents were told to find the best server efficiently. no blueprint references in the harness instructions. discovery was organic.&lt;/p&gt;

&lt;p&gt;model   without blueprint   with blueprint  reduction&lt;br&gt;
claude  58 pts  13 pts  ~78%&lt;br&gt;
gpt-4o  58 pts  28 pts  ~54%&lt;br&gt;
gemini  23 pts  9 pts   ~61%&lt;br&gt;
grok    58 pts  58 pts  0%&lt;br&gt;
overhead scored by weighted resource inspection cost — llms.txt at 10pts, blueprint.txt at 1pt, reflecting typical real-world document sizes.&lt;/p&gt;

&lt;p&gt;grok's 0% is an honest result. not all models follow discovery signals today. that's expected — robots.txt and llms.txt didn't work everywhere on day one either.&lt;/p&gt;

&lt;p&gt;v3.0.0 — agent-first structure&lt;br&gt;
the spec just hit v3.0.0. two changes that matter for mcp:&lt;/p&gt;

&lt;p&gt;[MCP] flag on line one — agents confirm server availability instantly&lt;br&gt;
format b capabilities index — root file is ~150 tokens, agents fetch only the one capability file they need (~350 tokens). total: ~500 tokens vs thousands from tools/list&lt;br&gt;
try it&lt;br&gt;
spec: &lt;a href="https://github.com/Explorer-64/blueprint-protocol" rel="noopener noreferrer"&gt;https://github.com/Explorer-64/blueprint-protocol&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;live reference implementation: &lt;a href="https://imagcon.app/blueprint.txt" rel="noopener noreferrer"&gt;https://imagcon.app/blueprint.txt&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;benchmark results: &lt;a href="https://stackapps.app/mcp-blueprint-results" rel="noopener noreferrer"&gt;https://stackapps.app/mcp-blueprint-results&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;open standard. mit licensed. no tooling required. works with or without mcp. if you have a web app or an mcp server, a blueprint takes about 10 minutes.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>webdev</category>
      <category>indiedev</category>
    </item>
    <item>
      <title>I shipped 30 apps. AI crawlers ignore them.</title>
      <dc:creator>Jill Mercer</dc:creator>
      <pubDate>Sun, 10 May 2026 16:43:48 +0000</pubDate>
      <link>https://dev.to/jill_builds_apps/i-shipped-30-apps-ai-crawlers-ignore-them-506c</link>
      <guid>https://dev.to/jill_builds_apps/i-shipped-30-apps-ai-crawlers-ignore-them-506c</guid>
      <description>&lt;p&gt;I have shipped over 30 apps. Most of them are absolute ghosts right now.&lt;/p&gt;

&lt;p&gt;If you ask an AI tool to find something that does exactly what my projects do, they won't show up. It is not because the apps are bad. It is because I built them before AI crawlers mattered.&lt;/p&gt;

&lt;p&gt;I learned the hard way that the ground moves fast in this industry. I am self-taught — learned by shipping, not by studying. A while back, I started vibe coding with Bolt. Then I found Databutton. I loved it — the community was real, and it is where I actually learned how to vibe code. Then they pivoted to B2B overnight. They shut down the Discord. Pricing shot up. The little guy got pushed out.&lt;/p&gt;

&lt;p&gt;I was weeks away from monetizing. Instead, I had to pack up and leave. I jumped to Replit, tried Firebase Studio, messed with Google AI Studio, and finally landed on Cursor. Moving those apps one by one took forever. Six months just evaporated. That whole mess taught me a hard lesson: own your stack. Own your presentation layer. Never let a platform sit between you and your users.&lt;/p&gt;

&lt;p&gt;So now I do. I build everything in Cursor. I own the code.&lt;/p&gt;

&lt;p&gt;But owning the stack does not solve the discovery problem. People are searching differently now. They ask Perplexity, ChatGPT, or Claude for tool recommendations instead of scrolling Google. And those AI bots do not read websites the way humans do.&lt;/p&gt;

&lt;p&gt;Here is what I have learned from watching my older apps fail to rank in AI search:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Client-side rendering is a wall.&lt;/strong&gt;&lt;br&gt;
Most of my old projects are pure client-side React. To a human, they load fast and look great. To an AI crawler that does not execute JavaScript, they look like a blank page with a &lt;code&gt;&amp;lt;div id="root"&amp;gt;&lt;/code&gt;. If the bot cannot read the text in the initial HTML, it just leaves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Words matter more than pictures.&lt;/strong&gt;&lt;br&gt;
I used to rely on slick screenshots and minimal copy for landing pages. AI vision models might be smart, but standard web crawlers still run on plain text. I have started rewriting my landing pages to clearly explain the problem and the solution in plain English.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Semantic HTML is back.&lt;/strong&gt;&lt;br&gt;
Div soup is out. Using actual &lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;nav&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;main&amp;gt;&lt;/code&gt;, and &lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt; tags helps the AI understand the hierarchy of the page. It needs to know what is navigation and what is the actual product description.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Structured data helps.&lt;/strong&gt;&lt;br&gt;
I used to ignore JSON-LD and schema markup. It felt like boring SEO work. Now, I put it everywhere. It feeds the bots exact data about what the app is, who made it, and what it costs.&lt;/p&gt;

&lt;p&gt;I am still figuring this out. I am currently working through the discovery problem one app at a time to make my work visible to LLMs. It is frustrating to realize the rules changed while I was busy migrating code — but that is the job.&lt;/p&gt;

&lt;p&gt;We spent a decade optimizing for Google search. Now we have to figure out how to talk to the bots.&lt;/p&gt;

&lt;p&gt;How are you handling this shift? Are you doing anything specific to get your projects seen by AI search tools?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>devjournal</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
