Skip to content

MCP SDK Overview

MCP SDK

The @divinci-ai/mcp package provides an MCP protocol client for integrating with AI assistants.

Features

  • MCP protocol implementation
  • Tool discovery and execution
  • Resource access
  • Compatible with Claude Desktop, Cursor, and more

Installation

Terminal window
npm install @divinci-ai/mcp

Basic Usage

import { McpClient } from "@divinci-ai/mcp";
const client = new McpClient({
serverUrl: "https://mcp.divinci.app",
apiKey: "divinci_key_...",
});
await client.connect();
// List available tools
const tools = await client.listTools();
console.log(tools);

Configuration Options

OptionTypeRequiredDescription
serverUrlstringYesMCP server URL
apiKeystringYesYour API key
timeoutnumberNoConnection timeout

MCP Protocol

The Model Context Protocol (MCP) allows AI assistants to access external tools and resources. Learn more at modelcontextprotocol.io.

Next Steps