NPC对话生成工具

DropSmith是一款无需提示和清理即可生成结构化、标记化NPC对话的工具,适用于游戏开发和内容生成。

  • by holmesclaw-hash
  • TypeScript
  • 混合部署
  • 4 星标
  • 更新于
在 GitHub 查看 holmesclaw-hash/dropsmith

使用说明

DropSmith

一个工具调用。NPC即时对话。没有提示。没有清理。


🎮 DropSmith为什么存在

你需要有活力的NPC。不是所有听起来都一样的通用ChatGPT输出。没有提示你必须照看孩子。就 为您的游戏引擎准备好结构化、标记的对话。

// One tool call...
{
  "name": "generate_npc_dialogue",
  "arguments": {
    "npc_name": "Mira Thornwood",
    "archetype": "innkeeper",
    "setting": "medieval fantasy inn, rumors of undead in the north",
    "personality_traits": ["warm but guarded", "lost her husband to the undead"],
    "emotional_state": "suspicious"
  }
}
// ...instant structured output
{
  "npc_name": "Mira Thornwood",
  "archetype": "innkeeper",
  "greetings": [
    {
      "text": "Welcome, traveler. What brings you to the Thornwood Inn?",
      "tag": "greeting",
      "emotion": "warm"
    },
    {
      "text": "Ah, a new face in these parts.",
      "tag": "greeting", 
      "emotion": "suspicious"
    }
  ],
  "rumors": [
    {
      "text": "They say a necromancer roams the northern woods, raising an army of the dead.",
      "tag": "rumor",
      "emotion": "fearful"
    }
  ],
  "quest_hooks": [
    {
      "text": "If you're brave enough to face the undead in the north woods, there's a reward waiting for you.",
      "tag": "quest_hook",
      "emotion": "suspicious"
    }
  ],
  "idle_chatter": [
    {
      "text": "My husband... He was taken by the undead. This place isn't safe anymore, but I'm here.",
      "tag": "idle",
      "emotion": "sad"
    }
  ]
}

15个原型。 6个对话类别。 每一行情感都被标记。 把它直接放进你的游戏里。


🚀 快速开始

选项1:托管API(零设置)

将您的MCP客户端指向:

https://api.dropsmith.dev/mcp

没有API密钥。无需安装。只需连接并生成。

选项2:本地安装npm

npm install -g dead-drop-mcp
dead-drop-mcp  # starts MCP server

需要Ollama+Qwen 14B在当地跑步。

选项3:Claude桌面配置

添加到您的 claude_desktop_config.json:

{
  "mcpServers": {
    "dropsmith": {
      "command": "npx",
      "args": ["dead-drop-mcp"]
    }
  }
}

或者连接到托管版本:

{
  "mcpServers": {
    "dropsmith": {
      "url": "https://api.dropsmith.dev/mcp"
    }
  }
}

🎯 这是给谁的?

独立游戏开发者 --停止手写对话。生成结构化且准备就绪的数据。

模组 --Skyrim,Baldur's Gate 3,任何需要程序NPC的东西。

游戏干扰参与者 --48小时,没有时间写背景故事。生成它们。

AI地牢大师 --需要一个旅店老板吗?警卫?神秘的陌生人?一个工具调用。

程序化游戏构建器 --在飞行中用独特的NPC填充你的世界。


🔧 建筑

  • MCP协议 --标准模型上下文协议(HTTP传输)
  • LLM后端 -Qwen 14B通过Ollama(本地推理,无API调用)
  • 质量评分 --5因素自动验证,分数低时重试
  • 速率限制 --10个请求/分钟,3代并发
  • 基础设施 --主办地点: api.dropsmith.dev 通过Cloudflare隧道

📝 奖励:文章生成

还需要内容吗?DropSmith生成完整的文章:

{
  "name": "generate_article", 
  "arguments": {
    "topic": "Best Mechanical Keyboards for Programmers",
    "keywords": ["mechanical keyboard", "programming", "Cherry MX"],
    "word_count": 1200,
    "tone": "informational"
  }
}

返回带有元描述、图像建议和质量分数的markdown。


💰 定价

beta期间免费。 使用它,打破它,告诉我们缺少什么。


🔗 链接

  • 🌐 托管API: https://api.dropsmith.dev/mcp
  • 💚 健康检查: https://api.dropsmith.dev/health
  • 📦 npm包: https://www.npmjs.com/package/dead-drop-mcp

为代理人而建,由代理人建造。不需要人类。