ENF News Bot
Automated News Bot
- Joined
- Apr 15, 2022
- Messages
- 2,591
MCP server portals support Build a Code Mode MCP server, a technique that reduces context window usage by replacing individual tool definitions with a single code execution tool. Code Mode is turned on by default on all portals.
To turn it off, edit the portal in Access controls > AI controls and turn off Code Mode under Basic information.
When Code Mode is active, the portal exposes a single
To use Code Mode, append
For more information, refer to Code Mode.
Continue reading...
To turn it off, edit the portal in Access controls > AI controls and turn off Code Mode under Basic information.
When Code Mode is active, the portal exposes a single
code tool instead of listing every tool from every upstream MCP server. The connected AI agent writes JavaScript that calls typed codemode.* methods for each upstream tool. The generated code runs in an isolated Dynamic Worker environment, keeping authentication credentials and environment variables out of the model context.To use Code Mode, append
?codemode=search_and_execute to your portal URL when connecting from an MCP client:https://<subdomain>.<domain>/mcp?codemode=search_and_executeFor more information, refer to Code Mode.
Continue reading...