Skip to content

nicholasq/libsql-context-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

A Zed extension providing a Model Context Protocol Server for LibSQL

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages