Crates.io | vkteams-bot-mcp |
lib.rs | vkteams-bot-mcp |
version | 0.4.0 |
created_at | 2025-06-01 21:02:36.397657+00 |
updated_at | 2025-08-19 20:29:17.48797+00 |
description | High-performance VK Teams Bot API toolkit with CLI and MCP server support |
homepage | https://github.com/bug-ops/vkteams-bot |
repository | https://github.com/bug-ops/vkteams-bot |
max_upload_size | |
id | 1697510 |
size | 362,416 |
A Model Context Protocol (MCP) server for VK Teams Bot API. Easily integrate VK Teams bots with LLM agents, automation systems, or any external service via a universal protocol.
export VKTEAMS_BOT_API_TOKEN=your_token_here
export VKTEAMS_BOT_API_URL=https://your-api-url
# Chat ID is now optional - will be requested interactively if needed
export VKTEAMS_BOT_CHAT_ID=your_chat_id # Optional
cargo build --release
./target/release/vkteams-bot-mcp
When you first use any tool that requires a chat ID, the MCP server will automatically request it from your client:
751987654321@chat.agent
)reset_session
tool to clear cached data{
"tool": "send_text",
"params": {
"text": "Hello, world!"
}
}
{
"tool": "upload_file_from_base64",
"params": {
"file_name": "document.txt",
"base64_content": "SGVsbG8gV29ybGQh",
"caption": "Here's the document you requested"
}
}
{
"tool": "upload_text_as_file",
"params": {
"file_name": "script.py",
"content": "print('Hello from Python!')",
"caption": "Python script generated by AI"
}
}
{
"tool": "reset_session",
"params": {}
}
The server communicates via the MCP protocol over standard input/output. You can connect it to LLM agents, automation scripts, or use it as a standalone service.
self_get
— Get bot information and statusfile_info
— Get file information and metadataevents_get
— Get events from the chatdaemon_status
— Get daemon status and statisticssend_text
— Send a text message to the chatsend_file
— Send file to chatsend_voice
— Send voice messageedit_message
— Edit existing messagedelete_message
— Delete message from chatpin_message
— Pin message in chatunpin_message
— Unpin message in chatsend_action
— Send typing/looking indicatorsupload_file_from_base64
— Upload file from base64 encoded contentupload_text_as_file
— Create and upload text content as a fileupload_json_file
— Create and upload structured JSON fileschat_info
— Get chat informationget_chat_members
— Get list of chat membersget_chat_admins
— Get chat administratorsset_chat_title
— Set chat titleset_chat_about
— Set chat descriptionsearch_semantic
— Search messages using semantic similaritysearch_text
— Search messages using text searchget_database_stats
— Get database statisticsget_context
— Get conversation contextget_recent_messages
— Get recent messages from storagereset_session
— Reset session data including cached chat IDThe MCP server now features automatic chat ID elicitation:
751987654321@chat.agent
) in the client interfacereset_session
to clear the cached chat ID and configure a new oneVKTEAMS_BOT_CHAT_ID
environment variableThe server includes smart file handling capabilities:
This server works with any MCP-compatible client:
Add to your claude_desktop_config.json
:
{
"mcpServers": {
"vkteams-bot": {
"command": "path/to/vkteams-bot-mcp",
"env": {
"VKTEAMS_BOT_API_TOKEN": "your_token_here",
"VKTEAMS_BOT_API_URL": "https://your-api-url"
}
}
}
}
Add to your config.json
:
{
"tools": [
{
"title": "VK Teams Bot",
"description": "VK Teams Bot MCP Server",
"params": {
"command": "path/to/vkteams-bot-mcp"
}
}
]
}
# Run server directly
./vkteams-bot-mcp
# Or with environment variables
VKTEAMS_BOT_API_TOKEN=token VKTEAMS_BOT_API_URL=url ./vkteams-bot-mcp