Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Minimal MCP server in Go that reverses UTF-8 text (grapheme-safe) via stdio.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Fetched from the repository for this visit.
A tiny MCP (Model Context Protocol) service written in Go. It mirrors (reverses) UTF-8 text while preserving grapheme clusters.
This repository implements a minimal MCP server and a single mirror tool to help me/us learn MCP basics and to build something that at minimum works with VS Code's Copilot (via stdio transport).
[!TIP]
Article about this project in Japanese: 「【Golang】最もシンプルな MCP Server を Go で堅牢に実装してみる」@ Qiita
stdio transport only (HTTP/SSE transports not implemented)golangci-lint (optional; make test runs lint)make (optional; for build and test automation)stdio transport
This app aims to work with VS Code's Copilot extension via MCP. Any MCP-compatible client that supports stdio transport, Claude Desktop for example, should also work.
Build:
make build
# or
go build -o text-mirror .
Tests & lint:
make test
# or
golangci-lint run --fix
go test -cover -race ./...
MCP support in VS Code is generally available as of version 1.102 and later.
Build the text-mirror as executable binary (as above) and copy its absolute path.
/home/user/go/bin/text-mirrorRegister as an MCP server in VS Code's MCP config file.
Open VS Code's command palette (F1 or Ctrl+Shift+P) and search for:
MCP: Open User ConfigurationEdit the generated mcp.json as follows (bare minimal example):
{
"servers": {
"text-mirror": {
"command": "/full/path/to/text-mirror",
"env": {
"MCP_TEXT_MIRROR_DEBUG_LOG": "/full/path/to/text-mirror.log"
}
}
}
}
mcp.json already has other servers, just add the text-mirror entry under servers.command is required.
/full/path/to/text-mirror with the actual path to the built binary.type is omitted, VS Code assumes "stdio" by default for local servers. So no need to specify it here.env is optional.
MCP_TEXT_MIRROR_DEBUG_LOG is present, it enables debug logging to the specified log file./full/path/to/text-mirror.log with the desired log file path.Restart VS Code
text-mirror MCP server should appear in the VS Code extension list (as an Installed MCP server pane).text-mirror and check what can be done.
Call the mirror tool via Copilot Chat.
In Copilot Chat, select an "Agent" model that is MCP-capable.
The mirror tool should now be available. You can ask Copilot to use it:
Reverse this text using text-mirror: 🙂🙃🙂👩💻👨💻123
or
Use the mirror tool to reverse "こんにちは"
If the MCP server is locally running, MCP clients like VS Code MCP/Claude Desktop communicate with it in a very Unix-like way.
text-mirror binary as a subprocess (spawns the MCP server).golangci-lint.editorconfig is included to keep consistent formatting (tabs for Go files, spaces for other files, LF endings, UTF‑8 charset).This project is primarily a learning resource, but contributions are welcome (fixes, tests, documentation).
Loading reviews...
GitHub checked 88h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.