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
npm install @divinci-ai/mcpBasic Usage
import { McpClient } from "@divinci-ai/mcp";
const client = new McpClient({ serverUrl: "https://mcp.divinci.app", apiKey: "divinci_key_...",});
await client.connect();
// List available toolsconst tools = await client.listTools();console.log(tools);Configuration Options
| Option | Type | Required | Description |
|---|---|---|---|
serverUrl | string | Yes | MCP server URL |
apiKey | string | Yes | Your API key |
timeout | number | No | Connection timeout |
MCP Protocol
The Model Context Protocol (MCP) allows AI assistants to access external tools and resources. Learn more at modelcontextprotocol.io.