mr-magic-mcp-server 0.1.7 → 0.1.8

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mr-magic-mcp-server",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Lyrics MCP server connecting LRCLIB, Genius, Musixmatch, and Melon",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -13,6 +13,7 @@ import { mcpToolDefinitions, handleMcpTool } from './mcp-tools.js';
13
13
  import { buildMcpResponse } from './mcp-response.js';
14
14
  import { logTokenStatus } from './token-startup-log.js';
15
15
  import { normalizeToolArgs } from './tool-args.js';
16
+ import { getProviderStatus } from '../index.js';
16
17
 
17
18
  function getBodyShape(body) {
18
19
  if (body == null) return 'nullish';
@@ -91,6 +92,10 @@ export async function startMcpHttpServer(options = {}) {
91
92
  await logTokenStatus({ context: 'http-mcp' });
92
93
 
93
94
  const app = createMcpExpressApp({ host });
95
+ app.get('/health', async (_req, res) => {
96
+ res.json({ status: 'ok', providers: await getProviderStatus() });
97
+ });
98
+
94
99
  app.all('/mcp', async (req, res) => {
95
100
  const normalizedBody = normalizeIncomingRpcBody(req.body);
96
101
  const requestId = randomUUID();