Skip to main content
Glama
dy-mcp-demo (dy-mcp)

dy-mcp-demo (dy-mcp)

by dyuhaus

dy-mcp-demo

dy-mcp 的公开、无需身份验证的演示 —— 一个 MCP 个人上下文服务器。让你无需安装或配置任何东西,即可尝试服务器公开的所有工具。

在线地址: https://demo-mcp.dyuhaus.com

  • 在浏览器中打开该 URL 以查看编辑风格的 Web 配套界面。

  • 或者将任何支持 MCP 的客户端(Claude Desktop、Claude Code 等)指向 https://demo-mcp.dyuhaus.com/mcp —— 无需身份验证头。

数据是虚构的(一位名叫“Alex Quinn”的虚构作家兼开发者),整个数据库每小时重置一次,所以请随意创建、编辑或删除任何内容。你不会弄坏它的。

关于此演示所克隆的真实、受密码保护的服务器,请参阅 dyuhaus/dy-mcp。

与 dy-mcp 有什么相同之处?

所有与 MCP 协议和数据模型相关的内容:

  • 六种类型化上下文:project、idea、preference、writing_style、skill、general。

  • 全部 12 个工具:get_personal_context、list_contexts、get_context、 add_context、update_context、delete_context、search_contexts、 import_project、import_project_section、list_project_files、 get_project_file、delete_project_file。

  • context:// 下的所有 7 个资源。

  • 相同的 SQLite 模式、相同的存储代码、相同的导入器、相同的 HTTP 路由。

Related MCP server: MCP Personal Tools Server

有什么不同?

  • 无身份验证。 /auth/*、/oauth/*、/.well-known/*、会话 cookie、 密码引导 —— 全部移除。/mcp 是开放的。Web UI 直接启动进入仪表板。

  • 每小时重置。 定时任务会清除数据库并使用虚构角色重新填充(参见 scripts/seed.ts)。

  • 默认端口为 7879,因此它可以与同一台机器上的主 dy-mcp 同时运行。

  • Web 侧边栏显示“PUBLIC DEMO” 和“每小时重置”的提示。

从 MCP 客户端尝试

Claude Code

claude mcp add --transport http dy-mcp-demo https://demo-mcp.dyuhaus.com/mcp

Claude Desktop / 任何配置文件客户端

{
  "mcpServers": {
    "dy-mcp-demo": {
      "transport": "http",
      "url": "https://demo-mcp.dyuhaus.com/mcp"
    }
  }
}

curl

# list all tools
curl -sS -X POST https://demo-mcp.dyuhaus.com/mcp \
  -H "content-type: application/json" \
  -H "accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

# call a tool
curl -sS -X POST https://demo-mcp.dyuhaus.com/mcp \
  -H "content-type: application/json" \
  -H "accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_personal_context","arguments":{}}}'

在本地运行演示

npm install
npm run build
npm run seed       # wipe + reseed the demo DB
npm run web:build
npm run start:api  # http://localhost:7879

Web UI 与 API 在同一端口上提供服务。

开发循环:

npm run dev:api    # backend with tsx watch
npm run web:dev    # vite dev server on :5173

HTTP 端点

方法

路径

正文 / 查询

GET

/health

返回 { ok, demo: true, resets_every_minutes, counts }

GET

/contexts

?type=&tag=&parent_id=&limit=&offset=

POST

/contexts

{ type, title, content?, tags?, metadata?, parent_id? }

GET

/contexts/:id

—

PATCH

/contexts/:id

添加正文的任何子集

DELETE

/contexts/:id

—

GET

/search

?q=&type=&limit=

GET

/activity

?limit= — 内存环形缓冲区,500 条记录,最新优先

GET

/export

完整有效负载快照

GET

/tools

工具 + 资源目录(驱动 /Tools 页面)

GET

/contexts/:id/files

?section=

GET

/files/:id

—

DELETE

/files/:id

—

POST

/import/project

{ path, name?, description?, tags?, include_content?, … }

POST

/import/section

{ path, section_name, parent_project_id?, … }

POST

/mcp

基于流式 HTTP 的 MCP(无状态,单次往返)

托管

随附的 scripts/install-demo-task.ps1 会注册两个 Windows 定时任务:

  1. dy-mcp-demo-api — 在启动时运行构建好的服务器(端口 :7879)。

  2. dy-mcp-demo-reset — 通过 tsx 每小时运行一次 scripts/seed.ts。

将 Cloudflare 隧道指向 http://localhost:7879(使用你选择的主机名)。具体命令请参阅 CLAUDE.md。

环境变量

变量

默认值

DY_MCP_DB_PATH

~/.dy-mcp-demo/context.db

DY_MCP_API_PORT

7879

DY_MCP_API_ORIGIN

*

DY_MCP_DEMO_RESET_MIN

60 (信息性)

DY_MCP_WEB_DIST

<repo>/web/dist

VITE_API_BASE_URL

(同源)

许可证

MIT。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A demonstration server showing MCP implementation in Python with resource handling, tool operations, and reusable prompts for a simple user/post system with local database.
      -
    • A
      license
      C
      quality
      C
      maintenance
      A demonstration Model Context Protocol server that includes a web-based interface for managing persistent configurations. It provides foundational tools for greeting, echoing input, and retrieving or updating server settings through MCP.
      5
      MIT