Code Editor
Write code with your AI partner. View Reference →
The AI Settings dialog (Protect tab → Advanced group) is the bridge between your secure development environment and modern Artificial Intelligence. It has two tabs: MCP Server, which lets AI assistants like Claude, ChatGPT, and Gemini drive VBA Padlock through the Model Context Protocol (MCP); and AI Chat, which configures the integrated chat assistant.
The MCP Server allows AI tools to “see” your project files and provide contextually aware code generation.
The MCP server exposes VBA Padlock’s core operations as tools. An AI assistant connected to it can:
| Area | Tools |
|---|---|
| Project | get_project_info, open_office_file, close_project, save_project, list_recent_projects, list_office_files |
| Code | get_vba_code, set_vba_code, create_module, delete_module, check_syntax, list_available_macros |
| Settings | get_project_settings, set_project_settings |
| Build | build_dll (Win32, Win64, or both), get_compilation_errors |
| Output | get_output_files, create_distribution_zip, copy_output_files |
That’s enough for an assistant to open a workbook, refactor a module, rebuild the DLLs, and package a distribution ZIP, all hands-free.
VBA Padlock Studio provides pre-formatted configuration snippets for the major AI ecosystems. Copy these into your provider’s settings to activate the integration:
Optimized for the Claude Desktop application. Copy the JSON into your claude_desktop_config.json file.
Standard configuration for OpenAI-compatible agents.
Reference configuration for integration with Gemini-based development tools.
The AI Chat tab configures the chat assistant built into the Studio:
Code Editor
Write code with your AI partner. View Reference →
Compile Project
Validate AI-generated code. View Reference →