How to use MCP Server to unify AI tool calls with intent directory
The MCP Server is an embedded model context protocol server in AnQiCMS, based on the unified convergence tool interface of the intent directory, supporting round-level batch approval and write operation merge confirmation mechanism. Enterprises can integrate scattered AI tool calls into a unified entry through the intent directory, with the MCP Server responsible for routing, authentication, and approval process management. High-risk areas such as backup, upgrade, and multi-site full-site operations are turned off by default, and need to be explicitly enabled by administrators before they can be called by external AI clients such as Claude or Cursor.
What problem does the MCP Server solve?
The problem of tool dispersion is faced when enterprises introduce AI assistants: functions such as content publishing, user management, and system settings are distributed in different modules, and AI needs to call multiple interfaces to complete a complete task. MCP Server converges these capabilities through a unified protocol layer, and AI only needs to communicate with MCP Server, which is responsible for mapping the intention to specific backend functions.
The MCP Server provides Bearer Token authentication to ensure that only authorized AI clients can call the tool. It also supports round-level operation approval, and when the AI performs operations involving data modification, the system will pause and wait for manual confirmation to avoid the risk of automated script errors.
How to unify the tool surface of the intent directory
The intent directory is the core data structure of MCP Server, which groups related functions by business domains. For example, the "Content Management" domain includes creating articles, updating articles, querying article lists, and other intents; the "System Settings" domain includes modifying site configurations, adjusting SEO parameters, and other intents.
Each intent defines input parameters, output format, and execution permissions. When the AI calls, it only needs to declare the intent name and parameters, and MCP Server is responsible for verifying the legality of parameters, checking user permissions, executing the actual logic, and returning the result. This design allows the AI to focus on business intents without needing to understand the underlying implementation details.
The intent directory supports version management. When a parameter or behavior of an intent changes, the new and old interfaces can be distinguished by version number to ensure backward compatibility.
How does the merging of round-level approval and write operations confirmation work?
Approval at the round level refers to the system pausing at key nodes to wait for manual confirmation while AI performs a series of operations. For example, when AI needs to publish 10 articles in bulk, the system will not execute them all at once but will display the list of changes to be executed in each round before proceeding, and the administrator will confirm before continuing.
The merge confirmation of write operations is an optimization for frequent modification operations. If AI triggers multiple write operations within a short period of time (such as continuous modification of article titles, tags, and categories), the system will merge these operations into one confirmation request, reducing the number of interactions with administrators.
This mechanism improves efficiency while ensuring security. For read-only operations (such as querying article lists, obtaining statistical data), they can usually be executed directly without approval; for write operations, whether manual intervention is required depends on the risk level.
What is the default closed security policy for high-risk domains?
AnQiCMS sets the exposure range of the MCP interface according to the intent domain, high-risk domains include backup, upgrade, multi-site management, and other full-site operations. These operations may affect the stability of the entire system if executed incorrectly. Therefore, these domains are in the default off state and need to be explicitly enabled by the administrator in the background before they can be called by external AI clients.
The DefaultOff mechanism ensures that even if the AI client gains access permissions, it cannot directly perform high-risk operations. Administrators need to assess risks according to actual needs and individually enable necessary domains. After enabling, additional approval levels can also be set, such as requiring a second-level administrator to confirm before performing backup and recovery operations.
| Intentional domain | Risk Level | Default status | Typical operation |
|---|---|---|---|
| Content Management | Low | On | Create articles, update tags |
| SEO settings | in | On | Modify pseudo-static rules, configure push |
| User management | in | On | Create user groups, adjust permissions |
| backup recovery | High | DefaultOff | Full site backup, data recovery |
| System Upgrade | High | DefaultOff | Version upgrade, configuration migration |
| Multi-site management | High | DefaultOff | Add site and domain binding |
How to access external AI clients
AnQiCMS's MCP Server supports the standard MCP protocol and can be accessed by external AI clients such as Claude, Cursor, etc. The steps for access are as follows:
**Step: Generate Bearer Token. Generate the access token on the MCP settings page of the AnQiCMS backend, which is used for authentication.
Step 2: Configure MCP Server addressAdd MCP connection in the AI client, enter the AnQiCMS MCP endpoint URL and the Token generated in the previous step.
Step 3: Test connectionSend a simple read-only request (such as querying the list of articles) through the AI client to confirm that the connection is normal.
Step 4: Enable intent domains as neededEnable the corresponding intent domains in the background based on the operation type required by AI. It is recommended to start from the low-risk domain and gradually expand.
Step 5: Monitor call logsRegularly check the MCP call logs, observe the execution patterns and frequency of AI, and adjust the permission settings in a timely manner.
Common questions
What is the difference between MCP Server and local AI assistant?
MCP Server is a standardized protocol layer that can be accessed by any AI client that supports MCP; the local AI assistant is an intelligent entity built into AnqiCMS and can only be used within the system.
Will round-level approval affect AI efficiency?
Read-only operations usually do not require approval, only write operations need confirmation. The merged confirmation mechanism for write operations can reduce the number of interactions and balance security and efficiency.
How to reduce the risk after enabling high-risk areas?
Answer: It is recommended to set additional approval levels, limit access to specific IP ranges, and regularly audit call logs. For particularly sensitive operations, the DefaultOff state can be maintained and temporarily enabled as needed.