@aipermission/mcp 0.2.26 → 0.2.27
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 +2 -2
- package/dist/init.js +8 -2
- package/package.json +1 -1
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ npx -y @aipermission/mcp init \
|
|
|
31
31
|
--name aipermission
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
The init command prompts for your AIPermission API token and writes the MCP client configuration for the selected provider.
|
|
34
|
+
The init command prompts for your AIPermission API token and writes the MCP client configuration for the selected provider. Generated runtime configs pin the exact package version that wrote them; re-run init when you intentionally upgrade a client.
|
|
35
35
|
|
|
36
36
|
The generated MCP config contains a bearer token. Keep it private. For project-local configs such as `.mcp.json`, `.cursor/mcp.json`, and `.vscode/mcp.json`, the init command refuses to write into files already tracked by Git unless `--force` is passed. For untracked project-local configs, it adds the file to `.git/info/exclude` when it detects a Git repository. Use `--print` if you prefer to copy the config manually. If a token config is committed or shared, revoke that token in the AIPermission UI.
|
|
37
37
|
|
|
@@ -42,7 +42,7 @@ The generated MCP config contains a bearer token. Keep it private. For project-l
|
|
|
42
42
|
"mcpServers": {
|
|
43
43
|
"aipermission": {
|
|
44
44
|
"command": "npx",
|
|
45
|
-
"args": ["-y", "@aipermission/mcp"],
|
|
45
|
+
"args": ["-y", "@aipermission/mcp@0.2.27"],
|
|
46
46
|
"env": {
|
|
47
47
|
"NODE_ENV": "production",
|
|
48
48
|
"AIPERMISSION_API_URL": "http://localhost:3210",
|
package/dist/init.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import fs from "node:fs/promises";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
2
3
|
import os from "node:os";
|
|
3
4
|
import path from "node:path";
|
|
4
5
|
import readline from "node:readline/promises";
|
|
@@ -6,7 +7,12 @@ import { pathToFileURL } from "node:url";
|
|
|
6
7
|
import { stdin as input, stdout as output } from "node:process";
|
|
7
8
|
import { DEFAULT_API_URL, normalizeLocalAPIURL } from "./local-url.js";
|
|
8
9
|
|
|
9
|
-
const
|
|
10
|
+
const require = createRequire(import.meta.url);
|
|
11
|
+
const packageMetadata = require("../package.json");
|
|
12
|
+
|
|
13
|
+
export const PACKAGE_NAME = packageMetadata.name;
|
|
14
|
+
export const PACKAGE_VERSION = packageMetadata.version;
|
|
15
|
+
export const PACKAGE_SPECIFIER = `${PACKAGE_NAME}@${PACKAGE_VERSION}`;
|
|
10
16
|
const useColor = output.isTTY && !process.env.NO_COLOR;
|
|
11
17
|
const color = {
|
|
12
18
|
reset: useColor ? "\x1b[0m" : "",
|
|
@@ -287,7 +293,7 @@ async function readStdin() {
|
|
|
287
293
|
export function buildMCPServerConfig({ apiUrl, token }) {
|
|
288
294
|
return {
|
|
289
295
|
command: "npx",
|
|
290
|
-
args: ["-y",
|
|
296
|
+
args: ["-y", PACKAGE_SPECIFIER],
|
|
291
297
|
env: {
|
|
292
298
|
NODE_ENV: "production",
|
|
293
299
|
AIPERMISSION_API_URL: apiUrl,
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"name": "io.github.aipermission/aipermission-mcp",
|
|
4
4
|
"title": "AIPermission",
|
|
5
5
|
"description": "Local-first MCP bridge for the AIPermission gateway.",
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.27",
|
|
7
7
|
"packages": [
|
|
8
8
|
{
|
|
9
9
|
"registryType": "npm",
|
|
10
10
|
"identifier": "@aipermission/mcp",
|
|
11
|
-
"version": "0.2.
|
|
11
|
+
"version": "0.2.27",
|
|
12
12
|
"transport": {
|
|
13
13
|
"type": "stdio"
|
|
14
14
|
}
|