mcp_dart_sdk

This repository provides a Dart SDK for the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources through various transport options. This repository provides a

0
0

MCP Dart SDK

pub package
License: MIT

This Dart SDK provides a full implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources or tools.

Features

The SDK offers:

  • Complete MCP implementation.
  • Transport options: stdio, HTTP+SSE, and WebSocket.
  • Core capability support: resources, tools, prompts, and logging.
  • Type-safe Dart API.
  • Comprehensive documentation and examples.
  • Compatibility with Flutter and standalone Dart applications.

Installation

To install, add mcp_dart_sdk to your pubspec.yaml:

dependencies:
  mcp_dart_sdk: ^0.1.0

Then, run dart pub get or flutter pub get.

Usage

The SDK provides examples for different transport methods, including stdio, WebSocket, and HTTP+SSE. These examples demonstrate how to connect to an MCP server, initialize a session, utilize available tools, and perform a clean shutdown.

Documentation

Refer to the API reference and examples for detailed information.

Contributing

Contributions are welcome through Pull Requests.

License

Licensed under the MIT License; see the LICENSE file.

Repository

AY
Ayobami-00

Ayobami-00/mcp_dart_sdk

Created

March 19, 2025

Updated

March 19, 2025

Language

Dart

Category

Developer Tools