@apify/mcpc 0.1.2 → 0.1.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/.claude/settings.local.json +35 -2
- package/.idea/codeStyles/Project.xml +4 -0
- package/.idea/workspace.xml +290 -274
- package/CONTRIBUTING.md +210 -0
- package/README.md +225 -344
- package/TODOs.md +29 -76
- package/dist/bridge/index.js +153 -86
- package/dist/bridge/index.js.map +1 -1
- package/dist/cli/commands/auth.d.ts.map +1 -1
- package/dist/cli/commands/auth.js +9 -4
- package/dist/cli/commands/auth.js.map +1 -1
- package/dist/cli/commands/clean.d.ts.map +1 -1
- package/dist/cli/commands/clean.js +42 -73
- package/dist/cli/commands/clean.js.map +1 -1
- package/dist/cli/commands/prompts.d.ts.map +1 -1
- package/dist/cli/commands/prompts.js +24 -1
- package/dist/cli/commands/prompts.js.map +1 -1
- package/dist/cli/commands/sessions.d.ts +5 -1
- package/dist/cli/commands/sessions.d.ts.map +1 -1
- package/dist/cli/commands/sessions.js +162 -132
- package/dist/cli/commands/sessions.js.map +1 -1
- package/dist/cli/commands/tools.d.ts.map +1 -1
- package/dist/cli/commands/tools.js +39 -1
- package/dist/cli/commands/tools.js.map +1 -1
- package/dist/cli/helpers.d.ts +5 -2
- package/dist/cli/helpers.d.ts.map +1 -1
- package/dist/cli/helpers.js +114 -74
- package/dist/cli/helpers.js.map +1 -1
- package/dist/cli/index.js +50 -14
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/output.d.ts +19 -3
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +395 -85
- package/dist/cli/output.js.map +1 -1
- package/dist/cli/parser.d.ts +4 -0
- package/dist/cli/parser.d.ts.map +1 -1
- package/dist/cli/parser.js +88 -1
- package/dist/cli/parser.js.map +1 -1
- package/dist/cli/shell-parser.d.ts.map +1 -1
- package/dist/cli/shell-parser.js.map +1 -1
- package/dist/cli/shell.js +13 -13
- package/dist/cli/shell.js.map +1 -1
- package/dist/core/factory.d.ts +4 -4
- package/dist/core/factory.d.ts.map +1 -1
- package/dist/core/factory.js +4 -34
- package/dist/core/factory.js.map +1 -1
- package/dist/core/mcp-client.d.ts +2 -2
- package/dist/core/mcp-client.d.ts.map +1 -1
- package/dist/core/mcp-client.js +18 -22
- package/dist/core/mcp-client.js.map +1 -1
- package/dist/core/transports.d.ts +6 -2
- package/dist/core/transports.d.ts.map +1 -1
- package/dist/core/transports.js +58 -37
- package/dist/core/transports.js.map +1 -1
- package/dist/lib/auth/keychain.d.ts.map +1 -1
- package/dist/lib/auth/keychain.js +5 -2
- package/dist/lib/auth/keychain.js.map +1 -1
- package/dist/lib/auth/oauth-flow.d.ts.map +1 -1
- package/dist/lib/auth/oauth-flow.js +14 -2
- package/dist/lib/auth/oauth-flow.js.map +1 -1
- package/dist/lib/auth/oauth-provider.d.ts +19 -8
- package/dist/lib/auth/oauth-provider.d.ts.map +1 -1
- package/dist/lib/auth/oauth-provider.js +79 -29
- package/dist/lib/auth/oauth-provider.js.map +1 -1
- package/dist/lib/auth/oauth-token-manager.d.ts +8 -0
- package/dist/lib/auth/oauth-token-manager.d.ts.map +1 -1
- package/dist/lib/auth/oauth-token-manager.js +33 -0
- package/dist/lib/auth/oauth-token-manager.js.map +1 -1
- package/dist/lib/auth/{auth-profiles.d.ts → profiles.d.ts} +7 -2
- package/dist/lib/auth/profiles.d.ts.map +1 -0
- package/dist/lib/auth/profiles.js +188 -0
- package/dist/lib/auth/profiles.js.map +1 -0
- package/dist/lib/auth/token-refresh.js +1 -1
- package/dist/lib/auth/token-refresh.js.map +1 -1
- package/dist/lib/bridge-client.js.map +1 -1
- package/dist/lib/bridge-manager.d.ts +2 -3
- package/dist/lib/bridge-manager.d.ts.map +1 -1
- package/dist/lib/bridge-manager.js +48 -63
- package/dist/lib/bridge-manager.js.map +1 -1
- package/dist/lib/cleanup.d.ts +5 -0
- package/dist/lib/cleanup.d.ts.map +1 -0
- package/dist/lib/cleanup.js +48 -0
- package/dist/lib/cleanup.js.map +1 -0
- package/dist/lib/config.d.ts +3 -3
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/errors.d.ts +1 -1
- package/dist/lib/errors.d.ts.map +1 -1
- package/dist/lib/errors.js +5 -1
- package/dist/lib/errors.js.map +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +1 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/logger.d.ts +5 -1
- package/dist/lib/logger.d.ts.map +1 -1
- package/dist/lib/logger.js +10 -1
- package/dist/lib/logger.js.map +1 -1
- package/dist/lib/schema-validator.d.ts +36 -0
- package/dist/lib/schema-validator.d.ts.map +1 -0
- package/dist/lib/schema-validator.js +220 -0
- package/dist/lib/schema-validator.js.map +1 -0
- package/dist/lib/session-client.d.ts +2 -2
- package/dist/lib/session-client.d.ts.map +1 -1
- package/dist/lib/session-client.js +9 -9
- package/dist/lib/session-client.js.map +1 -1
- package/dist/lib/sessions.d.ts +6 -1
- package/dist/lib/sessions.d.ts.map +1 -1
- package/dist/lib/sessions.js +72 -14
- package/dist/lib/sessions.js.map +1 -1
- package/dist/lib/types.d.ts +17 -25
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/types.js.map +1 -1
- package/dist/lib/utils.d.ts +4 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +24 -3
- package/dist/lib/utils.js.map +1 -1
- package/{claude-skill → docs/claude-skill}/SKILL.md +2 -2
- package/package.json +17 -8
- package/TESTING.md +0 -212
- package/dist/lib/auth/auth-profiles.d.ts.map +0 -1
- package/dist/lib/auth/auth-profiles.js +0 -105
- package/dist/lib/auth/auth-profiles.js.map +0 -1
- /package/{claude-skill → docs/claude-skill}/README.md +0 -0
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"Bash(mcpc --help:*)",
|
|
18
18
|
"Bash(EXAMPLE_API_TOKEN=test123 node dist/cli/index.js:*)",
|
|
19
19
|
"Bash(~/.mcpc/sessions.json <<'EOF'\n{\n \"sessions\": {\n \"apify\": {\n \"name\": \"apify\",\n \"target\": \"https://mcp.apify.com\",\n \"transport\": \"http\",\n \"profileName\": \"default\",\n \"pid\": 12345,\n \"socketPath\": \"/Users/test/.mcpc/bridges/apify.sock\",\n \"protocolVersion\": \"2025-11-25\",\n \"serverInfo\": {\n \"name\": \"Apify MCP Server\",\n \"version\": \"1.0.0\"\n },\n \"createdAt\": \"2025-12-01T10:00:00Z\",\n \"updatedAt\": \"2025-12-01T10:00:00Z\"\n },\n \"local\": {\n \"name\": \"local\",\n \"target\": \"@modelcontextprotocol/server-filesystem\",\n \"transport\": \"stdio\",\n \"pid\": 12346,\n \"socketPath\": \"/Users/test/.mcpc/bridges/local.sock\",\n \"protocolVersion\": \"2025-11-25\",\n \"createdAt\": \"2025-12-10T15:00:00Z\",\n \"updatedAt\": \"2025-12-10T15:00:00Z\"\n }\n }\n}\nEOF)",
|
|
20
|
-
"Bash(~/.mcpc/
|
|
20
|
+
"Bash(~/.mcpc/profiles.json <<'EOF'\n{\n \"profiles\": {\n \"https://mcp.apify.com\": {\n \"default\": {\n \"name\": \"default\",\n \"serverUrl\": \"https://mcp.apify.com\",\n \"authType\": \"oauth\",\n \"oauthIssuer\": \"https://auth.apify.com\",\n \"scopes\": [\"read\", \"write\"],\n \"authenticatedAt\": \"2025-12-01T10:00:00Z\",\n \"expiresAt\": \"2026-12-01T10:00:00Z\",\n \"createdAt\": \"2025-12-01T10:00:00Z\",\n \"updatedAt\": \"2025-12-01T10:00:00Z\"\n }\n }\n }\n}\nEOF)",
|
|
21
21
|
"Bash(MCPC_JSON=1 node dist/cli/index.js:*)",
|
|
22
22
|
"Bash(MCPC_VERBOSE=true node:*)",
|
|
23
23
|
"Bash(~/.mcpc/sessions.json <<'EOF'\n{\n \"sessions\": {\n \"@test\": {\n \"name\": \"@test\",\n \"target\": \"npx\",\n \"transport\": \"stdio\",\n \"socketPath\": \"/Users/jancurn/.mcpc/bridges/@test.sock\"\n }\n }\n}\nEOF)",
|
|
@@ -30,7 +30,40 @@
|
|
|
30
30
|
"Bash(pkill:*)",
|
|
31
31
|
"Bash(test/e2e/run.sh:*)",
|
|
32
32
|
"Bash(echo:*)",
|
|
33
|
-
"Bash(tree:*)"
|
|
33
|
+
"Bash(tree:*)",
|
|
34
|
+
"Bash(xargs cat:*)",
|
|
35
|
+
"Bash(npm run build:toc:*)",
|
|
36
|
+
"Bash(time node:*)",
|
|
37
|
+
"Bash(python3:*)",
|
|
38
|
+
"Bash(timeout 5 node:*)",
|
|
39
|
+
"Bash(./test/e2e/run.sh:*)",
|
|
40
|
+
"Bash(head:*)",
|
|
41
|
+
"Bash(./test/coverage/coverage-merge.sh)",
|
|
42
|
+
"Bash(npx lcov-result-merger:*)",
|
|
43
|
+
"Bash(npm run test:coverage:e2e:*)",
|
|
44
|
+
"Bash(npm run test:coverage:merge:*)",
|
|
45
|
+
"Bash(npm uninstall:*)",
|
|
46
|
+
"Bash(npm search:*)",
|
|
47
|
+
"Bash(npx nyc report:*)",
|
|
48
|
+
"Bash(npm run test:coverage:unit:*)",
|
|
49
|
+
"Bash(npx c8:*)",
|
|
50
|
+
"Bash(find:*)",
|
|
51
|
+
"Bash(npm run test:e2e:*)",
|
|
52
|
+
"Bash(tee:*)",
|
|
53
|
+
"Bash(npm run test:unit:*)",
|
|
54
|
+
"Bash(FORCE_COLOR=1 node:*)",
|
|
55
|
+
"Bash(TESTS=output-invariants ./test/e2e/run.sh:*)",
|
|
56
|
+
"Bash(TESTS=errors ./test/e2e/run.sh:*)",
|
|
57
|
+
"Bash(TESTS=json-schema ./test/e2e/run.sh:*)",
|
|
58
|
+
"Bash(bash:*)",
|
|
59
|
+
"Bash(curl:*)",
|
|
60
|
+
"Bash(TESTS=oauth-remote ./test/e2e/run.sh:*)",
|
|
61
|
+
"Bash(TESTS=filesystem ./test/e2e/run.sh:*)",
|
|
62
|
+
"Bash(TESTS=header-security ./test/e2e/run.sh:*)",
|
|
63
|
+
"Bash(TESTS=auth-errors ./test/e2e/run.sh:*)",
|
|
64
|
+
"Bash(TESTS=schema-validation ./test/e2e/run.sh:*)",
|
|
65
|
+
"Bash(SINGLE_PROFILE_MODE=true TESTS=oauth-remote ./test/e2e/run.sh:*)",
|
|
66
|
+
"Bash(TESTS=lifecycle ./test/e2e/run.sh:*)"
|
|
34
67
|
]
|
|
35
68
|
}
|
|
36
69
|
}
|
|
@@ -42,6 +42,10 @@
|
|
|
42
42
|
<option name="TAB_SIZE" value="2" />
|
|
43
43
|
</indentOptions>
|
|
44
44
|
</codeStyleSettings>
|
|
45
|
+
<codeStyleSettings language="Markdown">
|
|
46
|
+
<option name="RIGHT_MARGIN" value="100" />
|
|
47
|
+
<option name="WRAP_ON_TYPING" value="1" />
|
|
48
|
+
</codeStyleSettings>
|
|
45
49
|
<codeStyleSettings language="TypeScript">
|
|
46
50
|
<option name="SOFT_MARGINS" value="100" />
|
|
47
51
|
<indentOptions>
|