baolongt_sns_mcp_server

baolongt_sns_mcp_server

by baolongt
A TypeScript-based MCP server for interacting with SNS DAOs on the Internet Computer.

Service Nervous System MCP Server

Overview

The Service Nervous System MCP Server is a TypeScript-based implementation of the Model Context Protocol (MCP) designed to interact with decentralized autonomous organizations (DAOs) on the Internet Computer. This server provides tools and features to manage and interact with Service Nervous System (SNS) DAOs, enabling users to list proposals, vote on them, and manage their DAO participation effectively.

Features

Tools

  • list_proposals: Lists all proposals for a specific DAO.
  • Takes DAO name as a parameter.
  • Returns a list of proposals from the specified DAO.

  • list_votable_neurons: Lists all votable neurons for a user in a DAO.

  • Takes DAO name and principal ID as parameters.
  • Returns neurons that can vote on proposals.

  • get_system_parameters: Lists all configuration parameters for a DAO.

  • Takes DAO name as a parameter.
  • Returns system parameters for the specified DAO.

  • wallet: Retrieves the user's wallet information.

  • Returns the principal ID of the current wallet.

  • vote_proposal: Allows voting on a proposal.

  • Takes DAO name, principal ID, neuron ID, proposal ID, and vote preference.
  • Supports voting yes, no, or unspecified on proposals.
  • Registers the vote with the DAO governance system.

Setup

To set up the server, follow these steps:

  1. Copy the .env.example file to .env:
    shell cp .env.example .env
  2. Add your seed phrase to the .env file.

Development

Installation

Install the necessary dependencies:

npm install

Building the Server

Build the server using the following command:

npm run build

For development with auto-rebuild, use:

npm run watch

Integration with Claude Desktop

To use the server with Claude Desktop, add the server configuration:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

Add the following JSON configuration:

{
  "mcpServers": {
    "mcp-sns-server": {
      "command": "/path/to/mcp-sns-server/build/index.js"
    }
  }
}

Debugging

Debugging MCP servers can be challenging due to stdio communication. Use the MCP Inspector for debugging:

npm run inspector

The Inspector provides a URL to access debugging tools in your browser.

Resources

Features & Capabilities

Categories
mcp_server model_context_protocol typescript javascript dao internet_computer sns api_integration decentralized_governance

Implementation Details

Stats

0 Views
1 GitHub Stars

Repository Info

baolongt Organization

Similar MCP Servers

continuedev_continue by continuedev
25049
21423
9300