digitalocean-mcp-chatbot-sdk
v1.0.25
Published
React SDK for Digitalocean MCP Chatbot integration
Maintainers
Readme
Digitalocean MCP Chatbot SDK
React-based embeddable chatbot widget for Digitalocean MCP chatbot.
Installation
npm install digitalocean-mcp-chatbot-sdkUsage
import MCPChatbot from 'digitalocean-mcp-chatbot-sdk';
Props
| Prop | Type | Description |
|---------------------|---------|------------------------------------------|
| apiUrl | string | URL to your /chat POST API endpoint |
| position | string | One of "bottom-right", "bottom-left", "top-right", "top-left" |
| title | string | Title in chat window |
| placeholder | string | Input box placeholder |
| toggleButtonLabel | string | Label for toggle button |
## 🚀 Build and Publish
1. **Install dependencies**:
```bash
npm install- Build the package:
npm run build- Login to npm (if not already):
npm login- Publish to npm:
npm publish --access public✅ After Publishing
People can use your package like:
npm install digitalocean-mcp-chatbot-sdkAnd in their apps:
import MCPChatbot from 'digitalocean-mcp-chatbot-sdk';
function MyApp() {
return ;
}🧠 Bonus: Add Build Badge to README
[](https://badge.fury.io/js/digitalocean-mcp-chatbot-sdk)