@myspec/mcp-server 0.1.0-next.1 → 0.1.0-next.3

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 CHANGED
@@ -23,8 +23,25 @@ login Sign in via browser loopback OAuth
23
23
  login --paste Sign in by pasting a one-time code
24
24
  login --provider <google|github|gitlab|linear|atlassian>
25
25
  logout Revoke refresh token and clear local credentials
26
+ reverse --root <dir> Connect to ai-agent and expose local_fs tools (experimental)
26
27
  ```
27
28
 
29
+ ### `reverse` (experimental)
30
+
31
+ `reverse` connects out to the ai-agent service over WebSocket and exposes a set
32
+ of `local_fs` tools scoped to a single local directory, so a cloud agent can
33
+ read files from your machine. This is an early spike.
34
+
35
+ ```bash
36
+ npx @myspec/mcp-server@next reverse --root /path/to/project
37
+ ```
38
+
39
+ | Flag / env | Purpose |
40
+ |---|---|
41
+ | `--root <dir>` | Directory to grant read access to (default: current working directory). All tool paths resolve relative to this root; nothing outside it is reachable. |
42
+ | `--agent-url <url>` / `MYSPEC_AI_AGENT_WS_URL` | ai-agent WebSocket URL (default `ws://localhost:3001/mcp/reverse`). |
43
+ | `--access-token <jwt>` / `MYSPEC_ACCESS_TOKEN` | Use a static access token for local testing instead of the saved credentials. Otherwise `reverse` uses the refresh token from `npx @myspec/mcp-server login` and auto-refreshes. |
44
+
28
45
  Credentials are persisted at `$XDG_CONFIG_HOME/myspec/mcp-server.json` (POSIX) or `%APPDATA%\myspec\mcp-server.json` (Windows), mode `0600`.
29
46
 
30
47
  ## Environment variables
@@ -32,7 +49,7 @@ Credentials are persisted at `$XDG_CONFIG_HOME/myspec/mcp-server.json` (POSIX) o
32
49
  | Variable | Purpose |
33
50
  |---|---|
34
51
  | `MYSPEC_USER_AUTH_URL` | user-auth base URL (default `https://auth.myspec.dev`) |
35
- | `MYSPEC_PLATFORM_URL` | platform API base URL (default `https://api.myspec.dev`) |
52
+ | `MYSPEC_PLATFORM_URL` | platform API base URL (default `https://platform.myspec.dev`) |
36
53
  | `MYSPEC_REFRESH_TOKEN` | Skip file-based credentials; the server mints a fresh access token on first use via this refresh token. The supported way to wire the MCP server up without running `npx @myspec/mcp-server login`. |
37
54
  | `MYSPEC_DOWNLOAD_ROOT` | Absolute path used by `read_file` as its on-disk cache root (default: `~/.myspec`). Tools never write outside this root. |
38
55
  | `MYSPEC_WEBAPP_URL` | Webapp base URL used by `login --paste` to display the OAuth callback URL (default: derived from `MYSPEC_USER_AUTH_URL`) |
package/dist/index.js CHANGED
@@ -424,7 +424,7 @@ function isFsNotFound(err) {
424
424
  function resolveConfig(sources = {}) {
425
425
  const env = sources.env ?? process.env;
426
426
  const userAuthUrl = sources.cliUserAuthUrl ?? env.MYSPEC_USER_AUTH_URL ?? sources.storedUserAuthUrl ?? "https://auth.myspec.dev";
427
- const platformUrl = sources.cliPlatformUrl ?? env.MYSPEC_PLATFORM_URL ?? sources.storedPlatformUrl ?? "https://api.myspec.dev";
427
+ const platformUrl = sources.cliPlatformUrl ?? env.MYSPEC_PLATFORM_URL ?? sources.storedPlatformUrl ?? "https://platform.myspec.dev";
428
428
  const webappUrl = sources.cliWebappUrl ?? env.MYSPEC_WEBAPP_URL ?? deriveWebappFromAuth(userAuthUrl);
429
429
  validateUrl(userAuthUrl, "user-auth URL");
430
430
  validateUrl(platformUrl, "platform URL");
@@ -3464,7 +3464,7 @@ function printHelp() {
3464
3464
  "",
3465
3465
  "Environment:",
3466
3466
  " MYSPEC_USER_AUTH_URL user-auth base URL (default https://auth.myspec.dev)",
3467
- " MYSPEC_PLATFORM_URL platform API base URL (default https://api.myspec.dev)",
3467
+ " MYSPEC_PLATFORM_URL platform API base URL (default https://platform.myspec.dev)",
3468
3468
  " MYSPEC_WEBAPP_URL webapp base URL (default derived from user-auth host)",
3469
3469
  " MYSPEC_REFRESH_TOKEN Skip file-based credentials; the server mints a",
3470
3470
  " fresh access token on first use via this refresh",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myspec/mcp-server",
3
- "version": "0.1.0-next.1",
3
+ "version": "0.1.0-next.3",
4
4
  "description": "MySpec MCP server — exposes MySpec platform projects, files and attachments to MCP-aware clients via OAuth-authenticated access tokens.",
5
5
  "type": "module",
6
6
  "repository": {