A tutorial to build a Go and deploy and MCP server and, deploy a Node one and use Visual Studio Code as an MCP client.
As of 04/2025, most MCP tutorials and demos are currently targeting the Claude Desktop application. However, you can also perform development and testing if you have GitHub Copilot with Agent mode and use Visual Studio Code as an MCP client.
MCP servers are being written in many languages. This guide implements two MCP servers. One in Go and another in Node (bun.sh). The Go MCP server is based on the mcp-go package, and the Go server is based on one of the samples in package's repo. The Node package is something that I am developing to get table schemas.
An MCP (Model Context Protocol) server is a lightweight program designed to expose specific capabilities through the standardized Model Context Protocol. This protocol allows applications to provide context to large language models (LLMs) securely and efficiently.
Think of MCP servers as bridges that connect LLMs to various data sources and tools, both local and remote. They enable LLMs to access and interact with files, databases, APIs, and other services in a controlled manner. This makes it easier to build complex workflows and integrate AI models with different systems.
References:
- Visual Studio Code
- Github Copilot with Agent mode
- Some Go knowledge and Go installed
- Some Node knowledge (or bun.sh) and Node or bun installed
For my testing, I used the following sample code:
- Go package:
mcp-go
- Server code: mcp-go/examples/everything
- Clone this repo
- Change directory to:
server
- Get the required packages:
go mod tidy
- Built the mcp server:
go build .
- Copy the full executable path:
C:\Users\user\git\msalemor\mcp-vscode-tutorial\go-server\mcpgo.exe
-
Open Github Copilot Chat
-
Change Copilot to Agent mode
-
On the Agent pane, click on Tools
-
On the topbar popup, click
+ Add More Tools
-
On the topbar popup, click
+ Add MCP Server
-
On the topbar popup, select
Command (stdio)
-
On the command to run, paste the full path to the Go executable
-
Name the server whatever you want
-
Save the MCP configuration as user (global) or workspace (only for the project) settings
-
If you select workspace, Visual Studio will generate the following settings at
.vscode/mcp.json
{
"servers": {
"mcpgo1": {
"type": "stdio",
"command": "C:\\Users\\user\\git\\msalemor\\mcp-vscode-tutorial\\go-server\\mcpgo.exe",
"args": []
}
}
}
- Open the
.vscode/mcp.json
file - Add the Node
bun-server
MCP configuration as below: -
Note: I am using bun.sh instead of node
{
"servers": {
"mcpgo-server": {
"type": "stdio",
"command": "C:\\Users\\user\\git\\msalemor\\mcp-vscode-tutorial\\go-server\\mcpgo.exe",
"args": []
},
"bun-server": {
"type": "stdio",
"command": "bun", // change to Node if using node and do not add this comment
"args": [
"run",
"C:\\Users\\user\\git\\msalemor\\mcp-vscode-tutorial\\node-server\\index.ts"
]
}
}
}
- Create a file called:
types.go
- Make sure the file is the Agent context
- In the agent type:
Get the table schema for users. Create a structure for the schema. Notify the user when done.
In the screenshot, we can see that the MCP servers are running, and that there are 6 tools registered in VSCode. We can also see that the Agent has used two tools to create a Go types.go
file that is based on the users
schema.
- On the Agent window type:
Get the table schema for users. Create a structure based on the schema. Notify the user when done.
- Press Enter