Documentation
¶
Overview ¶
Package bundle embeds the mysql-cli skill definitions (skills/*) into the binary so that `mysql-cli skill install` can install them with no external dependencies - no repo checkout, no package manager. The embedded tree is the single source of truth shared with scripts/install-skills.sh.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Skills embed.FS
Skills is the embedded skills/ directory tree.
Functions ¶
func SkillNames ¶
SkillNames returns the sorted names of the embedded skill directories.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
mysql-cli
command
|
|
|
internal
|
|
|
agents
Package agents installs bundled mysql-cli skills into AI agents in each agent's native format.
|
Package agents installs bundled mysql-cli skills into AI agents in each agent's native format. |
|
cli
Package cli wires cobra subcommands, global flags, and exit-code mapping.
|
Package cli wires cobra subcommands, global flags, and exit-code mapping. |
|
config
Package config loads named datasources from config.toml, builds a datasource from MYSQL_* environment variables (compatible with the original MCP), and resolves a final datasource with precedence: CLI overrides > env > file > default.
|
Package config loads named datasources from config.toml, builds a datasource from MYSQL_* environment variables (compatible with the original MCP), and resolves a final datasource with precedence: CLI overrides > env > file > default. |
|
conn
Package conn builds a MySQL DSN from a config.Datasource and opens a pooled *sql.DB connection.
|
Package conn builds a MySQL DSN from a config.Datasource and opens a pooled *sql.DB connection. |
|
format
Package format renders result.Result values in json/table/csv/tsv and builds the JSON success/error envelopes consumed by AI agents.
|
Package format renders result.Result values in json/table/csv/tsv and builds the JSON success/error envelopes consumed by AI agents. |
|
integration
Package integration provides integration tests that run against a real MySQL container via testcontainers-go.
|
Package integration provides integration tests that run against a real MySQL container via testcontainers-go. |
|
query
Package query executes SQL through a conn.Pool, enforcing the safety gate, single-statement rule, optional row limit, and context timeout.
|
Package query executes SQL through a conn.Pool, enforcing the safety gate, single-statement rule, optional row limit, and context timeout. |
|
repl
Package repl provides a minimal interactive shell for human debugging.
|
Package repl provides a minimal interactive shell for human debugging. |
|
result
Package result defines the shared query result type exchanged between the query/schema packages (producers) and the format/cli packages (consumers).
|
Package result defines the shared query result type exchanged between the query/schema packages (producers) and the format/cli packages (consumers). |
|
safety
Package safety classifies SQL statements, enforces the read-only/write/ddl gate, validates identifiers, detects multi-statement input, and flags destructive operations.
|
Package safety classifies SQL statements, enforces the read-only/write/ddl gate, validates identifiers, detects multi-statement input, and flags destructive operations. |
|
schema
Package schema implements the read-only exploration commands that mirror the original MCP's get_schema_info, get_table_sample, list_resources and read_resource.
|
Package schema implements the read-only exploration commands that mirror the original MCP's get_schema_info, get_table_sample, list_resources and read_resource. |
|
skillscheck
Package skillscheck compares installed mysql-cli skills (e.g.
|
Package skillscheck compares installed mysql-cli skills (e.g. |
Click to show internal directories.
Click to hide internal directories.