ZB

zvyen1314-bot/conversational-experience-router

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 0 forks 质量 78 趋势 14MIT

开放体验层用于对话式人工智能——将用户意图导入安全、同意且有状态的体验。包含Claude MCP适配器。

概览

一个开放的对话式AI体验层。它将用户意图——“我无聊了”、“帮我整理这个想法”、“我想聊点什么”——导入到可以立即开始的体验中。 Claude 是第一个 AI 主机;之后还可以添加其他兼容 MCP 或类似协议的主机。 - :根据当前意图和用户批准的兴趣信号发现并推荐体验模块。- :启动前,为所选模块发出一次性、短暂的同意令牌;体验仅在用户确认后开始。- :每次体验以短会话形式运行,包含继续、提交事件和结束。- :通过将模块放入体验中添加/;无核心更改。- :Ed25519模块签名、可信发布者、权限/风险显示及版本历史索引。- :公开话题、可选讨论室、举报、管理和屏蔽——无自动私信或真人匹配。

概述(AI 翻译)

简体中文 |英语

一个开放的对话式AI体验层。它将用户意图——“我无聊了”、“帮我整理这个想法”、“我想聊点什么”——导入到可以立即开始的体验中。

Claude 是第一个 AI 主机;之后还可以添加其他兼容 MCP 或类似协议的主机。

特色

  • 意图体验:发现并推荐当前意图和用户认可兴趣信号中的体验模块。
  • 明确同意:启动前,为所选模块发出一次性短暂的同意令牌;体验仅在用户确认后开始。
  • 有状态会话:每次体验作为一个短会话运行,包含继续、提交事件和结束。
  • 可扩展性:通过将模块放入experiences/;不更改核心。
  • 可验证的注册表:Ed25519模块签名、可信发布者、权限/风险显示以及版本历史索引。
  • 公开话题基金会:公开话题、可选讨论室、举报、管理和屏蔽——无自动私信或真人匹配。
  • 本地优先:体验网页服务器仅在localhost上监听,且无账户。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Conversational Experience Router

简体中文 | English

An open experience layer for conversational AI. It routes user intents — “I’m bored”, “help me organize this idea”, “I want to chat about something” — into experiences that can start right away.

Claude is the first AI host; other MCP-compatible or similar-protocol hosts can be added later.

Current release: V1.0 Alpha 1. It adds durable local state, audit records, capability allowlists, an isolated module process boundary, and the host-neutral experience-host/v1 JSON adapter. The alpha is ready for protocol and developer integration testing; it is not a hosted public service.

Features

  • Intent to experience: discover and recommend experience modules from the current intent and user-approved interest signals.
  • Explicit consent: before launching, issue a one-time, short-lived consent token for the chosen module; the experience starts only after the user confirms.
  • Stateful sessions: each experience runs as a short session, with continue, submit-event, and finish.
  • Extensible: add a module by dropping it into experiences/; no core changes.
  • Verifiable registry: Ed25519 module signing, trusted publishers, permission/risk display, and a version-history index.
  • Public topics foundation: public topics, optional discussion rooms, reporting, moderation, and blocking — no automatic private messaging or real-person matching.
  • Local-first: the experience web server listens on localhost only and is account-free.

Built-in modules

  • social-pulse: public topics and potential conversation directions (demo data for now; real matching and private messaging are a later phase).
  • three-minute-mystery: a three-minute text deduction game.
  • thought-garden: turn scattered ideas into a core thought, assumptions, and next steps.

Install and run

Requires Node.js 20 or newer. Node.js 22.5+ uses the built-in SQLite backend; Node.js 20 falls back to an atomic JSON document store.

npm install
npm run build

Then:

node dist/index.js

The MCP service talks over stdio and also starts a localhost-only web server and public-topics HTTP API at http://127.0.0.1:4317 by default. If the port is taken, an available port is chosen automatically and returned in the launch_experience entrypoint field; set EXPERIENCE_PORT to pin the port.

Alpha runtime settings:

EXPERIENCE_STATE_FILE=./data/experience-router.db
EXPERIENCE_TRUSTED_KEYS=./keys/trusted-keys.json
EXPERIENCE_ALLOWED_CAPABILITIES=text_game,reflection,topic_recommendation
EXPERIENCE_ISOLATE_MODULES=1
EXPERIENCE_MODULES_DIR=./experiences
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "experience-router": { "command": "node", "args": [ "C:\\path\\to\\conversational-experience-router\\dist\\index.js" ] } } }