Friday, May 23, 2025

AI in Go: Model Context Protocol (MCP)

Making AI "cloud native"... by using GoLang

mark3labs/mcp-go: A Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools. @GitHub

A Go implementation of the Model Context Protocol (MCP),
enabling seamless integration between LLM applications and external data sources and tools.

The Model Context Protocol (MCP) lets you build servers that expose data and functionality to LLM applications in a secure, standardized way. Think of it like a web API, but specifically designed for LLM interactions. MCP servers can:

  • Expose data through Resources (think of these sort of like GET endpoints; they are used to load information into the LLM's context)
  • Provide functionality through Tools (sort of like POST endpoints; they are used to execute code or otherwise produce a side effect)
  • Define interaction patterns through Prompts (reusable templates for LLM interactions)
  • And more!

metoro-io/mcp-golang: Write Model Context Protocol servers in few lines of go code. Docs at https://mcpgolang.com @GitHub


and another one...

a robust Model Context Protocol (MCP) server implementation in Golang, integrating the client with Python and Ollama using LangChain  Post | LinkedIn

and another alternative...

Introduction - mcp-golang

VS Code SVG Edit

The default behavior for many image formats in VS Code, including SVG is to preview, not edit
.It tries to be helpful by showing you the visual result.

Option 1:  To edit: Right-Click and "Open With" => Select "Text Editor"

Option 2: Set Text Editor as Default for SVG
To make text editor the default for all SVG files:
Go to File > Preferences > Settings (or press Ctrl+,)
Search for "workbench.editorAssociations"
Click on "Edit in settings.json"
Add or modify this entry:
"workbench.editorAssociations": { "*.svg": "default" }

Option 3: Use SVG Extensions
For better SVG editing experience, consider these extensions:
SVG by Jock (provides syntax highlighting and snippets)
SVG Viewer by cssho (enhanced viewer with zoom, pan features)
SVG Editor by henoc (visual SVG editor with code synchronization)

SVG Editor - Visual Studio Marketplace
does not seem to work?