temper-mcp 0.1.0

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 ADDED
@@ -0,0 +1,30 @@
1
+ # temper-mcp
2
+
3
+ MCP server for [Temper](https://temper.build) — the governed application platform.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ # Add to Claude Code
9
+ claude mcp add temper -- npx -y temper-mcp --url https://api.temper.build
10
+
11
+ # With API key
12
+ claude mcp add temper -e TEMPER_API_KEY=sk-xxx -- npx -y temper-mcp --url https://api.temper.build
13
+
14
+ # Self-hosted
15
+ claude mcp add temper -- npx -y temper-mcp --url http://localhost:3000
16
+ ```
17
+
18
+ ## What is Temper?
19
+
20
+ Temper is a conversational application platform. Describe what you want through conversation — the system generates specs, verifies them, and deploys. The MCP server gives AI agents access to:
21
+
22
+ - **Execute Python** against your Temper instance with persistent state
23
+ - **List and install apps** from the OS app catalog
24
+ - **Full OData API access** for CRUD operations on entities
25
+
26
+ ## Supported Platforms
27
+
28
+ - macOS (Apple Silicon, Intel)
29
+ - Linux (x64, ARM64)
30
+ - Windows (x64)
@@ -0,0 +1,53 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execFileSync } = require("child_process");
4
+ const os = require("os");
5
+ const path = require("path");
6
+
7
+ const PLATFORM_PACKAGES = {
8
+ "darwin-arm64": "temper-mcp-darwin-arm64",
9
+ "darwin-x64": "temper-mcp-darwin-x64",
10
+ "linux-x64": "temper-mcp-linux-x64",
11
+ "linux-arm64": "temper-mcp-linux-arm64",
12
+ "win32-x64": "temper-mcp-win32-x64",
13
+ };
14
+
15
+ const platformKey = `${os.platform()}-${os.arch()}`;
16
+ const pkg = PLATFORM_PACKAGES[platformKey];
17
+
18
+ if (!pkg) {
19
+ console.error(
20
+ `Unsupported platform: ${platformKey}. ` +
21
+ `Supported: ${Object.keys(PLATFORM_PACKAGES).join(", ")}`
22
+ );
23
+ process.exit(1);
24
+ }
25
+
26
+ let binPath;
27
+ try {
28
+ const binName = os.platform() === "win32" ? "temper.exe" : "temper";
29
+ binPath = path.join(
30
+ path.dirname(require.resolve(`${pkg}/package.json`)),
31
+ "bin",
32
+ binName
33
+ );
34
+ } catch {
35
+ console.error(
36
+ `Could not find the binary package ${pkg}. ` +
37
+ `This usually means the optional dependency was not installed.\n` +
38
+ `Try reinstalling: npm install temper-mcp`
39
+ );
40
+ process.exit(1);
41
+ }
42
+
43
+ // The binary is the full temper CLI; invoke its "mcp" subcommand
44
+ const args = ["mcp", ...process.argv.slice(2)];
45
+
46
+ try {
47
+ execFileSync(binPath, args, { stdio: "inherit" });
48
+ } catch (e) {
49
+ if (e.status !== null) {
50
+ process.exit(e.status);
51
+ }
52
+ throw e;
53
+ }
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "temper-mcp",
3
+ "version": "0.1.0",
4
+ "description": "MCP server for Temper — governed application platform",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/nerdsane/temper"
9
+ },
10
+ "bin": {
11
+ "temper-mcp": "bin/temper-mcp.js"
12
+ },
13
+ "files": [
14
+ "bin/**/*",
15
+ "README.md"
16
+ ],
17
+ "optionalDependencies": {
18
+ "temper-mcp-darwin-arm64": "0.1.0",
19
+ "temper-mcp-darwin-x64": "0.1.0",
20
+ "temper-mcp-linux-x64": "0.1.0",
21
+ "temper-mcp-linux-arm64": "0.1.0",
22
+ "temper-mcp-win32-x64": "0.1.0"
23
+ }
24
+ }