Skip to main content
Glama
hyperspell

hyperspell-mcp

Official
by hyperspell

Add Memory

Store plain text documents or memories in Hyperspell to connect AI applications with unstructured and semi-structured data sources.

Instructions

Add a plain text document or memory to Hyperspell.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
titleNo

Implementation Reference

  • The handler function that implements the 'Add Memory' tool logic by adding a plain text document to Hyperspell via the API and returning the status.
    def add_memory(text: str, title: str | None = None) -> DocumentStatus: """Add a plain text document or memory to Hyperspell.""" r = mcp.api.documents.add( text=text, collection=mcp.config.collection, title=title, source="mcp" ) return DocumentStatus.from_pydantic(r)
  • Registers the add_memory function as the MCP tool named 'Add Memory' using the @mcp.tool decorator.
    @mcp.tool( name="Add Memory", description="Add a plain text document or memory to Hyperspell.", )
  • Dataclass model defining the output schema for the 'Add Memory' tool (DocumentStatus).
    class DocumentStatus(BaseModel): id: int status: str collection: str

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hyperspell/hyperspell-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server