SS

stitchai/stitch-ai-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

39 stars 6 forks 质量 56 趋势 12

该仓库包含 Stitch AI 内存管理系统的模型上下文协议(MCP)服务器实现。

概览

该仓库包含 Stitch AI 内存管理系统的模型上下文协议(MCP)服务器实现。该服务器提供创建、检索和管理 AI 代理内存的工具。 MCP服务器提供以下工具: 创建指定名称的新内存空间。- 参数:- space_name:要创建的内存空间名称- 类型:要创建的内存空间类型 删除指定名称的内存空间。- 参数:- space_name:需删除的内存空间名称 获取所有可用内存空间的列表。- 参数:无 将新内存上传到指定的内存空间。- 参数:- 空间:要上传的内存空间名称- 消息:要上传的内存消息- 内存:要上传的内存内容 通过ID从内存空间检索特定内存。- 参数:- 空间:内存空间的名称- memory_id:要检索的内存ID 从指定的内存空间检索所有记忆。

概述(AI 翻译)

人工智能去中心化知识中心

本仓库包含 Stitch AI 内存管理系统的模型上下文协议(MCP)服务器实现。该服务器提供创建、检索和管理 AI 代理内存的工具。


可用工具

MCP服务器提供以下工具:

create_space

创建一个带有指定名称的新内存空间。

  • 参数:
  • space_name:创建的内存空间名称
  • type:创建的内存空间类型

delete_space

删除指定名称的内存空间。

  • 参数:
  • space_name:需删除的内存空间名称

get_all_spaces

获得所有可用内存空间的列表。

  • 参数:无

upload_memory

将新内存上传到指定的内存空间。

  • 参数:
  • space:要上传的内存空间名称
  • message:上传的内存消息
  • memory:上传的内存内容

get_memory

通过ID从内存空间中获取特定内存。

  • 参数:
  • space:内存空间的名称
  • memory_id:要检索的内存ID

get_all_memories

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Stitch AI’s MCP Server

Decentralized Knowledge Hub for AI

This repository contains a Model Context Protocol (MCP) server implementation for Stitch AI’s memory management system. The server provides tools for creating, retrieving, and managing AI agent memories.


Available Tools

The MCP server provides the following tools:

create_space

Creates a new memory space with the specified name.

  • Parameters:
    • space_name: The name of the memory space to create
    • type: The type of memory space to create

delete_space

Deletes a memory space with the specified name.

  • Parameters:
    • space_name: The name of the memory space to delete

get_all_spaces

Gets a list of all available memory spaces.

  • Parameters: None

upload_memory

Uploads a new memory to a specified memory space.

  • Parameters:
    • space: The name of the memory space to upload to
    • message: The memory message to upload
    • memory: The memory content to upload

get_memory

Retrieves a specific memory by ID from a memory space.

  • Parameters:
    • space: The name of the memory space
    • memory_id: The ID of the memory to retrieve

get_all_memories

Retrieves all memories from a specified memory space.

  • Parameters:
    • space: The name of the memory space to retrieve memories from
    • Optional Parameters:
      • memory_names: Comma-separated list of memory names to filter
      • limit: Maximum number of memories to return (default: 50)
      • offset: Number of memories to skip (default: 0)

Run the server

npm run start

Using with Claude Desktop

  1. Clone the repository

    git clone https://github.com/StitchAI/stitch-ai-mcp.git
    
  2. Install dependencies

    npm install @modelcontextprotocol/sdk zod
    npm install -D @types/node typescript
    
  3. Install Claude for Desktop

    • Download and install the latest version from Claude’s website
  4. Configure Claude for Desktop

    • Locate your Claude for Desktop configuration file:
      • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
      • Windows: %AppData%\Claude\claude_desktop_config.json
    • Create the file if it doesn’t exist
  5. Edit Configuration File

    • Open the configuration file in a text editor:
      • macOS: code ~/Library/Application\ Support/Claude/claude_desktop_config.json
      • Windows: code $env:AppData\Claude\claude_desktop_config.json
    • Add your MCP server configuration:
{
    "mcpServers": {
        "stitchai": {
            "command": "npx",
            "args": [
                "ts-node",
在 GitHub 查看完整 README

安装

npx ts-node /path/to/cloned/stitch-ai-mcp/src/server.ts
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "stitchai": { "command": "npx", "args": [ "ts-node", "/path/to/cloned/stitch-ai-mcp/src/server.ts" ], "env": { "API_KEY": "<STITCH_AI_API_KEY>", "BASE_URL": "https://api-demo.stitch-ai.co" } } } }