mcp_probe 0.5.0 copy "mcp_probe: ^0.5.0" to clipboard
mcp_probe: ^0.5.0 copied to clipboard

Conformance checks and a test harness for Model Context Protocol (MCP) servers. Runs any MCP server over stdio and asserts on its behavior from package:test. Built on dart_mcp.

example/mcp_probe_example.dart

import 'dart:io';

import 'package:mcp_probe/mcp_probe.dart';

/// Runs the conformance checks against an MCP server command and prints the
/// report as Markdown.
///
/// Usage:
///
///     dart run example/mcp_probe_example.dart <command> [args...]
Future<void> main(List<String> args) async {
  if (args.isEmpty) {
    stderr.writeln(
      'Usage: dart run example/mcp_probe_example.dart <command> [args...]',
    );
    exitCode = 64;
    return;
  }
  final report = await checkServer(args.first, args: args.sublist(1));
  stdout.write(report.toMarkdown());
  if (report.hasErrors) exitCode = 1;
}
0
likes
160
points
197
downloads
screenshot

Documentation

API reference

Publisher

verified publisherdeveloperyusuf.com

Weekly Downloads

Conformance checks and a test harness for Model Context Protocol (MCP) servers. Runs any MCP server over stdio and asserts on its behavior from package:test. Built on dart_mcp.

Repository (GitHub)
View/report issues

Topics

#mcp #testing #ai #server #conformance

License

MIT (license)

Dependencies

dart_mcp, json_rpc_2, test

More

Packages that depend on mcp_probe