@spences10/pi-sqlite-tools
Pi extension that reminds the model to prefer mcp-sqlite-tools for SQLite database work
Package details
Install @spences10/pi-sqlite-tools from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@spences10/pi-sqlite-tools- Package
@spences10/pi-sqlite-tools- Version
0.0.5- Published
- May 4, 2026
- Downloads
- 663/mo · 614/wk
- Author
- spences10
- License
- MIT
- Types
- extension
- Size
- 9.6 KB
- Dependencies
- 1 dependency · 0 peers
Pi manifest JSON
{
"extensions": [
"./dist/index.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@spences10/pi-sqlite-tools
Pi extension that reminds the model to prefer mcp-sqlite-tools for
SQLite database work instead of raw sqlite3 shell commands. It does
not start or duplicate the MCP server; it only injects workflow
guidance when SQLite MCP tools are available.
Maintained in the my-pi Vite+ workspace and tested with Vitest.
Installation
pi install npm:@spences10/pi-sqlite-tools
Local development from this monorepo:
pnpm --filter @spences10/pi-sqlite-tools run build
pi install ./packages/pi-sqlite-tools
# or for one run only
pi -e ./packages/pi-sqlite-tools
What it does
The extension injects a system reminder telling the model to use
mcp-sqlite-tools when working with SQLite files such as:
.db.sqlite.sqlite3
It encourages the safer MCP workflow:
- open databases with
open_database - inspect structure with
database_info,list_tables,describe_table, andexport_schema - run reads with
execute_read_query - back up and use transactions before writes or schema changes
- close databases when finished
It adds no slash commands and no custom tools.
Example MCP config
mcp-sqlite-tools must be configured separately, for example in
~/.pi/agent/mcp.json:
{
"mcpServers": {
"mcp-sqlite-tools": {
"command": "npx",
"args": ["-y", "mcp-sqlite-tools"]
}
}
}
Using from a custom harness
import sqliteTools from '@spences10/pi-sqlite-tools';
// pass `sqliteTools` as an ExtensionFactory to your Pi runtime
my-pi imports this package directly and enables it as the built-in
SQLite tools reminder.
Development
pnpm --filter @spences10/pi-sqlite-tools run check
pnpm --filter @spences10/pi-sqlite-tools run test
pnpm --filter @spences10/pi-sqlite-tools run build
License
MIT