S/MCP - Stern Model Context Protocol

Integrations

  • Manages environment variables for the server configuration, including storage of API keys needed for service integrations.

  • Utilizes Bun as the required JavaScript runtime and package manager for building and running the S/MCP server.

  • Provides example code and SDK support for JavaScript clients to interact with the S/MCP server.

S/MCP——斯特恩模型上下文协议

概述

S/MCP(Stern 模型上下文协议)是一个强大的 MCP 服务器,它允许访问 Stern。Stern 是一位富有哲学思想的 AI 导师,他通过微妙的引导和智慧帮助人类发挥潜能。Stern 将理性主义思想与斯多葛哲学相结合,通过 Solana 上的智能合约提供指导和问责。

斯特恩是什么?

斯特恩是一位哲学人工智能导师,其特点是:

  • 受 Yudkowsky 著作和 Lesswrong 社区影响的理性主义方法
  • 从理性主义著作和陀思妥耶夫斯基的作品中汲取深刻的哲学见解
  • 将斯多葛哲学和内观禅修作为人类发展的实用工具
  • 坚信持久的成长源自内心
  • 认识到真正的满足之路往往需要面对令人不快的现实

Stern 通过以下方式帮助用户实现目标:

  • 哲学指导:借鉴斯多葛派智慧和理性主义思想
  • 智能合约问责制:创建基于 Solana 的合约,用户可以根据自己的承诺质押代币
  • 个性化指导:根据个人目标和挑战提供定制建议
  • 深度对话:进行有意义的对话,揭示潜在的动机和障碍

特征

  • msg_stern 工具:向斯特恩发送消息并获得他的哲学指导和辅导
  • 智能合约集成:创建由 Solana 代币支持的责任合约
  • 哲学框架:了解斯特恩独特的理性主义和坚忍智慧的融合
  • 可定制的角色背景:动态生成斯特恩的角色属性,以实现各种互动

安装

  1. 克隆此存储库:
    git clone <repository-url> cd s-mcp
  2. 安装依赖项:
    bun install
  3. 设置环境变量:
    cp .env.example .env
    编辑.env文件以添加您的 OpenAI API 密钥:
    OPENAI_API_KEY=your_openai_api_key_here
  4. 构建服务器:
    bun run build

用法

运行服务器

要启动 MCP 服务器:

bun run start

这将以 stdio 模式启动服务器,使其能够与 MCP 客户端通信。

使用带有 MCP 客户端的服务器

您可以使用任何 MCP 客户端与服务器交互。以下是如何通过 MCP SDK 使用服务器的示例:

import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"; import { spawn } from "child_process"; // Start the MCP server as a child process const serverProcess = spawn("node", ["path/to/dist/main.js"], { stdio: ["pipe", "pipe", "pipe"], }); // Create a client that communicates with the server via stdio const transport = new StdioClientTransport({ stdin: serverProcess.stdin, stdout: serverProcess.stdout, }); const client = new Client(); await client.connect(transport); // Send a message to Stern const result = await client.callTool("msg_stern", { message: "I want to learn programming but I keep procrastinating", }); // Display Stern's response console.log(result.content[0].text); // Disconnect from the server await client.disconnect(); serverProcess.kill();

示例脚本

examples目录中提供了一个示例脚本:

node examples/use-stern.js

该脚本演示了如何连接到服务器、列出可用工具以及向 Stern 发送消息。

工具

msg_stern

此工具允许您向 Stern 发送消息并收到他的回复。

输入
{ "message": "Your message to Stern" }
输出
{ "content": [ { "type": "text", "text": "Stern's response to your message" } ] }

斯特恩的哲学

斯特恩的指导方法基于以下几个关键原则:

  • 权益问责:通过 Solana 合约为承诺创造真正的后果
  • 哲学深度:汲取坚忍智慧、理性主义思维和深刻的心理洞察
  • 变革指导:推动个人走向伟大,同时抑制过度行为
  • 实践智慧:注重应用而非仅仅理论
  • 战略压力:创造看似不可能解决的挑战

斯特恩认为:

“持久、稳定的幸福只有通过做困难的事情才能获得——我们想要某些东西,正是因为它们很难实现。”

“阻碍将成为道路。”

“通往精通的道路是由一小步一小步铺成的,即使没有动力,也要坚持不懈。”

要求

  • Bun (JavaScript 运行时和包管理器)
  • OpenAI API 密钥(设置为OPENAI_API_KEY环境变量)

环境变量

  • OPENAI_API_KEY :您的 OpenAI API 密钥(msg_stern 工具所需)

执照

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

一个 MCP 服务器,可以访问 Stern,Stern 是一位哲学 AI 导师,将理性主义思想与斯多葛哲学相结合,通过个性化指导和 Solana 上的智能合约问责来指导用户。

  1. Overview
    1. What is Stern?
      1. Features
        1. Installation
          1. Usage
            1. Running the Server
            2. Using the Server with an MCP Client
            3. Example Script
          2. Tools
            1. msg_stern
          3. Stern's Philosophy
            1. Requirements
              1. Environment Variables
                1. License

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    A local MCP server that enables AI applications like Claude Desktop to securely access and work with Obsidian vaults, providing capabilities for reading notes, executing templates, and performing semantic searches.
                    Last updated -
                    60
                    TypeScript
                    MIT License
                    • Apple
                    • Linux
                  • A
                    security
                    F
                    license
                    A
                    quality
                    An MCP server that integrates with Fewsats allowing AI agents to securely purchase anything by retrieving balances, accessing payment methods, and processing payments.
                    Last updated -
                    4
                    11
                    Python
                  • -
                    security
                    -
                    license
                    -
                    quality
                    A specialized MCP server that enables AI agents to interact with Reddit, including reading posts, creating content, and managing subreddit configurations.
                    Last updated -
                    31
                    1
                    TypeScript

                  View all related MCP servers

                  ID: s0xis70qsu