opentool 0.0.2 → 0.0.4
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 +8 -23
- package/dist/cli/build.d.ts.map +1 -1
- package/dist/cli/build.js +91 -54
- package/dist/cli/build.js.map +1 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
[](https://badge.fury.io/js/opentool)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
**[opentool.dev](https://opentool.dev)** | **[Documentation](https://opentool.dev/docs)** | **[Get Started](https://opentool.dev/get-started)**
|
|
7
7
|
|
|
8
8
|
A TypeScript framework for building serverless MCP (Model Context Protocol) tools that automatically deploy to AWS Lambda using [OpenPond](https://openpond.ai) hosting.
|
|
9
9
|
|
|
10
10
|
## Features
|
|
11
11
|
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
12
|
+
- **Serverless-first**: Tools automatically deploy to AWS Lambda
|
|
13
|
+
- **Type-safe**: Full TypeScript support with Zod schema validation
|
|
14
|
+
- **CLI Tools**: Build, develop, and validate your tools
|
|
15
|
+
- **MCP Compatible**: Works with any MCP client
|
|
16
|
+
- **Automatic Detection**: Detected by OpenPond hosting platform
|
|
17
|
+
- **Local Development**: Test your tools locally before deployment
|
|
18
18
|
|
|
19
19
|
## Installation
|
|
20
20
|
|
|
@@ -125,25 +125,10 @@ Each tool is defined by exporting three things:
|
|
|
125
125
|
```typescript
|
|
126
126
|
import { z } from "zod";
|
|
127
127
|
|
|
128
|
-
// Define the input schema
|
|
129
128
|
export const schema = z.object({
|
|
130
|
-
// Define your parameters here
|
|
129
|
+
// Define your input parameters here
|
|
131
130
|
});
|
|
132
131
|
|
|
133
|
-
// Define tool metadata
|
|
134
|
-
export const metadata = {
|
|
135
|
-
name: "my-tool",
|
|
136
|
-
description: "What this tool does",
|
|
137
|
-
annotations: {
|
|
138
|
-
title: "Tool Title",
|
|
139
|
-
readOnlyHint: true,
|
|
140
|
-
destructiveHint: false,
|
|
141
|
-
idempotentHint: true,
|
|
142
|
-
openWorldHint: false,
|
|
143
|
-
},
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
// Implement the tool
|
|
147
132
|
export async function TOOL(params: z.infer<typeof schema>) {
|
|
148
133
|
// Implement your tool logic here
|
|
149
134
|
// Just return a string - it will be wrapped in MCP format automatically
|
package/dist/cli/build.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/cli/build.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/cli/build.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA6CvE"}
|
package/dist/cli/build.js
CHANGED
|
@@ -37,13 +37,6 @@ exports.buildCommand = buildCommand;
|
|
|
37
37
|
const fs = __importStar(require("fs"));
|
|
38
38
|
const path = __importStar(require("path"));
|
|
39
39
|
const types_1 = require("../types");
|
|
40
|
-
// Register ts-node for TypeScript file execution
|
|
41
|
-
try {
|
|
42
|
-
require("ts-node/register");
|
|
43
|
-
}
|
|
44
|
-
catch {
|
|
45
|
-
// ts-node not available, continue without it
|
|
46
|
-
}
|
|
47
40
|
async function buildCommand(options) {
|
|
48
41
|
console.log("🔨 Building OpenTool project...");
|
|
49
42
|
const config = {
|
|
@@ -85,58 +78,101 @@ async function buildCommand(options) {
|
|
|
85
78
|
async function loadTools(toolsDir) {
|
|
86
79
|
const tools = [];
|
|
87
80
|
const files = fs.readdirSync(toolsDir);
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
81
|
+
// First, compile any TypeScript files to a temp directory
|
|
82
|
+
const tempDir = path.join(toolsDir, ".opentool-temp");
|
|
83
|
+
if (fs.existsSync(tempDir)) {
|
|
84
|
+
fs.rmSync(tempDir, { recursive: true, force: true });
|
|
85
|
+
}
|
|
86
|
+
fs.mkdirSync(tempDir, { recursive: true });
|
|
87
|
+
const { exec } = require("child_process");
|
|
88
|
+
const { promisify } = require("util");
|
|
89
|
+
const execAsync = promisify(exec);
|
|
90
|
+
try {
|
|
91
|
+
// Compile TypeScript files if any exist
|
|
92
|
+
const tsFiles = files.filter(file => file.endsWith(".ts"));
|
|
93
|
+
if (tsFiles.length > 0) {
|
|
94
|
+
console.log(`📝 Compiling ${tsFiles.length} TypeScript files...`);
|
|
95
|
+
// Copy all files to temp directory
|
|
96
|
+
for (const file of files) {
|
|
97
|
+
if (file.endsWith(".ts") || file.endsWith(".js")) {
|
|
98
|
+
fs.copyFileSync(path.join(toolsDir, file), path.join(tempDir, file));
|
|
97
99
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
}
|
|
101
|
+
// Compile TypeScript files
|
|
102
|
+
try {
|
|
103
|
+
await execAsync(`npx tsc --target es2020 --module commonjs --esModuleInterop --skipLibCheck --moduleResolution node --outDir ${tempDir} ${tsFiles.map(f => path.join(tempDir, f)).join(' ')}`);
|
|
104
|
+
}
|
|
105
|
+
catch (tscError) {
|
|
106
|
+
console.warn("TypeScript compilation failed, trying with relaxed settings...");
|
|
107
|
+
// Fallback with more permissive settings
|
|
108
|
+
await execAsync(`npx tsc --target es2020 --module commonjs --esModuleInterop --skipLibCheck --moduleResolution node --noImplicitAny false --strict false --outDir ${tempDir} ${tsFiles.map(f => path.join(tempDir, f)).join(' ')}`);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
// Load tools from temp directory (compiled JS) or original directory (for JS files)
|
|
112
|
+
for (const file of files) {
|
|
113
|
+
if (file.endsWith(".ts") || file.endsWith(".js")) {
|
|
114
|
+
try {
|
|
115
|
+
let toolPath;
|
|
116
|
+
let toolModule;
|
|
117
|
+
if (file.endsWith(".ts")) {
|
|
118
|
+
// Use compiled JavaScript version
|
|
119
|
+
const jsFile = file.replace(".ts", ".js");
|
|
120
|
+
toolPath = path.join(tempDir, jsFile);
|
|
121
|
+
if (!fs.existsSync(toolPath)) {
|
|
122
|
+
throw new Error("TypeScript compilation failed - no output file");
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
// Use original JavaScript file
|
|
127
|
+
toolPath = path.join(toolsDir, file);
|
|
128
|
+
}
|
|
129
|
+
// Clear require cache and load module
|
|
100
130
|
delete require.cache[require.resolve(toolPath)];
|
|
101
131
|
toolModule = require(toolPath);
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
132
|
+
// Check for required exports (schema and TOOL function, metadata is optional)
|
|
133
|
+
if (toolModule.TOOL && toolModule.schema) {
|
|
134
|
+
let completeMetadata = null;
|
|
135
|
+
const baseName = file.replace(/\.(ts|js)$/, "");
|
|
136
|
+
// Only create metadata if user provided some metadata
|
|
137
|
+
if (toolModule.metadata) {
|
|
138
|
+
const partialMetadata = toolModule.metadata;
|
|
139
|
+
completeMetadata = (0, types_1.createToolMetadata)(partialMetadata, file);
|
|
140
|
+
}
|
|
141
|
+
const tool = {
|
|
142
|
+
schema: toolModule.schema,
|
|
143
|
+
metadata: completeMetadata,
|
|
144
|
+
filename: baseName,
|
|
145
|
+
handler: async (params) => {
|
|
146
|
+
const result = await toolModule.TOOL(params);
|
|
147
|
+
// Handle both string and object returns
|
|
148
|
+
if (typeof result === "string") {
|
|
149
|
+
return {
|
|
150
|
+
content: [{ type: "text", text: result }],
|
|
151
|
+
isError: false,
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
return result;
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
tools.push(tool);
|
|
158
|
+
const toolName = completeMetadata?.name || file.replace(/\.(ts|js)$/, "");
|
|
159
|
+
const toolDesc = completeMetadata?.description || `${toolName} tool`;
|
|
160
|
+
console.log(` ✓ ${toolName} - ${toolDesc}`);
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
console.warn(` ⚠ ${file} - Invalid tool format. Must export: schema and TOOL function (metadata is optional)`);
|
|
111
164
|
}
|
|
112
|
-
const tool = {
|
|
113
|
-
schema: toolModule.schema,
|
|
114
|
-
metadata: completeMetadata,
|
|
115
|
-
filename: baseName,
|
|
116
|
-
handler: async (params) => {
|
|
117
|
-
const result = await toolModule.TOOL(params);
|
|
118
|
-
// Handle both string and object returns
|
|
119
|
-
if (typeof result === "string") {
|
|
120
|
-
return {
|
|
121
|
-
content: [{ type: "text", text: result }],
|
|
122
|
-
isError: false,
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
return result;
|
|
126
|
-
},
|
|
127
|
-
};
|
|
128
|
-
tools.push(tool);
|
|
129
|
-
const toolName = completeMetadata?.name || file.replace(/\.(ts|js)$/, "");
|
|
130
|
-
const toolDesc = completeMetadata?.description || `${toolName} tool`;
|
|
131
|
-
console.log(` ✓ ${toolName} - ${toolDesc}`);
|
|
132
165
|
}
|
|
133
|
-
|
|
134
|
-
console.warn(`
|
|
166
|
+
catch (error) {
|
|
167
|
+
console.warn(` ❌ ${file} - Failed to load: ${error}`);
|
|
135
168
|
}
|
|
136
169
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
finally {
|
|
173
|
+
// Clean up temp directory
|
|
174
|
+
if (fs.existsSync(tempDir)) {
|
|
175
|
+
fs.rmSync(tempDir, { recursive: true, force: true });
|
|
140
176
|
}
|
|
141
177
|
}
|
|
142
178
|
return tools;
|
|
@@ -161,10 +197,11 @@ ${tools
|
|
|
161
197
|
|
|
162
198
|
const tools = [
|
|
163
199
|
${tools
|
|
164
|
-
.map((
|
|
200
|
+
.map((tool, index) => ` {
|
|
165
201
|
schema: tool${index}.schema,
|
|
166
202
|
metadata: tool${index}.metadata,
|
|
167
|
-
handler: tool${index}.TOOL
|
|
203
|
+
handler: tool${index}.TOOL,
|
|
204
|
+
filename: '${tool.filename}'
|
|
168
205
|
},`)
|
|
169
206
|
.join("\n")}
|
|
170
207
|
];
|
package/dist/cli/build.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/cli/build.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/cli/build.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,oCA6CC;AA/DD,uCAAyB;AACzB,2CAA6B;AAC7B,oCAKkB;AAWX,KAAK,UAAU,YAAY,CAAC,OAAqB;IACtD,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAE/C,MAAM,MAAM,GAAgB;QAC1B,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;QACrC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;QACvC,UAAU,EAAE,OAAO,CAAC,IAAI,IAAI,iBAAiB;QAC7C,aAAa,EAAE,OAAO,CAAC,OAAO,IAAI,OAAO;KAC1C,CAAC;IAEF,IAAI,CAAC;QACH,kCAAkC;QAClC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CAAC,8B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,qEAAqE;YACrE,IAAI,QAAQ,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;gBACxD,iDAAiD;gBACjD,MAAM,cAAc,GAAG,wBAAwB,IAAI,CAAC,SAAS,CAC3D,QAAQ,EACR,IAAI,EACJ,CAAC,CACF,KAAK,CAAC;gBACP,SAAS,IAAI,cAAc,CAAC;YAC9B,CAAC;YAED,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;QAC1C,CAAC;QAED,0BAA0B;QAC1B,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,qBAAqB,UAAU,GAAG,EAAE,KAAK,CAAC,CAAC;QACxD,2CAA2C;QAC3C,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;IAChE,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opentool",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "OpenTool framework for building serverless MCP tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"bin": {
|
|
8
|
-
"opentool": "
|
|
8
|
+
"opentool": "dist/cli/index.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
|
@@ -36,12 +36,15 @@
|
|
|
36
36
|
"homepage": "https://opentool.dev",
|
|
37
37
|
"repository": {
|
|
38
38
|
"type": "git",
|
|
39
|
-
"url": "https://github.com/openpond/opentool.git"
|
|
39
|
+
"url": "git+https://github.com/openpond/opentool.git"
|
|
40
40
|
},
|
|
41
41
|
"bugs": {
|
|
42
42
|
"url": "https://github.com/openpond/opentool/issues"
|
|
43
43
|
},
|
|
44
44
|
"license": "MIT",
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
45
48
|
"dependencies": {
|
|
46
49
|
"@aws/run-mcp-servers-with-aws-lambda": "^0.2.2",
|
|
47
50
|
"@modelcontextprotocol/sdk": "^1.12.3",
|