dart_pubdev_mcp 0.6.4 copy "dart_pubdev_mcp: ^0.6.4" to clipboard
dart_pubdev_mcp: ^0.6.4 copied to clipboard

Model Context Protocol (MCP) server for pub.dev. Gives AI agents structured access to search, compare, evaluate, and inspect Dart and Flutter packages.

Changelog #

All notable changes to dart_pubdev_mcp are documented here. Format follows Keep a Changelog.

0.6.4 #

Added #

  • get_security_advisories(package, version?) tool — evaluates a package's security advisories (pub.dev's OSV-format advisories endpoint) against the Resolved Version, separating advisories that affect the Resolved Version from those that don't. Each entry carries id, aliases (CVEs), summary, affected ranges, and a URL. Responses are cached with a TTL.

Changed #

  • get_package gains a best-effort advisories summary (count, ids, whether the Resolved Version is affected); a failed advisories fetch never fails the parent call.
  • compare_packages's Comparison Matrix gains a best-effort advisories row with per-package advisory counts, on the same best-effort terms.
  • Clarified tool descriptions to surface existing capabilities that were previously easy to miss: list_package_source_files and get_source_slice now state that the whole package archive is browsable (example/, test/, bin/ — not just lib/), and search_packages documents pub.dev search qualifiers (publisher:, dependency:, topic:, license:, has:, sdk:) with the Non-Relevance Sort caveat.

0.6.3 #

Changed #

  • The Update Notice (dartPubdevMcpUpdate) now includes a message field that directly instructs the model to relay the pending update to the user, alongside the existing current/latest fields — landing in the model's context didn't guarantee the model would mention it unprompted.

0.6.2 #

Added #

  • SDK source reading, per ADR 0006: three new tools spanning both the Dart SDK and the Flutter SDK/framework via an sdk: 'dart' | 'flutter' selector, backed by download-only GitHub tarballs.
    • get_sdk_source_slice — line-range mode and symbol-bounded mode (AST-located class/mixin/enum/function/typedef/variable, or member via ClassName.member).
    • list_sdk_source_files — directory/extension-filtered file listing.
    • get_sdk_throw_statements — scans throw expressions in a class or top-level function, with surrounding control-flow context.

0.6.1 #

Added #

  • --version now prints an Update available: line when a newer version is known, and MCP clients receive a one-time notifications/message log push when a newer version is found (sent regardless of --log-level).

0.6.0 #

Changed #

  • Breaking: unified parameter naming across the tool surface — package name is now always package/packages, multi-word parameters use camelCase, result caps are limit, and the symbol-kind filter is kind. No aliases: old names now fail with INVALID_ARGUMENT.
    • get_package, get_changelog, list_package_versions, list_package_source_files: namepackage
    • compare_packages: namespackages
    • get_changelog: from_versionfromVersion; version_limitlimit
    • browse_api_symbols: typekind

Added #

  • Tool responses now include structuredContent matching each tool's new outputSchema (all tools except search_packages), for clients that want to validate results against a typed contract.

0.5.2 #

Added #

  • Self-update notice: the server checks pub.dev once per startup (rate-limited to ~24h across restarts) and, if a newer version exists, surfaces a dartPubdevMcpUpdate notice on the next tool-call response — at most once per session.
  • --no-update-check flag / dart_pubdev_mcp_UPDATE_CHECK env var to disable it (default: on).

0.5.1 #

Fixed #

  • README.md

0.5.0 #

Changed #

  • Breaking: package renamed from pubdev_context to dart_pubdev_mcp. Version reset to 0.5.0 — not a continuation of the 0.4.0-rc.x PoC line's numbering. Deliberately kept below 1.0.0: the V1 tool surface is still considered pre-stable under semver, so the version number doesn't yet claim API stability.
1
likes
160
points
417
downloads

Documentation

API reference

Publisher

verified publisherphilippgerber.li

Weekly Downloads

Model Context Protocol (MCP) server for pub.dev. Gives AI agents structured access to search, compare, evaluate, and inspect Dart and Flutter packages.

Homepage
Repository (GitHub)
View/report issues

Topics

#mcp #pub-dev #dart #ai #flutter

License

MIT (license)

Dependencies

analyzer, archive, cli_config, dart_mcp, html, http, pub_semver

More

Packages that depend on dart_pubdev_mcp