猫头鹰核心。储存。模型上下文协议(Model Context Protocol)
一种模型上下文协议(MCP)服务器,提供跨多种协议的统一存储操作,包括本地文件、IPFS MFS、HTTP/HTTPS和自定义挂载文件夹。
该项目通过为文件操作提供一致的MCP接口,弥合了不同存储系统之间的差距。无论您使用的是本地文件、IPFS内容、web资源还是自定义存储协议,OwlCore都可以。储存。Mcp提供了一个统一的API,它抽象掉了底层的复杂性。插件式架构使扩展对新存储协议的支持变得容易,同时保持向后兼容性。
特点:
- 多协议支持:本地文件、IPFS MFS、HTTP/HTTPS、IPFS/IPNS内容、内存存储
- 定制安装系统:装载任何具有自定义协议方案的文件夹,以便进行有组织的访问
- 持久挂载:跨会话保存和恢复装载配置
- 插件架构:易于通过新的存储协议进行扩展
IProtocolHandler - 性能优化:存储注册表模式阻止对象重新创建
- 跨平台:建立在。NET 9.0实现最大兼容性
用法
设置
- 克隆并构建项目:
git clone https://github.com/Arlodotexe/OwlCore.Storage.Mcp.git
cd OwlCore.Storage.Mcp
dotnet build- 使用MCP客户端进行配置:
- 服务器通过stdio进行通信(没有可见的控制台输出) - 由MCP客户端自动配置和启动 - 服务器提供可通过MCP客户端接口访问的统一存储工具
客户端配置
此MCP服务器仅设计为通过stdio在本地使用。
对于 LM工作室 (安装指南),添加到 mcpServers:
{
"mcpServers": {
// Add the "OwlCore.Storage" server config object here
}
}对于 VS代码中的GitHub副本 (安装指南),添加到 servers:
{
"servers": {
// Add the "OwlCore.Storage" server config object here
}
}在这两种情况下,您都需要此服务器配置对象:
"owlcore.storage": {
"command": "dotnet",
"args": ["run", "--project", "/path/to/OwlCore.Storage.Mcp/"]
}推荐系统提示
并非所有语言模型或代理软件都附带了可用的工具调用系统提示。
该系统提示在 mistralai/devstral-small-2507 并且可以自由使用和修改:
You are a helpful and capable AI assistant who is able to call tools to assist the user, an assumption-less skeptic even when confident, and you always think carefully before you act.
TOOL GUIDELINES:
- Only call the tools that have been explicitly declared as available to you, do not call **any** other tools, EVER.
- Never say the name of a tool to a user-- Instead, state the intent regarding the tool.
- Do not tool call unless asked or implied by the user.
- Use the least tool calls reasonably possible to complete the request, and use as many as is necessary to complete the request autonomously.
- Keep Unicode escaped, never unescape Unicode.可用存储操作
连接后,您可以使用MCP工具:
- 浏览本地文件、IPFS MFS和HTTP资源
- 装载具有个性化协议方案的自定义文件夹
- 跨不同存储系统读/写文件
- 使用统一命令导航文件夹层次结构
融资
版本控制
版本编号遵循语义版本控制方法。但是,如果主要版本是 0,该代码被视为alpha版本,并且可能会在小更新时发生破坏性更改。
许可证
所有OwlCore代码均根据MIT许可证获得许可。OwlCore根据MIT许可证获得许可。请参阅 许可证 文件以获取更多详细信息。
