Skip to content

MCP Server

Model Context Protocol (MCP) enables AI Coding Agents to call tools and retrieve domain-specific information they don't inherently possess.

As an example, if you ask ChatGPT how to use the Relewise API, it does have some high-level knowledge but is not an expert, and this leads to hallucinations (i.e., it makes up code that does not exist).

The Relewise MCP Server addresses this issue by providing detailed and always up-to-date information about our API, enabling you to use AI to write Relewise integration code in C#, TypeScript, PHP, or Java.

Relewise ApS disclaims liability for any issues arising from MCP usage

It is not dangerous to call the MCP Server by itself, but how AI interprets the data is out of our control, so we strongly recommend that you only use it on code that is under source control

Getting Started

In order to set up the Relewise MCP Server, follow the two steps below in your IDE of choice.

Step 1 of 2: Set up MCP in your IDE

The Relewise MCP Server is a remote MCP server (accessible via https://mcp.relewise.com)

Details on how to set it up in the most popular IDEs are listed below (click to expand)


Visual Studio Code
  • Use the > MCP: Add Server... command
  • Choose HTTP
  • Enter URL: https://mcp.relewise.com
  • Enter Server ID: Relewise-MCP
  • Choose if the MCP Server should be visible to just this Workspace or Global

Your mcp.json file should end up looking like this

json
{
  "servers": {
    "Relewise-MCP": {
      "url" : "https://mcp.relewise.com",
      "type": "http"
    }
  }
}

Tip: Both VS and VS Code recognize this file so if you use both then this is the recommended way.

More details about MCP for Visual Studio Code can be found here.


Visual Studio

Note: Visual Studio 2022 version 17.14.13 is the first version to fully support MCP Servers.

One-click Install

Install MCP Server in Visual Studio

Manual Install

  • Create a new file: <SOLUTIONDIR>\.mcp.json
  • Add the following to your .mcp.json file
json
{
  "servers": {
    "Relewise-MCP": {
      "url" : "https://mcp.relewise.com"
    }
  }
}

More details about MCP for Visual Studio can be found here.


Cursor
  • Go to File > Preferences > Cursor Settings
  • Go to Tools & Integrations in the sidebar
  • Click New MCP Server
  • Add the following to your mcp.json file
json
{
  "mcpServers": {
    "Relewise-MCP": {
      "url": "https://mcp.relewise.com"
    }
  }
}

More details about MCP for Cursor can be found here.


Windsurf
  • Go to File > Preferences > Windsurf Settings
  • Go to Cascade in the sidebar
  • Find section MCP Servers and click Manage MCPs
  • Click View raw config
  • Add the following to your mcp.json file
json
{
    "mcpServers": {
        "Relewise-MCP" : {
            "serverUrl": "https://mcp.relewise.com"            
        }
    }
}

More details about MCP for Windsurf can be found here.


Claude Code
  • Open your Terminal/PowerShell (not the Claude code interface)
  • Run command claude mcp add --transport http Relewise-MCP https://mcp.relewise.com

More details about MCP for Claude Code can be found here.


Codex CLI / IDE Extension

Note: Codex CLI version 0.46 / IDE Extension 0.4.19 or higher is needed

  • Navigate to .codex folder (%userprofile%\.codex on Windows, ~/.codex/ on Mac/Linux)
  • Find the file config.toml and edit it in a text editor
  • At the bottom of the file, add the following two lines
toml
[mcp_servers.relewise-mcp]
url = "https://mcp.relewise.com"
  • Save the file
  • (In the CLI you can verify it registered correctly by running the /mcp command)

More details about MCP for Codex can be found here.


Other

Most other tools use the same format as Cursor, but please check the official documentation.

Step 2 of 2: Include AI Rules in your Repo

We recommend that you include the following in your AI Rules of your repo (GitHub Instructions, Cursor Rules, Agents.md, etc.).

markdown

# Relewise API Rules (Model Context Protocol Tools)
- Never use your World Knowledge when working with the Relewise API (Always use the Relewise Tools instead)
- Always call the tool 'code_getting_started' before any other tool, as it gives you more context on how to use the tools properly.

See the documentation of your specific IDE on how and where you include such rules.

Frequently Asked Questions

Q: What Programming Languages are supported?

A: C#, TypeScript/JavaScript, PHP, and Java


Q: Do I have to pay to use the Relewise MCP Server?

A: No, the MCP Server is free to use for coding.


Q: I can't use MCP Tools in Visual Studio Code. What could be wrong?

A: MCP needs to be enabled in settings (if the setting is disabled, you might need to enable it on GitHub Organization level)


Q: I can't get the chat in my IDE to call the MCP. What should I do?

A: Please check that your IDE has been configured in your MCP server registrations and that your chat is in Agent Mode. (In general, MCP servers are only used by 'Agent Modes' and not in code-completion/Ask/Edit modes.) Also, remember to add the AI Rules into your AI instruction files, as mentioned in the Getting Started section.

Don't know us? Don't worry - you can find more information about us, by visiting our main page www.relewise.com