safe-migrations-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SAFE_MIGRATIONS_HOME | No | Override the default state directory (~/.safe-migrations-mcp/) with this path. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| inspect_schemaA | Inspect a database or ORM schema file. connection examples:
Results are cached locally for 60s unless refresh=True. |
| inspect_configC | Parse and summarize a config file (YAML/JSON/.env/Prisma/TOML/text). |
| propose_migration_or_editA | Propose a DB migration OR a config edit. Returns a proposal_id you pass to apply_change. Args:
kind: 'db' or 'config'
connection: (db) connection string or schema-file path
request: (db) natural-language intent, e.g. "add column email of type TEXT not null default '' to users"
sql: (db) raw SQL — takes priority over Nothing is written. Call simulate_impact(proposal_id) next, then apply_change with the one-time confirmation_token returned by the simulation step. |
| simulate_impactA | Dry-run a proposal. DB proposals execute inside a rolled-back transaction to surface errors and count affected rows. Config proposals show full diff + key delta. All results include risk flags and whether explicit confirmation is required. |
| generate_rollbackA | Produce exact undo SQL (for DB proposals) or a restore plan (for config). Either pass an existing proposal_id, or pass raw |
| apply_changeA | Apply a proposal. Requires the one-time confirmation token from simulate_impact. Before writing, snapshots the affected file (configs) or the SQLite file, then executes inside a transaction where possible. Logs an audit entry. |
| get_change_historyC | Return the audit log of applied changes (most recent last). |
| cleanup_stateB | Prune old proposal metadata, secret payloads, and snapshots from local state. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/possibly6/safe-migrations-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server