Use Model Context Protocol (MCP) to connect Codex or Claude Code to VDM on your Windows computer. You choose which Connection Profiles to share. In your assistant’s chat, you can then ask about tables, build a View, design a Finished Report, or prepare a Scheduler Job.
This guide covers VDM 2026.12.2.0. Setup is complete when the assistant can name your enabled profile and identify its tables or views. You can start with the schema alone. Example reports can help the assistant follow your business rules, and setup does not require a VDM OpenAI API key.
Watch the VDM MCP setup walkthrough on YouTube (shown in Codex for Windows).
In this guide · Before You Begin · Step-by-Step Setup · Schema and Knowledge · Queries and Parameters · Finished Reports and Visualize · Jobs and Scheduling · Saved Files and WebReports · Maintenance · Data Sharing and Costs · Troubleshooting
Before You Begin
- Have a working VDM Connection Profile for the database you plan to use. Follow your organization’s rules for sharing metadata, Knowledge, and report results with your assistant. We strongly recommend developing reports in a test environment and granting each Connection Profile read-only access to its database.
- Sign in to Codex or Claude Code on the Windows computer where VDM runs. Use the same Windows account for both applications. Other clients need support for Streamable HTTP MCP and a bearer token supplied through an environment variable.
- Keep VDM open. The assistant connects through a local address on that computer. A cloud-only chat service cannot reach this address directly. The Scheduler service is optional for MCP setup.
Enabling a profile gives your assistant access to its schema, saved Knowledge, supported queries, and native VDM tools. Those tools can save content and, on request, run jobs or change appointments. Enable the profiles you intend to share and review the effects of those actions before requesting them.
Step-by-Step Setup
Check that the Windows environment is ready, at least one profile is enabled, and MCP shows Running. Select Copy Agent Setup to connect your assistant. Select the image to view it at full size.
- In VDM, open the Claude Code/Codex ribbon tab and select Setup in the MCP group. You can also open Settings > MCP and select the Setup tab.
- Check the Windows environment status. If it shows Ready, continue to the next step. Otherwise, select Set Environment on the Home ribbon. VDM saves the local address and its MCP authentication key for your Windows account.
- Under Connection profiles, select Enabled for the profile you want to use. Check the enabled-profile count. VDM saves your selection automatically.
- Select Start MCP and wait for the status to show Running.
- Select Copy Agent Setup. If you just set or changed the Windows environment, fully close and reopen your assistant. If you launch it from a terminal, reopen the terminal before relaunching the assistant. Paste the whole setup message into a new chat. If Codex displays it as an attachment, select Show in text field to review it, then send the message. Follow any client prompt to trust the connection.
- If the assistant can load the connection immediately, it continues setup in the same chat. If it asks you to restart after configuring the connection, follow its instructions, open a new chat, and send finish VDM setup. Keep VDM open.
Check the assistant’s summary for each enabled profile. It tells you which profiles you can use now, what schema it found, and what to do about any profile that still needs attention. You can follow requests on VDM’s Activity tab.
Keep the MCP key private. The copied setup message refers to the Windows environment variable. Keep the actual key out of chats, screenshots, and support requests.
Close the MCP setup window using its title-bar X. Sharing continues while VDM remains open. Select Stop MCP to end sharing while keeping VDM open.
Reconnect After an Upgrade
If your assistant is already configured, open VDM and confirm that MCP is Running. In your assistant, send finish VDM setup to check the enabled profiles. To see what changed, ask “What changed in VDM MCP since my previous version?” and include your previous VDM version if you know it.
Prepare a Connection Profile for Reporting
- The assistant checks each enabled profile and refreshes its schema when needed. Look for the profile name, the schema source, and the number of tables or views found. To update a profile after a database change, ask “Refresh the schema for my Sales profile.” Replace Sales with your profile name.
- Once the assistant reports that the profile is usable, you can ask about its tables, fields, and known relationships. If discovery did not return a primary key or relationship, confirm it before using it to join tables.
- For better Knowledge search, you can let the assistant generate embeddings with a compatible local model. The assistant can use one already installed or ask before installing one. For large schemas, VDM may prepare the index in the background and group fields by table. Ask for progress while you work. You can skip this step and add it later.
- Describe your first query or report, including business rules such as which records count, how dates are interpreted, and how totals should be calculated.
The assistant can use saved profile guidance from MCP Knowledge and Bridgit Knowledge when available. Supported edits and query feedback are saved to MCP Knowledge by default. To share a reviewed entry with Bridgit, explicitly ask the assistant to publish that entry to Bridgit.
If you already have a VDM report or SQL query that shows how your team calculates a result, open a project folder containing those examples in Codex or Claude Code. Ask the assistant to use a specific example when it chooses joins or calculates totals.
The assistant may offer to import example reports after checking the profiles. You can say, “I don’t have any examples. Use the schema and ask me about any business rules you need.” If a saved single-connection .vdm View illustrates a rule you want to reuse, you can ask the assistant to preview and import that View into MCP Knowledge.
Build, Review and Run Queries
- Name the enabled Connection Profile and describe the columns, filters, grouping, calculations, and output you need.
- Ask the assistant to use current schema and available profile guidance to draft the SQL. Review the proposed SQL and its assumptions.
- Provide any required parameter values and request execution. For a multi-query View, the assistant runs each query on its assigned profile.
- Check how many rows came back and whether the results were limited. For a grand total, ask the assistant to calculate it in the database across all matching records. When satisfied, ask it to save the View and return the
.vdmfile link.
MCP accepts supported read-only SELECT queries and common table expressions. On enabled InterProse ACE profiles, it uses the saved ACE report runner and PostgreSQL syntax. On RevQ SaaS, it uses the saved Reports Data Service. Neither report service binds typed SQL parameters. ACE may also limit the rows it returns.
MCP also accepts a single named stored procedure on supported providers. SQL Server supports EXEC with optional local DECLARE and SET statements. Other providers can use a supported CALL or EXEC form. A procedure runs with the profile’s database permissions and can change data. Use an account with read-only database access for reporting. The returned-row limit applies only to the results.
Query requests default to 100 returned rows and a 30-second timeout. You can request up to 1,000 rows and 60 seconds. Other response limits can also apply.
Combine Data from Multiple Connection Profiles
- Enable each source profile. For a View you will run in VDM, select the SQL Server connection under Settings > MDS > SQL Database. If you change this setting, stop and start MCP to use it.
- Tell the assistant which records you need from each profile, how to match them, and what one row of the combined result should represent. Ask it to name each source query and use those names in a final
{MDSQuery}section. If the destination is WebReports, tell the assistant which database that installation uses before it writes the final query. - Review the source filters before asking the assistant to run the View. VDM runs each source query in full and stages its rows on the MDS SQL Database. The final query can join or summarize those rows and returns one result for the View. The preview row limit applies to that final result.
Use Parameters and Reserved Words
Views can use typed inputs and supported fixed lists. Ask the assistant to inspect a saved parameter-library definition before copying it into a View. For a date or date-time default or a supported Scheduler execution value, you can use a fixed value or an applicable single-date VDM reserved word. For a direct MCP query run, supply the actual date you want to check. When the Scheduler runs a Job, VDM resolves supported date words relative to the run date. Ask the assistant which date words apply to the parameter or export filename.
Create Finished Reports and Visualize Dashboards
- Identify the source View and supply any required parameter values. Finished Reports can use compatible single-query Views, multi-query Views, or supported Views of Views (VoV) saved with data. For Visualize, use a compatible single-query View or the combined result of an Advanced Query MDS View.
- Describe the report grouping and totals or the dashboard measures, filters, and layout. If you need a Multi Finished Report exported as one Excel workbook with several worksheets, specify the desired worksheet names and ask the assistant to verify the export.
- Review the preview, labels, and totals. If VDM flags a total with a missing summary scope, tell the assistant whether that total belongs to the group, page, or whole report, then preview it again. When a design uses live queries, VDM runs them to get a sample of the data. To check a production total, run the saved View with the intended inputs and compare the full result with a trusted total.
- Ask the assistant to save the reviewed design and return the file location. A standard View uses
.vdm. A Finished Report built on a supported View of Views keeps its.vdmvextension.
For an existing saved Finished Report, you can ask the assistant to inspect and render it and return a PDF or selected page images. Rendering can run the source query to obtain preview data. Ask the assistant to report which pages and data it checked.
Prepare Scheduler Jobs and Calendar Appointments
Create or Run a Job
- Identify the saved Views and describe each execution, its parameters, and the required export components, formats, and destinations. Include delivery, alert, and analysis settings when needed.
- Ask the assistant to check the available options, validate the Job, and save it as a new native
.vdmjfile. - To run a saved Job now, ask the assistant to prepare the run and show its configured effects, including exports, email, printing, or post-processing. After reviewing them, explicitly request the run in VDM. Ask for observed results and any captured export files.
To run the Job on a schedule, add the saved Job to a calendar appointment. You can also create a Master Job (.vdmmj) from an ordered list of saved Jobs, or request an explicit run of a saved Master Job in VDM. Calendar appointments use .vdmj Jobs.
The assistant can create or edit supported SMTP and Microsoft Graph email profile settings. Enter passwords, secrets, and other credentials directly in VDM.
If a Job was submitted but you do not see the expected output, ask the assistant to check the execution results and VDM logs for that run. A Job can enter the queue and still fail during execution.
Create or Change an Appointment
- For a new appointment, identify the saved Jobs, local start time, time zone, duration, and recurrence. Ask the assistant to prepare and validate the appointment.
- Review the upcoming dates, the end of the recurrence, and any daylight-saving warnings. When the schedule is correct, ask the assistant to activate it. The Scheduler can then run the Jobs at the scheduled times.
- To edit or delete a saved appointment, identify the one-time appointment or entire series and review the proposed effect before confirming. To move or update one future occurrence, identify its original slot and review the change to that occurrence.
If you schedule an Advanced Query MDS View, configure the MDS SQL Database in the Scheduler Service that will run it. If a file-backed calendar is locked, have its current editor release the lock through the normal workflow. If a save result is uncertain, check the calendar before retrying.
Find Saved Files, Recover Versions and Use WebReports
| Deliverable | Where VDM saves it |
|---|---|
| Views, Finished Reports, and Visualize dashboards | The MCP subfolder of the configured Views directory |
| Jobs and Master Jobs | The configured Jobs directory |
| Parameter-library definitions | The shared library in the configured Parameters directory |
Ask the assistant for the file link returned by the native save. Save any session drafts you need before stopping MCP. If you change a configured folder in VDM, restart sharing to use the new location.
Opening a saved View through MCP loads it into the assistant’s session. To see it on the desktop, ask, “Show this View in VDM without running it.” If VDM is busy or has unsaved work, finish that work before requesting display again.
For supported native Views and Jobs, ask the assistant to check available MCP checkpoints, compare versions, or restore a selected version under a new filename.
For WebReports, name the saved VDM Web Reports profile you want for each request. The assistant can list or download available Views and publish a saved local View by its exact filename. For an MDS View, confirm that your WebReports version supports it and specify the WebReports backend (SQL Server or MySQL). A final query written for MySQL must be run in WebReports. Publishing can update a WebReports definition with the same name, so confirm the destination and filename before requesting it.
Manage Sharing and Connection Settings
- To change enabled profiles or the port, select Stop MCP, make the change, and start sharing again. After a port change, check the environment status and use Set Environment if prompted. Restart the client and use Copy Agent Setup again if its configuration needs updating.
- To share at future VDM launches, select Start MCP automatically when VDM starts. This option is off by default.
- On the Maintenance ribbon, use Copy MCP URL to get the exact local endpoint. Use Reset API Key to replace the MCP key. After changing Windows environment values, fully restart your client and any terminal you use to launch it. To remove the Windows environment values, stop MCP and use Delete Environment.
Understand Data Sharing and Costs
VDM hosts the MCP server locally. Depending on the client and your request, the assistant may send schema, saved Knowledge, query results, previews, or scheduling details to its AI provider. Your assistant’s model usage follows its own account and service terms.
MCP setup and local Knowledge indexing do not require a VDM OpenAI API key. The optional Allow Bridgit embedding API calls (billed) setting uses configured Bridgit credentials and can incur API charges. If a Scheduler Job is configured for AI analysis, that analysis uses the Job runner’s VDM model settings and key when it runs.
Troubleshooting
| What you see | What to do |
|---|---|
| The MCP setup shortcut is missing | Check the installed VDM version. This guide uses 2026.12.2.0. Contact BridgeWorks if you need help identifying the build available to your organization. |
| The Windows environment is missing or mismatched | Select Set Environment. When the status shows Ready, restart the client and its parent terminal, if applicable. |
| The port is busy or the client cannot connect | Keep VDM open and check that MCP shows Running. Compare the client’s URL with Copy MCP URL. If the port is in use, resolve the conflict or choose another available port while MCP is stopped. |
| The client reports an authentication error | Confirm that the Windows environment shows Ready, fully restart the client and any parent terminal, and check that the client reads VDM_MCP_API_KEY from the environment. |
| The assistant cannot find a Connection Profile | Stop MCP, select Enabled for the intended profile in VDM, and start sharing again. |
| Schema is missing, stale, or lists fewer tables than expected | Ask the assistant to refresh the named profile and report the schema source, table count, and any warnings. VDM has built-in discovery for Db2 for i over ODBC and can fall back to the driver’s metadata. If discovery fails or the fallback misses tables, the assistant can test a replacement query and show what it found. Review the coverage before approving a save. Saving changes the profile’s discovery query in Bridgit Knowledge, which both Bridgit and MCP use. After saving, refresh the schema again. |
| The assistant configured the client, but setup stopped after restart | Open a new chat in the restarted client and send finish VDM setup. If the assistant cannot see VDM, check the connection, environment status, and enabled profiles above. |
| Knowledge index preparation is still running | Ask the assistant to check progress. Leave the background build running. If the profile is usable, you can start your report while indexing continues. |
| There are no saved example reports | Continue with the available schema and provide any business definitions needed for your request. |
| A query, report, or job tool is unavailable | Ask the assistant to check MCP help and the requested workflow’s readiness. A working MCP connection confirms communication with VDM. Database providers, files, permissions, locks, and renderers have their own requirements. |
When contacting support, include the VDM version, assistant name, affected workflow, visible error, and MCP and environment status. Remove confidential report data and credentials from any screenshots.
Related Articles
- Build a Finished Report with VDM MCP
- Create and Schedule a Job with VDM MCP
- VDM Release Notes Version 2026.12.02
- Codex MCP documentation
- Claude Code MCP documentation
- Bridgit AI Knowledge Editor Overview
Comments
0 comments
Please sign in to leave a comment.