Skip to content

MCP Tools Guide Tools

Learn how to use MCP tools for extended AI capabilities.

What is MCP?

MCP (Model Context Protocol) is an open standard that enables AI to use external tools and data sources.

Built-in Tools

ChatAI Plugin includes built-in tools in 22 categories. See Built-in Tools for the full list.

CategoryDescriptionCategoryDescription
basicTime, random numberssearchWeb search, Wiki, translation
userUser info, friendsutilsCalculation, encoding
groupGroup info, membersvoiceTTS, voice recognition
messageSend/get messagesbotBot info, status
adminMute, kick, adminextraWeather, quotes, dice
mediaImages, QR codesscheduleScheduled tasks
webFetch web pagesbltoolsQQ Music, Bilibili, GitHub
memoryUser memory CRUDimageGenAI image generation
fileFile upload/downloadqzoneQQ Zone moments

Using Tools

AI automatically uses tools when needed:

txt
User: What time is it?
AI: [calls get_current_time] It's 2:30 PM.

User: Search for weather in Tokyo
AI: [calls web_search] Here's the weather forecast...

Viewing Tool Calls

See what tools AI used:

txt
#工具日志

Enable debug mode for detailed logs:

txt
#ai调试开启

Tool Permissions

Tools have different permission levels:

LevelWho Can UseExamples
🟢 SafeEveryoneTime, search
🟡 MediumMembersSend messages
🟠 HigherAdminsGroup management
🔴 DangerousMasters onlyShell commands

Managing Tools

Via Web Panel

  1. Go to Tools tab
  2. Enable/disable categories
  3. Configure permissions

Via Config

yaml
builtinTools:
  enabledCategories:
    - basic
    - user
    - search
  disabledCategories:
    - shell
    - admin

External MCP Servers

Add more tools via external MCP servers:

json
// data/mcp-servers.json
{
  "servers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-filesystem"]
    }
  }
}

Popular servers:

  • @anthropic/mcp-server-filesystem - File operations
  • @anthropic/mcp-server-fetch - Web fetching
  • @anthropic/mcp-server-github - GitHub API

Custom Tools

Create your own tools in data/tools/:

javascript
// data/tools/my_tool.js
export const tools = [{
  name: 'my_tool',
  description: 'My custom tool',
  handler: async (args) => {
    return { result: 'Done!' }
  }
}]

MCP Status

Check MCP server status:

txt
#mcp状态

Next Steps

Released under the MIT License