flutter_mcp_app 0.1.0 copy "flutter_mcp_app: ^0.1.0" to clipboard
flutter_mcp_app: ^0.1.0 copied to clipboard

Run a Flutter web app as an MCP App inside AI chats such as Claude, including hosts that sandbox it with an opaque origin.

example/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_mcp_app/flutter_mcp_app.dart';

void main() {
  McpApp.ensureInitialized();
  runApp(GreetingApp(name: McpApp.launch.string('name') ?? 'there'));
  McpApp.reportHeight(GreetingApp.height);
}

class GreetingApp extends StatelessWidget {
  const GreetingApp({super.key, required this.name});

  static const height = 200.0;

  final String name;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: FilledButton(
            onPressed: () => McpApp.openLink('https://flutter.dev'),
            child: Text('Hello, $name'),
          ),
        ),
      ),
    );
  }
}
1
likes
160
points
161
downloads

Documentation

API reference

Publisher

verified publisherdeciduousworks.com

Weekly Downloads

Run a Flutter web app as an MCP App inside AI chats such as Claude, including hosts that sandbox it with an opaque origin.

Repository (GitHub)
View/report issues

Topics

#mcp #ai #web

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, url_launcher_platform_interface, web

More

Packages that depend on flutter_mcp_app