Skip to main content
Glama
hyperspell

hyperspell-mcp

Official
by hyperspell

Add File

Add files or websites from URLs to Hyperspell for connecting AI applications to unstructured and semi-structured data.

Instructions

Add a file or website from a URL to Hyperspell.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Implementation Reference

  • Registration of the 'Add File' tool using the @mcp.tool decorator.
    @mcp.tool( name="Add File", description="Add a file or website from a URL to Hyperspell." )
  • The handler function that executes the tool logic by adding the URL to Hyperspell via the API.
    def add_file(url: str) -> DocumentStatus: """Add a file or URL to Hyperspell.""" r = mcp.api.documents.add_url(url=url, collection=mcp.config.collection) return DocumentStatus.from_pydantic(r)
  • Dataclass defining the output schema (DocumentStatus) returned by the tool.
    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