|
1 | | -kind: sources |
2 | | -name: crdb-source |
3 | | -type: cockroachdb |
4 | | -host: "${COCKROACHDB_HOST:localhost}" |
5 | | -port: "${COCKROACHDB_PORT:26257}" |
6 | | -database: "${COCKROACHDB_DATABASE:defaultdb}" |
7 | | -user: "${COCKROACHDB_USER:root}" |
8 | | -password: "${COCKROACHDB_PASSWORD:}" |
9 | | -maxRetries: 5 |
10 | | -retryBaseDelay: 500ms |
11 | | -readOnlyMode: true |
12 | | -enableWriteMode: false |
13 | | -maxRowLimit: 1000 |
14 | | -queryTimeoutSec: 30 |
15 | | -queryParams: |
16 | | - sslmode: "${COCKROACHDB_SSLMODE:require}" |
17 | | - application_name: cockroachdb-claude-plugin |
18 | | - |
19 | | ---- |
20 | | - |
21 | | -kind: tools |
22 | | -name: cockroachdb-execute-sql |
23 | | -type: cockroachdb-execute-sql |
24 | | -source: crdb-source |
25 | | -description: | |
26 | | - Execute ad-hoc SQL statements against a CockroachDB database. |
27 | | - Use this for any SQL: SELECT queries, DDL statements (CREATE, ALTER, DROP), |
28 | | - and DML statements (INSERT, UPDATE, DELETE). |
29 | | -
|
30 | | ---- |
31 | | - |
32 | | -kind: tools |
33 | | -name: cockroachdb-list-schemas |
34 | | -type: cockroachdb-list-schemas |
35 | | -source: crdb-source |
36 | | -description: | |
37 | | - List all schemas in the connected CockroachDB database. |
38 | | - Returns schema names and metadata. Use this as the first step |
39 | | - when exploring an unfamiliar database. |
40 | | -
|
41 | | ---- |
42 | | - |
43 | | -kind: tools |
44 | | -name: cockroachdb-list-tables |
45 | | -type: cockroachdb-list-tables |
46 | | -source: crdb-source |
47 | | -description: | |
48 | | - List all tables in a CockroachDB database with detailed schema information |
49 | | - including column names, data types, constraints, and indexes. |
50 | | - Use this to understand table structure before writing queries. |
51 | | -
|
52 | | -
|
| 1 | +sources: |
| 2 | + crdb-source: |
| 3 | + type: cockroachdb |
| 4 | + host: ${COCKROACHDB_HOST:localhost} |
| 5 | + port: "${COCKROACHDB_PORT:26257}" |
| 6 | + user: ${COCKROACHDB_USER:root} |
| 7 | + password: ${COCKROACHDB_PASSWORD:} |
| 8 | + database: ${COCKROACHDB_DATABASE:defaultdb} |
| 9 | + maxRetries: 5 |
| 10 | + retryBaseDelay: 500ms |
| 11 | + readOnlyMode: true |
| 12 | + enableWriteMode: false |
| 13 | + maxRowLimit: 1000 |
| 14 | + queryTimeoutSec: 30 |
| 15 | + queryParams: |
| 16 | + sslmode: ${COCKROACHDB_SSLMODE:require} |
| 17 | + application_name: cockroachdb-claude-plugin |
| 18 | + |
| 19 | +tools: |
| 20 | + cockroachdb-execute-sql: |
| 21 | + type: cockroachdb-execute-sql |
| 22 | + source: crdb-source |
| 23 | + description: | |
| 24 | + Execute ad-hoc SQL statements against a CockroachDB database. |
| 25 | + Use this for any SQL: SELECT queries, DDL statements (CREATE, ALTER, DROP), |
| 26 | + and DML statements (INSERT, UPDATE, DELETE). |
| 27 | +
|
| 28 | + cockroachdb-list-schemas: |
| 29 | + type: cockroachdb-list-schemas |
| 30 | + source: crdb-source |
| 31 | + description: | |
| 32 | + List all schemas in the connected CockroachDB database. |
| 33 | + Returns schema names and metadata. Use this as the first step |
| 34 | + when exploring an unfamiliar database. |
| 35 | +
|
| 36 | + cockroachdb-list-tables: |
| 37 | + type: cockroachdb-list-tables |
| 38 | + source: crdb-source |
| 39 | + description: | |
| 40 | + List all tables in a CockroachDB database with detailed schema information |
| 41 | + including column names, data types, constraints, and indexes. |
| 42 | + Use this to understand table structure before writing queries. |
0 commit comments