Back to Home
agentfront icon

frontmcp

Verified Safe

by agentfront

Overview

The CodeCall plugin provides AgentScript-based meta-tools for orchestrating MCP tools, enabling programmatic discovery, description, execution, and invocation of server capabilities within a sandboxed JavaScript environment.

Installation

Run Command
npx tsx apps/e2e/demo-e2e-codecall/src/main.ts

Environment Variables

  • PORT
  • MCP_SESSION_SECRET
  • REDIS_URL
  • REDIS_HOST
  • UPSTASH_REDIS_REST_URL
  • UPSTASH_REDIS_REST_TOKEN
  • KV_REST_API_URL
  • KV_REST_API_TOKEN
  • MCP_LLM_API_KEY
  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY
  • GOOGLE_API_KEY
  • MISTRAL_API_KEY
  • COHERE_API_KEY
  • AZURE_OPENAI_API_KEY
  • FRONTMCP_SERVERLESS
  • MACHINE_ID_PATH
  • OPENAPI_BASE_URL
  • OPENAPI_SPEC_URL
  • STATIC_AUTH_JWT

Security Notes

The CodeCall plugin allows execution of user-provided AgentScript (JavaScript) in a sandboxed VM (`enclave-vm`). While inherently risky, the project implements strong security measures: 1. Sandboxing: Scripts run in `enclave-vm`, preventing direct access to Node.js internals like `process` or `require`. 2. Malicious Pattern Detection: Explicitly blocks use of `eval`, `Function` constructor, and dynamic `import` statements within the VM. 3. Self-Reference Guard: Prevents `codecall` meta-tools (like `codecall:execute`) from calling themselves, mitigating recursive attacks. 4. Tool Access Control: Configurable blacklists/whitelists restrict which tools can be invoked from within AgentScript. 5. Output Sanitization: Limits output size and removes stack traces to prevent data leakage and excessive payload sizes. 6. Script Size Limits: Scripts are constrained by length to prevent resource exhaustion. These comprehensive controls significantly mitigate the risks associated with executing untrusted code, making it reasonably safe for its intended purpose.

Similar Servers

Stats

Interest Score85
Security Score9
Cost ClassLow
Avg Tokens10
Stars133
Forks4
Last Update2026-01-19

Tags

AgentScriptmeta-toolsorchestrationtool discoverysandboxed VMJavaScript