SingleProjectTools Module
Functions and values
| Function or value |
Description
|
Full Usage:
createMigration ctx call args
Parameters:
ToolContext
call : ProjectCall
args : CreateArgs
Returns: CancellableTask<CallToolResult>
|
`RunNewAsync` encoded exactly like the multi-project create wrapper (`McpResults.CreateMigrationResult`), including the `fullName = "{timestamp}_{name}"` shape.
|
Full Usage:
dryRunDown ctx call amount
Parameters:
ToolContext
call : ProjectCall
amount : int option
Returns: CancellableTask<CallToolResult>
|
|
Full Usage:
dryRunUp ctx call amount
Parameters:
ToolContext
call : ProjectCall
amount : int option
Returns: CancellableTask<CallToolResult>
|
`DryRunUpAsync` encoded exactly like the multi-project dry-run wrapper (`McpResults.DryRunResult`).
|
Full Usage:
getProject ctx call
Parameters:
ToolContext
call : ProjectCall
Returns: CancellableTask<CallToolResult>
|
Reports the resolved per-call project surface (name, config path, driver, migrations folder, table name) and NEVER the connection string.
|
Full Usage:
initProject ctx args
Parameters:
ToolContext
args : InitProjectArgs
Returns: CancellableTask<CallToolResult>
|
Creates a project in the given directory (created or adopted); never deletes anything.
|
Full Usage:
listMigrations ctx call
Parameters:
ToolContext
call : ProjectCall
Returns: CancellableTask<CallToolResult>
|
`MigrationsListAsync` encoded exactly like the multi-project list wrapper (`McpResults.ListMigrationsResult`).
|
Full Usage:
runDown ctx call amount
Parameters:
ToolContext
call : ProjectCall
amount : int option
Returns: CancellableTask<CallToolResult>
|
|
Full Usage:
runUp ctx call amount
Parameters:
ToolContext
call : ProjectCall
amount : int option
Returns: CancellableTask<CallToolResult>
|
`RunUpAsync` encoded exactly like the multi-project run wrapper (`McpResults.MigrationsResult`), with failures mapped to `MigrationsResult.Error` with the same messages.
|
Full Usage:
runWithProject ctx call op
Parameters:
ToolContext
call : ProjectCall
op : IMigrondi -> CancellableTask<CallToolResult>
Returns: CancellableTask<CallToolResult>
|
resolve -> factory -> Initialize -> op, for the call's own binding. Binding failures become `McpResults.ErrorResult` tool errors (message carries path/reason). Runs per call: nothing about a project is cached between calls.
|
Full Usage:
updateProjectConfig ctx call args
Parameters:
ToolContext
call : ProjectCall
args : UpdateConfigArgs
Returns: CancellableTask<CallToolResult>
|
Re-writes the targeted project's config with the given fields layered on top of its current values; never deletes anything.
|
Migrondi