promptlike-mcp 0.2.0 → 0.2.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/lib/constants.js +18 -1
- package/package.json +1 -1
package/dist/lib/constants.js
CHANGED
|
@@ -20,4 +20,21 @@ function resolveEnv(key, fallback) {
|
|
|
20
20
|
/** Base URL of the web API (no trailing slash). */
|
|
21
21
|
exports.API_BASE_URL = resolveEnv('PROMPTLIKE_API_URL', BAKED_API_URL).replace(/\/+$/, '');
|
|
22
22
|
exports.MCP_SERVER_NAME = 'promptlike';
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Sürüm TEK KAYNAKTAN: package.json (CLI ile aynı desen). Elle yazılan sabit
|
|
25
|
+
* kayıyordu — yayınlanan 0.2.0 kendini '0.1.0' sanıyordu ve MCP istemcileri
|
|
26
|
+
* (Claude Code vb.) sunucu sürümünü yanlış logluyordu. `src/lib` ve `dist/lib`
|
|
27
|
+
* aynı derinlikte → '../../package.json' iki durumda da paket kökü.
|
|
28
|
+
*/
|
|
29
|
+
function readVersion() {
|
|
30
|
+
try {
|
|
31
|
+
const pkgPath = '../../package.json';
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
33
|
+
const pkg = require(pkgPath);
|
|
34
|
+
return pkg.version ?? '0.0.0';
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return '0.0.0';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.MCP_VERSION = readVersion();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promptlike-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "MCP server for PromptLikeEngineer - gives AI agents read-only access to your prompt library (list, search, get, fill variables).",
|
|
5
5
|
"bin": {
|
|
6
6
|
"promptlike-mcp": "dist/index.js",
|