Skip to content

Type to search extensions

Libsql Context Server

v0.0.1

Model Context Protocol Server for Libsql

Updated 1 year ago
55k downloads 5 stars Repository ↗

Libsql Context Server

This extension provides a connection to a Model Context Server for Libsql, for use with the Zed AI assistant. It will add prompts from the connected server as slash commands to the Assistant Panel.

Note: This extension does not install a libsql model context server. You will need to provide your own. Here is a link to one: Mcp Server LibSQL

This extension assumes you are using a Model Context Server in stdio transport. It also assumes that the Model Context Server receives these arguments: <libsql-url> --auth-token <your-libsql-db-token> (--auth-token is optional if database is local)

Configuration

Your Zed settings.json:

{
  "context_servers": {
    "libsql-context-server": {
      "settings": {
        "database_url": "libsql://db-name-user.turso.io",
        "server_path": "/path/to/libsql-server",
        "auth_token": "my_auth_token" // optional if running a local libsql instance
      }
    }
  }
}

Usage

Assuming you have Mcp Server LibSQL connected to this extension:

  • /libsql-schema <table-name>: Retrieve the schema for the table with the given name.
  • /libsql-schema all-tables: Retrieve the schemas for all tables in the database.
  • /libsql-query <table-name>: Retrieve all rows from the table with the given name(actually it only pulls max 500 rows for now).
ZedExt An unofficial community project. Not affiliated with Zed Industries.

Data from Zed’s extension registry and GitHub · updated