MCP ExplorerExplorer

Libsql Context Server

@nicholasqon 9 months ago
4 MIT
FreeCommunity
AI Systems
A Zed extension providing a Model Context Protocol Server for LibSQL

Overview

What is Libsql Context Server

libsql-context-server is a Zed extension that provides a Model Context Protocol Server for LibSQL, enabling interaction with the Zed AI assistant through slash commands.

Use cases

Use cases include retrieving database schemas, querying data from tables, and enhancing AI assistant capabilities with database context.

How to use

To use libsql-context-server, configure your Zed ‘settings.json’ with the database URL, server path, and optional auth token. Connect it to the Mcp Server LibSQL and utilize commands like ‘/libsql-schema ’ to retrieve table schemas.

Key features

Key features include integration with Zed AI, support for standard input/output transport, and commands for retrieving database schemas and querying data.

Where to use

libsql-context-server is suitable for applications that require database interactions through AI assistants, particularly in environments using LibSQL.

Content

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:

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

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers