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 Model Context Protocol)は、哲学的なAIメンターであるSternへのアクセスを提供する強力なMCPサーバーです。Sternは、繊細な導きと知恵を通して人間の潜在能力実現を支援します。Sternは合理主義的思考とストア派哲学を融合させ、Solana上のスマートコントラクトを通じてメンターシップとアカウンタビリティを提供します。

スターンとは何ですか?

スターンは次のような特徴を持つ哲学的な AI メンターです。

  • ユドコウスキーの著作と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 にメッセージを送信する方法を示しています。

ツール

メッセージスターン

このツールを使用すると、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.

合理主義的思考とストイックな哲学を組み合わせた哲学的 AI メンターである Stern へのアクセスを提供し、Solana 上でパーソナライズされたメンタリングとスマート コントラクトの説明責任を通じてユーザーを指導する MCP サーバーです。

  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