@thehammer/schema-mcp-server 1.0.0 → 1.0.1
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/dist/index.js +4 -1
- package/package.json +12 -2
package/dist/index.js
CHANGED
|
@@ -14,13 +14,16 @@
|
|
|
14
14
|
* SCHEMA_API_TOKEN - Bearer token for SchemaMcpAuthMiddleware
|
|
15
15
|
* SCHEMA_DEFINITION_ID - ID of the schema being built
|
|
16
16
|
*/
|
|
17
|
+
import { createRequire } from "node:module";
|
|
17
18
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
18
19
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
19
20
|
import { z } from "zod";
|
|
20
21
|
import * as api from "./api-client.js";
|
|
22
|
+
const require = createRequire(import.meta.url);
|
|
23
|
+
const pkg = require("../package.json");
|
|
21
24
|
const server = new McpServer({
|
|
22
25
|
name: "schema-mcp-server",
|
|
23
|
-
version:
|
|
26
|
+
version: pkg.version,
|
|
24
27
|
});
|
|
25
28
|
/** Wrap API response data into MCP tool result format. */
|
|
26
29
|
function jsonResult(data) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thehammer/schema-mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "MCP server for Schema Builder - translates Claude Code tool calls into Laravel API requests",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/newms87/gpt-manager.git",
|
|
9
|
+
"directory": "mcp-server"
|
|
10
|
+
},
|
|
5
11
|
"type": "module",
|
|
6
12
|
"main": "dist/index.js",
|
|
7
13
|
"types": "dist/index.d.ts",
|
|
@@ -11,13 +17,17 @@
|
|
|
11
17
|
"files": [
|
|
12
18
|
"dist"
|
|
13
19
|
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18"
|
|
22
|
+
},
|
|
14
23
|
"scripts": {
|
|
15
24
|
"build": "tsc",
|
|
16
25
|
"start": "node dist/index.js",
|
|
17
26
|
"dev": "tsx watch src/index.ts"
|
|
18
27
|
},
|
|
19
28
|
"dependencies": {
|
|
20
|
-
"@modelcontextprotocol/sdk": "^1.12.1"
|
|
29
|
+
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
30
|
+
"zod": "^4.0.0"
|
|
21
31
|
},
|
|
22
32
|
"devDependencies": {
|
|
23
33
|
"tsx": "^4.0.0",
|