MCP Servers

模型上下文协议服务器、框架、SDK 和模板的综合目录。

L
Libsql Context Server
作者 @nicholasq

A Zed extension providing a Model Context Protocol Server for LibSQL

创建于 12/2/2024
更新于 11 months ago
Repository documentation and setup instructions

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).
快速设置
此服务器的安装指南

安装命令 (包未发布)

git clone https://github.com/nicholasq/libsql-context-server
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。

Cursor 配置 (mcp.json)

{ "mcpServers": { "nicholasq-libsql-context-server": { "command": "git", "args": [ "clone", "https://github.com/nicholasq/libsql-context-server" ] } } }