@omophub/omophub-mcp 1.2.0 → 1.2.2
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/README.md +5 -5
- package/dist/utils/auth.js +1 -1
- package/dist/utils/errors.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ Claude: Found it - E11.9 (Type 2 diabetes mellitus without complications)
|
|
|
50
50
|
|
|
51
51
|
### 1. Get an API Key
|
|
52
52
|
|
|
53
|
-
Sign up at [omophub.com](https://omophub.com) → create an API key in your [dashboard](https://omophub.com/
|
|
53
|
+
Sign up at [omophub.com](https://omophub.com) → create an API key in your [dashboard](https://dashboard.omophub.com/api-keys).
|
|
54
54
|
|
|
55
55
|
### 2. Add to Your AI Client
|
|
56
56
|
|
|
@@ -256,7 +256,7 @@ In **HTTP mode**, the health endpoint is available at `/health` on the same port
|
|
|
256
256
|
```bash
|
|
257
257
|
npx @omophub/omophub-mcp --transport=http --port=3100 --api-key=oh_your_key
|
|
258
258
|
curl http://localhost:3100/health
|
|
259
|
-
# → {"status":"ok","version":"1.2.
|
|
259
|
+
# → {"status":"ok","version":"1.2.2","uptime_seconds":42}
|
|
260
260
|
```
|
|
261
261
|
|
|
262
262
|
In **stdio mode**, use `--health-port` for a standalone health endpoint:
|
|
@@ -293,8 +293,8 @@ OMOPHUB_API_KEY=oh_your_key npx tsx src/index.ts
|
|
|
293
293
|
| Error | Solution |
|
|
294
294
|
| :--- | :--- |
|
|
295
295
|
| `API key required` | Set `OMOPHUB_API_KEY` in your environment or MCP config |
|
|
296
|
-
| `Authentication failed` | API key may be invalid or expired - [generate a new one](https://omophub.com/
|
|
297
|
-
| `Rate limit exceeded` | Automatic retries are built in. For higher limits, [upgrade your plan](https://omophub.com/
|
|
296
|
+
| `Authentication failed` | API key may be invalid or expired - [generate a new one](https://dashboard.omophub.com/api-keys) |
|
|
297
|
+
| `Rate limit exceeded` | Automatic retries are built in. For higher limits, [upgrade your plan](https://dashboard.omophub.com/billing) |
|
|
298
298
|
| Tools not appearing | Restart your AI client, verify `npx @omophub/omophub-mcp` runs without errors, check config path |
|
|
299
299
|
|
|
300
300
|
---
|
|
@@ -302,7 +302,7 @@ OMOPHUB_API_KEY=oh_your_key npx tsx src/index.ts
|
|
|
302
302
|
## Links
|
|
303
303
|
|
|
304
304
|
- [Documentation](https://docs.omophub.com)
|
|
305
|
-
- [Get an API Key](https://omophub.com/
|
|
305
|
+
- [Get an API Key](https://dashboard.omophub.com/api-keys)
|
|
306
306
|
- [Python SDK](https://github.com/OMOPHub/omophub-python)
|
|
307
307
|
- [Community & Support](https://github.com/OMOPHub/omophub-mcp/issues)
|
|
308
308
|
|
package/dist/utils/auth.js
CHANGED
|
@@ -2,7 +2,7 @@ export function resolveApiKey(cliKey) {
|
|
|
2
2
|
const key = cliKey || process.env.OMOPHUB_API_KEY;
|
|
3
3
|
if (!key) {
|
|
4
4
|
throw new Error('OMOPHub API key required. Set OMOPHUB_API_KEY environment variable or pass --api-key=KEY.\n' +
|
|
5
|
-
'Get your free API key at: https://omophub.com/
|
|
5
|
+
'Get your free API key at: https://dashboard.omophub.com/api-keys');
|
|
6
6
|
}
|
|
7
7
|
return key;
|
|
8
8
|
}
|
package/dist/utils/errors.js
CHANGED
|
@@ -8,8 +8,8 @@ export class OmopHubApiError extends Error {
|
|
|
8
8
|
this.name = 'OmopHubApiError';
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
const UPGRADE_URL = 'https://omophub.com/
|
|
12
|
-
const API_KEYS_URL = 'https://omophub.com/
|
|
11
|
+
const UPGRADE_URL = 'https://dashboard.omophub.com/billing';
|
|
12
|
+
const API_KEYS_URL = 'https://dashboard.omophub.com/api-keys';
|
|
13
13
|
export function formatErrorForMcp(error, toolName) {
|
|
14
14
|
if (error instanceof OmopHubApiError) {
|
|
15
15
|
switch (error.status) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omophub/omophub-mcp",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"mcpName": "io.github.OMOPHub/omophub-mcp",
|
|
5
5
|
"description": "MCP server for OHDSI OMOP standardized medical vocabularies — search, lookup, map, and navigate concepts via AI agents",
|
|
6
6
|
"type": "module",
|