Skip to content

[feat] provide the link to the docs and the repo from the pub.dev search tool #154

Closed
@csells

Description

@csells

I wanted Cursor to look up a package and show me some sample code, but it the pub.dev search tool didn't provide the link to the docs, the README or the github repo. Can you add that?

Here's the chat transcript:

Chat Transcript

User

can you search pub.dev for all of the mcp-related packages and compare and contrast them for me?


Cursor

I am Claude Sonnet 4, currently powered by Anthropic's AI technology.

I'll search pub.dev for MCP-related packages and compare them for you.

Let me also search for "model context protocol" to see if there are any additional packages:

Based on the search results, here's a comprehensive comparison of the MCP-related packages available on pub.dev:

Core MCP Implementation Packages

1. mcp_dart (Most Popular) ⭐

  • Version: 0.5.1
  • Downloads: 1,873 (highest)
  • Likes: 32 (highest)
  • Publisher: leehack.com
  • License: MIT
  • Description: Full Dart SDK implementation of Model Context Protocol
  • Best for: General MCP development in Dart

2. dart_mcp (Official Dart Team)

  • Version: 0.2.1
  • Downloads: 674
  • Likes: 33
  • Publisher: labs.dart.dev (Official Dart team)
  • License: BSD-3-Clause
  • Description: Package for making MCP servers and clients
  • Best for: Official support and stability

3. straw_mcp

  • Version: 0.5.0
  • Downloads: 35
  • Likes: 2
  • License: Apache-2.0
  • Description: Dart MCP implementation for LLM service integration
  • Best for: Alternative implementation approach

Specialized Client/Server Packages

4. mcp_server

  • Version: 0.2.0
  • Downloads: 221
  • Likes: 4
  • License: MIT
  • Description: Focused on building MCP servers
  • Best for: Server-side MCP implementations

5. mcp_client

  • Version: 0.1.8
  • Downloads: 214
  • Likes: 4
  • License: MIT
  • Description: Focused on building MCP clients
  • Best for: Client-side MCP implementations

6. mcp_bridge

  • Version: 0.1.0
  • Downloads: 31
  • Likes: 2
  • License: MIT
  • Description: MCP bridge implementation
  • Best for: Bridging different MCP systems

Flutter-Specific Packages

7. flutter_mcp_client_lib

  • Version: 1.0.3
  • Downloads: 181
  • Likes: 1
  • License: MIT
  • Description: Flutter MCP integration for AI tools (Windsurf, Cursor, Claude)
  • Best for: Flutter apps integrating with AI tools

8. mcp_toolkit

  • Version: 0.1.2
  • Downloads: 203
  • Likes: 2
  • License: MIT
  • Description: Flutter-specific methods for MCP servers
  • Best for: Adding Flutter capabilities to MCP servers

9. flutter_mcp_server

  • Version: 0.1.4
  • Downloads: 58
  • Likes: 0
  • License: MIT
  • Description: Flutter MCP server implementation
  • Best for: Building MCP servers in Flutter

10. flutter_mcp_common

  • Version: 0.0.3
  • Downloads: 114
  • Likes: 0
  • License: MIT
  • Description: Common utilities for MCP in Flutter
  • Best for: Shared utilities across Flutter MCP projects

Utility & Enhancement Packages

11. mcp_llm

  • Version: 0.2.3
  • Downloads: 119
  • Likes: 2
  • License: MIT
  • Description: LLM integration with MCP, RAG capabilities
  • Best for: AI/LLM integration projects

12. mcp_annotations

  • Version: 0.1.1
  • Downloads: 270
  • Likes: 3
  • Publisher: nelsoncampos.xyz
  • License: Unknown
  • Description: Code generation annotations for MCP
  • Best for: Reducing boilerplate code

13. mcp_sdk

  • Version: 0.1.1
  • Downloads: 52
  • Likes: 3
  • License: MIT
  • Description: Client library and CLI for MCP
  • Best for: Command-line MCP tools

Recommendations

For beginners: Start with mcp_dart (most popular, active development)
For official support: Use dart_mcp (official Dart team package)
For Flutter apps: Use flutter_mcp_client_lib + mcp_toolkit
For server development: mcp_server
For client development: mcp_client
For LLM integration: mcp_llm

The ecosystem is still developing, with mcp_dart being the clear leader in adoption and community support.


User

can you give me some sample code for mcp_llm?


Cursor

I am Claude Sonnet 4, currently powered by Anthropic's AI technology.

Let me search for more detailed information about the mcp_llm package to provide you with accurate sample code.

Based on the search results, I can see that mcp_llm is a package for integrating LLMs with MCP, providing multi-client support, parallel processing, and RAG capabilities. However, I don't have specific API documentation from the search. Let me provide you with sample code based on typical MCP LLM integration patterns:


User

no. use the pub.dev search tool to access the mcp_llm docs and show me some real sample code. don't make anything up.


Cursor

I am Claude Sonnet 4, currently powered by Anthropic's AI technology.

You're absolutely right - I should not make up code. However, the pub.dev search tool I have available only returns basic package metadata (name, version, description, download counts, etc.) and doesn't provide access to the actual documentation, README files, or code examples from the packages.

The search results I can get are limited to:

  • Package name and version
  • Description
  • Download counts and likes
  • License information
  • Publisher info

To get the actual documentation and sample code for mcp_llm, you would need to:

  1. Visit the package directly on pub.dev: https://pub.dev/packages/mcp_llm
  2. Check the package's README tab for documentation and examples
  3. Look at the "Example" tab if available
  4. Visit the package's repository (usually linked on the pub.dev page) for more detailed examples

I apologize for the limitation - the MCP search tool doesn't provide access to the full package documentation that would contain the real sample code you're looking for.


User

does the pub.dev search tool provide the link to the package on pub.dev?


Cursor

I am Claude Sonnet 4, currently powered by Anthropic's AI technology.

No, the pub.dev search tool does not provide direct links to the packages on pub.dev. Looking at the search results I received earlier, the tool only returns:

  • packageName
  • latestVersion
  • description
  • scores (pubPoints, maxPubPoints, likes, downloadCount)
  • topics
  • licenses
  • publisher

There are no URL or link fields in the response. However, you can easily construct the pub.dev URL manually using the package name:

For mcp_llm, the URL would be: https://pub.dev/packages/mcp_llm

The pattern is always: https://pub.dev/packages/{packageName}

So while the search tool gives you the package name and metadata, you'll need to manually navigate to pub.dev to see the full documentation, examples, and repository links.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions