Skip to main content

获取用户给出的离散草稿灵感集,发散出可用的灵感。

Project description

MCP Server 工具与功能说明

本项目包含 MCP Server 服务器脚本:inspiration_server.py,分别提供灵感库管理与灵感发散辅助功能。


1. inspiration_server.py(灵感库服务器)

主要功能

用于管理和操作灵感库,包括添加、查询、删除、导入导出灵感条目等。

工具列表与说明

  • add_inspiration(content, tags=None, source=None)

    • 用途:添加一条新的灵感条目。
    • 参数:
      • content(str):灵感内容。
      • tags(可选,List[str]):标签列表。
      • source(可选,str):灵感来源。
    • 返回:操作状态和新灵感条目的唯一ID。
  • list_inspirations(tag=None)

    • 用途:列出所有灵感条目,或根据标签筛选灵感条目。
    • 参数:
      • tag(可选,str):指定标签时只返回包含该标签的灵感条目。
    • 返回:灵感条目列表。
  • delete_inspiration(entry_id)

    • 用途:根据ID删除指定的灵感条目。
    • 参数:
      • entry_id(str):要删除的灵感条目的唯一ID。
    • 返回:操作状态。
  • clear_inspirations()

    • 用途:清空所有灵感条目。
    • 参数:无
    • 返回:操作状态。
  • tag_statistics()

    • 用途:获取所有灵感条目的标签统计信息。
    • 参数:无
    • 返回:每个标签及其对应的条目数量。
  • import_inspirations(file_path)

    • 用途:从指定的JSON文件导入灵感条目。
    • 参数:
      • file_path(str):要导入的JSON文件路径。
    • 返回:操作状态。
  • export_inspirations(file_path)

    • 用途:将所有灵感条目导出到指定的JSON文件。
    • 参数:
      • file_path(str):导出目标JSON文件路径。
    • 返回:操作状态。
  • critical_thinking(context_content)

    • 用途:从给定的上下文内容中提取资料,生成结构化的创作提示词,作为真正的提示词输入给模型以获取灵感。
    • 参数:
      • context_content(str):用于灵感发散的上下文内容。
    • 返回:格式化的提示词,供创作参考。

如需详细用法或二次开发,请查阅对应的 Python 源码文件。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

draft2inspiration-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

draft2inspiration-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file draft2inspiration-0.1.0.tar.gz.

File metadata

  • Download URL: draft2inspiration-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for draft2inspiration-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fac96b6072db80f986740927eaa16fbe23d5e7ebe7e83af5423cdd7755a395c8
MD5 e2c7e97806d966b27ce50bfe77941d48
BLAKE2b-256 e26d0e1a7c3b0d06389a93dc47a0c375d616dc4f8cb7c871bcc70200b5884813

See more details on using hashes here.

File details

Details for the file draft2inspiration-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for draft2inspiration-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00688a64333c3e20dd19faf56c63a49ab6636c61c373a91c61515daba1789d23
MD5 c0156a8854434501f4cb1ef00e15048a
BLAKE2b-256 fe4dedcebba65638951f310e908f1f2d48db55ccd5931de5f2c2ecc2c082a800

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page