AI Meta MCP 服务器
动态 MCP 服务器,允许 AI 模型通过元函数架构创建并执行自定义工具。该服务器提供了一种机制,允许 AI 通过在运行时定义自定义函数来扩展自身功能。
特征
动态工具创建:AI 可以通过自定义实现来定义新工具
多运行环境:支持 JavaScript、Python 和 Shell 执行
沙盒安全:工具在隔离的沙盒中运行以确保安全
持久性:在会话之间存储和加载自定义工具定义
灵活的工具注册表:管理、列出、更新和删除自定义工具
人工审批流程:工具创建和执行需要明确的人工审批
安全注意事项
⚠️警告:此服务器允许动态代码执行。请谨慎使用,并仅在受信任的环境中使用。
所有代码都在沙盒环境中执行
工具创建和执行需要人工审核
可通过环境变量配置工具执行权限
所有操作的审计日志
安装
用法
运行服务器
配置
环境变量:
ALLOW_JS_EXECUTION
:启用 JavaScript 执行(默认值:true)ALLOW_PYTHON_EXECUTION
:启用 Python 执行(默认值:false)ALLOW_SHELL_EXECUTION
:启用 Shell 执行(默认值:false)PERSIST_TOOLS
:在会话之间保存工具(默认值:true)TOOLS_DB_PATH
:存储工具数据库的路径(默认值:“./tools.json”)
使用 Claude Desktop 运行
将其添加到您的claude_desktop_config.json
中:
工具创建示例
在 Claude Desktop 中,您可以创建一个这样的新工具:
Claude 将使用define_function
元工具来创建您的新工具,该工具可立即使用。
建筑学
该服务器实现了模型上下文协议(MCP),并提供了一个元工具架构,使得人工智能驱动的功能在安全边界内注册和执行成为可能。
执照
麻省理工学院
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
使 AI 模型能够通过元功能架构动态创建和执行自己的自定义工具,支持具有沙盒安全性和人工审批流程的 JavaScript、Python 和 Shell 运行时。
Related MCP Servers
- -securityAlicense-qualityProvides code manipulation, execution, and version control capabilities. It allows AI assistants to read, write, and execute code while maintaining a history of changes.Last updated -9MIT License
- AsecurityAlicenseAqualityAn AI-powered automation tool development platform that provides modular architecture with tool hot-reloading, enterprise-grade integration capabilities, and real-time updates with zero-downtime deployment.Last updated -155MIT License
- -securityFlicense-qualityAllows AI models to run JavaScript/TypeScript code through Model Context Protocol tool calls, supporting both one-time script execution and stateful REPL sessions with npm package integration.