drizzle-mcp 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,13 @@
1
1
  # drizzle-mcp
2
2
 
3
+ [![Drizzle MCP server](https://mcprush.com/badge/drizzle-mcp/card.svg)](https://mcprush.com/to/drizzle-mcp?ref=badge)
4
+
3
5
  Drizzle Studio for agents. An [MCP](https://modelcontextprotocol.io) server that lets Claude Code, Cursor and other coding agents see your database through your Drizzle schema.
4
6
 
5
7
  A generic database MCP sees tables and columns. This one reads the schema your code uses: TypeScript names next to SQL names, relations, enums and defaults. An agent can then answer "what's actually in the database?" and write Drizzle code that matches it.
6
8
 
9
+ If it's useful to you, a [star on GitHub](https://github.com/fredobumma/drizzle-mcp) helps other people find it. Questions, bug reports and ideas are welcome in the [issues](https://github.com/fredobumma/drizzle-mcp/issues), and so are pull requests.
10
+
7
11
  Here is what an agent gets back when it asks about a `posts` table:
8
12
 
9
13
  ```text
@@ -118,6 +122,8 @@ pnpm check # types, lint and 145 tests
118
122
 
119
123
  The tests run every tool against every driver. Postgres runs as [PGlite](https://pglite.dev), which is real Postgres compiled to WebAssembly. `pg` and `postgres.js` reach it over the Postgres wire protocol, so no Docker is needed.
120
124
 
125
+ Pull requests are welcome. Run `pnpm check` before opening one, and for anything large, open an issue first so we can agree on the approach.
126
+
121
127
  ## License
122
128
 
123
129
  MIT
package/dist/server.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
6
6
  import { type DriverName } from './database.js';
7
7
  import { type LoadOptions } from './project.js';
8
- export declare const VERSION = "0.1.1";
8
+ export declare const VERSION = "0.1.2";
9
9
  export interface ServerOptions extends LoadOptions {
10
10
  /** A connection string or file that overrides the config's `dbCredentials`. */
11
11
  url?: string;
package/dist/server.js CHANGED
@@ -12,7 +12,7 @@ import { DEFAULT_REDACT, describeSchema, describeTable, isSecret, markdownTable,
12
12
  import { describeMigrations, migrationStatus } from './migrations.js';
13
13
  import { findColumn, findTable, readSchema } from './model.js';
14
14
  import { loadProject } from './project.js';
15
- export const VERSION = '0.1.1';
15
+ export const VERSION = '0.1.2';
16
16
  const INSTRUCTIONS = `This server shows the project's database through its Drizzle schema, like Drizzle Studio.
17
17
 
18
18
  Start with \`schema\` to see the tables, then \`schema\` with a table for its columns and relations. Tables and columns can be named by their TypeScript key (createdAt) or SQL name (created_at); results use TypeScript keys, as \`db.query\` does.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Drizzle Studio for agents: an MCP server that lets Claude Code, Cursor and other agents explore your database through your Drizzle schema.",
5
5
  "keywords": [
6
6
  "drizzle",
package/src/server.ts CHANGED
@@ -23,7 +23,7 @@ import { describeMigrations, migrationStatus } from './migrations.js';
23
23
  import { findColumn, findTable, readSchema, type SchemaModel, type TableModel } from './model.js';
24
24
  import { type LoadOptions, loadProject, type Project } from './project.js';
25
25
 
26
- export const VERSION = '0.1.1';
26
+ export const VERSION = '0.1.2';
27
27
 
28
28
  export interface ServerOptions extends LoadOptions {
29
29
  /** A connection string or file that overrides the config's `dbCredentials`. */