bms-session-plugin 1.0.1 → 1.0.3
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/.mcp.json +1 -4
- package/package.json +1 -1
- package/skills/bms-session/SKILL.md +15 -7
package/.mcp.json
CHANGED
package/package.json
CHANGED
|
@@ -5,20 +5,28 @@ description: This skill should be used when the user asks to "query HOSxP databa
|
|
|
5
5
|
|
|
6
6
|
# BMS Session API — HOSxP Hospital Database Integration
|
|
7
7
|
|
|
8
|
-
##
|
|
9
|
-
|
|
10
|
-
Provide guidance for querying and building applications against HOSxP hospital databases using the BMS Session API. HOSxP is the most widely used hospital information system in Thailand.
|
|
8
|
+
## CRITICAL: Immediate Action Required
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
**Check if the MCP server `bms-session` is connected.** The server name in Claude Code is `plugin:bms-session-plugin:bms-session`.
|
|
13
11
|
|
|
14
|
-
If the
|
|
12
|
+
**If connected — DO NOT ask the user for a session ID.** The session is already authenticated. Start using tools immediately:
|
|
15
13
|
|
|
16
|
-
1. Read `bms://session-info` resource
|
|
14
|
+
1. Read the `bms://session-info` resource from server `plugin:bms-session-plugin:bms-session` to get database type and constraints
|
|
17
15
|
2. Use `list_tables` with a pattern filter to discover relevant tables (e.g., `list_tables({ pattern: "patient*" })`)
|
|
18
16
|
3. Use `describe_table` to understand column structure before writing queries
|
|
19
17
|
4. Use `query` to execute SQL and return results
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
**If NOT connected** — then ask the user for a `bms-session-id` and help them set up the MCP server or use the REST API directly.
|
|
20
|
+
|
|
21
|
+
## Purpose
|
|
22
|
+
|
|
23
|
+
Provide guidance for querying and building applications against HOSxP hospital databases using the BMS Session API. HOSxP is the most widely used hospital information system in Thailand.
|
|
24
|
+
|
|
25
|
+
## Using MCP Tools
|
|
26
|
+
|
|
27
|
+
Always use `LIMIT` to avoid returning excessive rows. Always use the `pattern` parameter with `list_tables` — the database has thousands of tables.
|
|
28
|
+
|
|
29
|
+
When the user asks to "analyze the database", "show patient data", "query hospital data", or similar — start working immediately by calling the MCP tools. Do not ask unnecessary questions. Use list_tables and describe_table to discover the schema, then write and execute queries.
|
|
22
30
|
|
|
23
31
|
## When MCP Server Is Not Available
|
|
24
32
|
|