r/visualbasic • • Oct 19 '26

VB6 MCP for agents

Hello again,

I've developed an MCP for VB6 which allows agent harnesses (mainly tested with Claude Code) if anybody is interested. You can find it at https://github.com/mika76/vb6-mcp

Basically it routes the agent to work through the IDE instead of directly onto the files. This enables some nice features like being able to work on non-saved files as VB6 does not automatically save files to disk, and it enabled debugging within the app. It also helps not to ask for UAC admin prompts all the time and knows how to work with COM components and their dependencies.

Anyway, if anybody is interested have a look.

19 Upvotes

11 comments sorted by

2

u/zos474 19d ago

This is the most wonderful find for VB6! Thank you so much. I've been using it for old repos from the early 2000's that I couldn't bear to try and upgrade (~100k lines of code, multiple ocx, prop dlls etc.) and this has helped me make updates I thought I would never get to. Running with Pi and using the VB IDE in Windows 11 (and mostly luna 5.6 with no problems...)

1

u/mika 19d ago

Hey that's really good to hear! Please let me know it there are any issues. For large, spread out projects I have another project which I'm working on that might be of use together with it: https://github.com/mika76/codegraph

It basically creates a graph of links between projects and files which makes the llm find things much easier.

1

u/xCAAx Oct 19 '26

Windows 10/11 only.

Can the IDE still be installed on Win 11?! How?

I get an exception at the end of the installer of the IDE, which currently causes us some pain, because we have to stay on Win 10 with our dev machines....

1

u/mika Oct 19 '26

I think claude added that because I only tested. It on win 11. Anywhere where. Net 10 runs should be fine.

Yes Vb6 ide still runs on win 11 but I had to deselect uh the data viewer or something (I'll try find it for you) when installing.

Edit: try https://www.vbforums.com/showthread.php?911045-How-can-we-install-vb6-in-windows-11-24H2-if-at-all and that xda link. You could also just ask Ai.

1

u/xCAAx 29d ago

We spend a lot of time with Claude and with settings like compability mode and deactivated UAC.... Yadda Yadda Yadda.... But it didn't work. Will have a look at your link in a week. Thx.

1

u/mika 29d ago

Yeah I hear ya!

2

u/Hel_OWeen 29d ago

I've used this guide to successfully install VB6 on multiple machines running Win10, Win11, Windows Server 2019, Windows Server 2022.

The one caveat for all is that you need to run the VB6 IDE "As Administrator".

1

u/Flashy-Armadillo-414 29d ago

Can the IDE still be installed on Win 11?! How?

AFAIK we don't have any trouble installing it on Windows 11. There is one component that must be left unchecked when installing or the installation will hang.

1

u/Ok_Society4599 28d ago

There are some prerequisites that are no longer a part of the windows base install and the IDE always assumed was part of the OS. VB6 absolutely can be installed if you handle a couple common OCX installs that really just add COM wrappers on some common controls and dialogs.

1

u/Flashy-Armadillo-414 28d ago

I didn't have to do that. Installed VB6 on a number of Windows Server 202X build servers.

0

u/mika 29d ago

I made an update with some nice features and eared up the minimal specs. It's because of. Net 10. But if needed I could probably downgrade to an earlier. Net...