Context7 MCP and AI Coding assist

6 posts by 2 authors in: Forums > CMS Builder
Last Post: July 16   (RSS)

I have been using windsurf as my IDE with cascade and various AI’s such as claude, chatgpt and gemini. Recently i discover context7 a MCP server that can inject the latest docs into the prompt so it uses the most recent version.

Has anyone else been experimenting with this.

Currenty claude is using an older version of the zendb docs and is generating incorrect code. Context7 is design to prevent this.

Does Interactivetools, use any AI assistance? 

Jeff Shields
yaadev.com

By kitsguru - July 5 - edited: July 5

The problem with this solution, which should work in theory is that there is no code on the repo.

GitMCP.io wraps any public GitHub content in an MCP server. It empowers AI assistants to intelligently retrieve and search your codebase, giving you more accurate, context-rich coding help with zero setup.

✅ Step 1: Add GitMCP to your MCP Servers

Edit your windsurf.config.json and add the following under mcpServers:

{
  "mcpServers": {
    "gitmcp": {
      "serverUrl": "https://gitmcp.io/sse"
    }
  }
}

This enables GitMCP as a valid MCP server for Windsurf or any code editor that supports MCP

✅ Step 2: Use a Repo in a Conversation

Now, anytime you want Windsurf to bring in a GitHub repo’s documentation or code, you can invoke the GitMCP URL format, for example:

You can either:

Windsurf will then treat the GitHub repo as an accessible, live context.

OR

{
  "mcpServers": {
    "ZenDB Docs": {
      "serverUrl": "https://gitmcp.io/interactivetools-com/ZenDB"
    }
  }
}
Jeff Shields
yaadev.com

In the ai-exporter.php, is it possible to add a new line "\n" so the JSON component isn't seen as one big line of text, hard to read by humans, and the IDE doesn't like it either, although AI has no trouble.

Jeff Shields
yaadev.com

Hi Jeff, 

Sure, search for "json_encode" in the plugin and try replacing this line: 

$output .= json_encode($data, JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR) . "\n\n";
With this line:
$output .= json_encode($data, JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT) . "\n\n";
Let me know if that works for you. Thanks!
Dave Edis - Senior Developer
interactivetools.com

Thanks Dave, 

That is much better.

I paste the contents into an .MD file and reference the file in the prompt, that way I don't need to recreate it unless there is a DB change

Jeff Shields
yaadev.com