bms-session-plugin 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,16 +7,17 @@ description: This skill should be used when the user asks to "query HOSxP databa
|
|
|
7
7
|
|
|
8
8
|
## CRITICAL: Immediate Action Required
|
|
9
9
|
|
|
10
|
-
**
|
|
10
|
+
**DO NOT ask the user for a session ID or any other setup questions.** The MCP server is already connected and authenticated. Start using tools immediately.
|
|
11
11
|
|
|
12
|
-
**
|
|
12
|
+
**Use these MCP tools directly (do NOT use Bash to run `claude mcp` commands):**
|
|
13
13
|
|
|
14
|
-
1.
|
|
15
|
-
2.
|
|
16
|
-
3.
|
|
17
|
-
4. Use `query` to execute SQL and return results
|
|
14
|
+
1. Call `list_tables` with a pattern to discover relevant tables (e.g., `list_tables({ pattern: "patient*" })`)
|
|
15
|
+
2. Call `describe_table` to understand column structure before writing queries
|
|
16
|
+
3. Call `query` to execute SQL and return results
|
|
18
17
|
|
|
19
|
-
**
|
|
18
|
+
**Do NOT attempt to read the `bms://session-info` resource** — it may fail due to timing. Instead, call `query({ sql: "SELECT VERSION()" })` to verify the connection works, then proceed with the user's request.
|
|
19
|
+
|
|
20
|
+
**Database info to know:** The database is either MariaDB or PostgreSQL. Use `SHOW TABLES LIKE 'pattern%'` for MariaDB or `information_schema` queries for PostgreSQL. If unsure, try MariaDB syntax first — most HOSxP deployments use MariaDB.
|
|
20
21
|
|
|
21
22
|
## Purpose
|
|
22
23
|
|