Introduction
VCP (Variable & Command Protocol) is a middleware layer designed to go beyond conventional AI interaction patterns. Beyond being a highly compatible, general-purpose, extensible toolbox, it aims to be an ecosystem that enables AI models to achieve capability leaps, memory evolution, and emergent swarm intelligence. The project's stated goal is a universal VCP system that is not restricted by model type, modality, or frontend, deeply integrating AI reasoning, external tool execution, and persistent memory at the API level to form an efficient "AI–tool–memory" triangle.
Key points
1. Plugin-based architecture
- Plugins are defined via
plugin-manifest.jsonand managed by a core plugin manager (Plugin.js), enabling integration of existing APIs, professional software, hardware interfaces, or custom logic. - Example manifest entries include a
WebSearchplugin (parameters:query,maxResults) and aCodeExecutionplugin (parameters:code,language). - AI models invoke tools by embedding text markers in their replies:
<<<[TOOL_REQUEST]>>> ... <<<[END_TOOL_REQUEST]>>>. - Parameters use the format
key:「始」value「末」, which supports complex data types and multi-line text robustly. - Parameter key parsing is case-insensitive and ignores separators like underscores and hyphens, so
image_size,imagesize,ImageSize, andIMAGE-SIZEare all recognized as the same parameter. - Being purely text-marker based, it avoids dependence on vendor-specific Function Calling API fields, achieving broad model compatibility.
- An MCPO-based (Model Context Protocol Opera) compatibility port translates MCP tool call formats into VCP commands in real time and handles the responses.
- Existing MCP plugins run in the VCP environment without modification, positioning VCP as a "meta-protocol" unifying different AI capability layers.
- A centralized service (
WebSocketServer.js) handles all WebSocket connections, authentication, and message broadcasting. - Service plugins (e.g.,
VCPLog) and sync plugins (viawebSocketPushconfig) push logs, AI messages, and status updates without implementing their own WebSocket servers. - Supports targeted broadcasting by
clientType, letting different frontends subscribe to specific message types. - Configured in
config.envviaWhitelistImageModelandWhitelistEmbeddingModel(comma-separated lists). - Requests to whitelisted models are routed through
specialModelRouter.js, bypassing all normal processing (preprocessing, variable substitution, tool-call loops). - Embedding model requests are forwarded untouched (true passthrough); image model requests may receive necessary modifications (e.g., adding a
generationConfig) before forwarding.
2. VCP command protocol
3. MCP compatibility via MCPO
4. Unified WebSocket communication
5. Model whitelist passthrough
6. Five-layer architecture
1. Application Layer — APIs and SDKs for developer integration (e.g., aVCPClient with endpoint, API key, and model config).
2. Interaction Layer — Request Processor (variable substitution, context management), Response Parser (tool-call detection), and Session Manager (conversation history and state).
3. Protocol Layer — the VCP command protocol itself.
4. Execution Layer — plugin invocation and tool execution.
5. Infrastructure Layer — storage, networking, and base services.Security warning
The author issues a strong warning against calling the toolbox through unofficial or reverse-proxied APIs (mirror sites, third-party relay API providers). Because VCP has near system-level monitoring access, doing so risks leaking sensitive information — AI interaction data, memory-base contents, API keys, browser history, and credentials — to untrusted third parties. Users are advised to keep their AI model API call chains clean, direct, and trusted.
Conclusion
VCP positions itself as a bridge toward AI agents that can learn autonomously, evolve continuously, and collaborate efficiently with other agents, all built on private and shared knowledge bases, with the aim of expanding the application boundaries and intelligence potential of AI systems.