agentleFS
nuwansamaranayakenuwansamaranayake/AiGNITEClaudeAssets/mcp-to-mobile/SKILL.md

mcp-to-mobile

Skill0 starsChanged 7 months agoMITView on GitHub

Flagship AiGNITE pipeline. Takes any AiGNITE MCP server URL, lists its tools, and scaffolds a complete React Native mobile app with one screen per public tool, Supabase auth, push notifications, and Stripe subscription billing. Converts B2B MCP infrastructure into a B2C consumer product without rebuilding the backend. Use this skill whenever the user mentions turning an MCP into a mobile app, wrapping an MCP as a consumer app, building a mobile front end for an MCP, MCP to mobile, or making a consumer app from an MCP server, even if they do not name the skill by name.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Call the MCP server's tools/list endpoint.

    line 36
  2. Distinctive:

    Ask the user to pick which tools become user-facing screens.

    line 43
  3. Distinctive:

    Default to all read-only tools.

    line 44
  4. Very specific:

    Call mobile-app-scaffold with the app name, bundle ID, and MCP URL.

    line 49
  5. Distinctive:

    Use the AiGNITE Stripe product templates from references/stripe-tiers.md.

    line 82
  6. Distinctive:

    Add a paywall component at the third query if the user is on free.

    line 83
  7. Very specific:

    Call supabase-bootstrap with the schema:

    line 87
  8. Very specific:

    Call security-audit. Refuse to continue if any Critical or High remains.

    line 96
  9. Very specific:

    Call three-tier-test. Refuse to continue if any tier fails.

    line 100
  10. Distinctive:

    Never expose an MCP server's admin or write tools.

    line 108
  11. Distinctive:

    Never expose the MCP server URL with admin credentials.

    line 109
  12. Distinctive:

    Never write the service-role Supabase key into the mobile bundle.

    line 110

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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-to-mobile

Purpose

Convert an existing AiGNITE MCP server into a paid consumer mobile app in one orchestrated pipeline. Compose the other seven skills in the suite into a single command.

When to trigger

Trigger on these user phrases. Match loosely.

  • "turn this MCP into an app"
  • "wrap my MCP server as a mobile app"
  • "build a consumer app for [MCP name]"
  • "mobile front end for [MCP product]"
  • "consumer app from MCP"
  • "MCP to mobile"

Inputs to collect

  1. MCP server URL, or one of the AiGNITE shortcuts: beacon-gom, regscope, recallwatch, floodpulse, airshield, cosmic-nexus.
  2. Target app name (defaults to a derived form).
  3. Target bundle ID (defaults to com.aignite.<slug>).
  4. Whether to include subscription billing (default yes).
  5. Whether to include push notifications (default yes for alert-style MCPs, off for request-response).

Behavior

Step 1: list tools

  • Resolve the shortcut to a URL using references/aignite-mcp-catalog.md.
  • Call the MCP server's tools/list endpoint.
  • Print the full tool list.
  • Apply the public-safe whitelist for the chosen MCP server. The whitelist lives in the catalog.

Step 2: select screens

  • Show the user the filtered tool list.
  • Ask the user to pick which tools become user-facing screens.
  • Default to all read-only tools.
  • Refuse to expose any tool not on the public-safe whitelist.

Step 3: scaffold the project

Call mobile-app-scaffold with the app name, bundle ID, and MCP URL. The scaffold writes the project tree.

Step 4: generate screens

For each selected tool, generate one screen at app/(tabs)/<tool-name>.tsx. The screen:

  • Imports the typed MCP client.
  • Renders an input form derived from the tool's inputSchema.
  • Calls the tool when the user submits.
  • Renders the result in a card layout matching the project theme.
  • Handles loading, error, and empty states.

See assets/templates/screen-from-tool.tsx.template.

Step 5: wire push notifications

For alert-style MCPs (FloodPulse, AirShield, RegScope, RecallWatch, Beacon GoM):

  • Register the device with Expo Push.
  • Subscribe to a topic per the user's choice.
  • Display the topic state in Settings.

For request-response MCPs (Cosmic Nexus):

  • Register the device with Expo Push.
  • Send a notification when the user's report is ready, with a deep link to the report screen.

See references/push-notification-patterns.md.

Step 6: wire Stripe subscriptions

  • Free tier: first three queries per day. Hard cap.
  • Paid tier: unlimited queries.
  • Use the AiGNITE Stripe product templates from references/stripe-tiers.md.
  • Add a paywall component at the third query if the user is on free.

Step 7: stand up the database

Call supabase-bootstrap with the schema:

  • profiles (user account state)
  • query_log (rate-limit tracking)
  • subscriptions (Stripe sync)
  • device_tokens (push registration)

Step 8: run the security audit

Call security-audit. Refuse to continue if any Critical or High remains.

Step 9: run the three-tier test

Call three-tier-test. Refuse to continue if any tier fails.

Step 10: offer submission

Print a summary and ask if the user wants to run app-store-submission now or later.

Hard constraints

  • Never expose an MCP server's admin or write tools. The skill maintains a public-safe whitelist per AiGNITE MCP and rejects any tool outside the list.
  • Never expose the MCP server URL with admin credentials. The mobile client uses the public URL only.
  • Never write the service-role Supabase key into the mobile bundle.
  • Refuse to ship a consumer app whose query log is not rate-limited.

Composes with

Calls every other skill in the suite. This is the orchestrator.

References

  • references/aignite-mcp-catalog.md - every AiGNITE MCP, its URL, tools, and public-safe subset.
  • references/mcp-client-patterns.md - calling MCP tools from React Native.
  • references/stripe-tiers.md - AiGNITE subscription tiers.
  • references/push-notification-patterns.md - alert vs ready-notification flows.

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.