go-mcp-server-service

by AndrewDonelson

1 stars
201 downloads
Not rated
GitHub

About

A JSON-RPC 2.0 compliant server implementing the Model Context Protocol (MCP) for note management (as an example)

Details

Author
AndrewDonelson
GitHub stars
1
Downloads
201
Categories
Developer Tools

- JSON-RPC 2.0 compliant API
- Cross-platform support (Windows, Linux, macOS)
- Thread-safe note management
- Development and release build configurations
- Command-line interface and service components
- Custom note:// URI scheme for notes

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name go-mcp-server-service
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Build all components with make dev or make release-all, then run the command-line interface with make run-cmd or the service with make run-service. Configure Claude Desktop by adding the binary path to claude_desktop_config.json under the mcpServers section.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "go-mcp-server-service": {
            "go-mcp-server-service": {
                "command": "npx",
                "args": [
                    "@modelcontextprotocol/inspector",
                    "./bin/dev/<platform>/notes-server"
                ]
            }
        }
    }
}

McpServers

{
    "go-mcp-server-service": {
        "command": "npx",
        "args": [
            "@modelcontextprotocol/inspector",
            "./bin/dev/<platform>/notes-server"
        ]
    }
}

go-mcp-server-service

A JSON-RPC 2.0 compliant server implementing the Model Context Protocol (MCP) for note management (as an example)

This is an example. You can modify this and use as a Boilerplate for your own project. It supports cross-platform development and includes a command-line interface and service component for both development and release builds.

Features

- JSON-RPC 2.0 compliant API
- Cross-platform support (Windows, Linux, macOS)
- Thread-safe note management
- Development and release build configurations
- Service and command-line interface components

Components

Command Line Interface (cmd)

The command-line interface provides direct access to the notes server functionality.

Service (service)

The service component enables system-level integration and background operation.

Resources

The server implements a note storage system with:

- Custom note:// URI scheme for accessing individual notes
- Resource metadata including name, description, and MIME type
- Thread-safe concurrent access

Prompts

Available prompts:

- summarize-notes: Creates summaries of all stored notes
- Optional style argument ("brief"/"detailed")
- Combines all current notes with style preference
- Thread-safe note access

Tools

Available tools:

- add-note: Adds a new note to the server
- Required arguments: name (string), content (string)
- Thread-safe state updates
- Returns confirmation message

Building

Prerequisites

- Go 1.21 or later
- GNU Make or compatible build tool
- Git (for version information)

Build Commands

Development builds (includes debug symbols and race detection):

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.