@mcpflow.io/mcp-model-context-protocol-and-fireproof-demo-json-document-server v1.0.1
Model Context Protocol and Fireproof Demo: JSON Document Server
此包由 MCPFlow 打包并发布到npm仓库。
从LLM工具中存储和加载JSON文档
安装与使用
直接使用npx运行:
npx @mcpflow.io/mcp-model-context-protocol-and-fireproof-demo-json-document-server或者先安装后使用:
# 安装
npm install @mcpflow.io/mcp-model-context-protocol-and-fireproof-demo-json-document-server
# 使用
npx @mcpflow.io/mcp-model-context-protocol-and-fireproof-demo-json-document-server使用方法
Installation
Install dependencies:
npm install
npm build工具函数
save_json_doc
Saves a JSON document to the database.
参数:
doc: The JSON document to save.
delete_json_doc
Deletes a JSON document from the database by its ID.
参数:
id: The ID of the document to delete.
load_json_doc
Loads a JSON document from the database by its ID.
参数:
id: The ID of the document to load.
query_json_docs
Queries JSON documents from the database, sorted by a specified field.
参数:
sort_field: The field to sort the results by.
原始信息
- 开发者: fireproof-storage
- 版本: 1.0.0
- 许可证: Other
- 原始仓库: fireproof-storage/mcp-database-server
原始README
Model Context Protocol and Fireproof Demo: JSON Document Server
This is a simple example of how to use a Fireproof database in a Model Context Protocol server (used for plugging code and data into A.I. systems such as Claude Desktop).
This demo server implements a basic JSON document store with CRUD operations (Create, Read, Update, Delete) and the ability to query documents sorted by any field.
Installation
Install dependencies:
npm install
npm buildRunning the Server
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"fireproof": {
"command": "/path/to/fireproof-mcp/build/index.js"
}
}
}Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.