@mhingston5/conduit 1.1.4 → 1.1.6
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 +13 -2
- package/dist/index.js +500 -131
- package/dist/index.js.map +1 -1
- package/dist/pyodide.worker.js.map +1 -0
- package/package.json +1 -1
- package/src/auth.cmd.ts +161 -14
- package/src/core/config.service.ts +5 -1
- package/src/core/execution.service.ts +5 -0
- package/src/core/policy.service.ts +5 -0
- package/src/core/request.controller.ts +80 -7
- package/src/executors/pyodide.executor.ts +9 -4
- package/src/gateway/auth.service.ts +17 -7
- package/src/gateway/gateway.service.ts +150 -73
- package/src/gateway/host.client.ts +65 -0
- package/src/gateway/upstream.client.ts +21 -14
- package/src/index.ts +33 -7
- package/src/sdk/sdk-generator.ts +90 -30
- package/src/transport/stdio.transport.ts +44 -3
- package/tests/__snapshots__/assets.test.ts.snap +56 -3
- package/tests/code-mode-lite-gateway.test.ts +4 -4
- package/tests/debug.fallback.test.ts +40 -0
- package/tests/debug_upstream.ts +69 -0
- package/tests/dynamic.tool.test.ts +3 -3
- package/tests/gateway.manifest.test.ts +1 -1
- package/tests/gateway.service.test.ts +6 -6
- package/tests/reference_mcp.ts +5 -3
- package/tests/routing.test.ts +8 -1
- package/tests/sdk/sdk-generator.test.ts +10 -9
- package/tsup.config.ts +1 -1
- package/dist/executors/pyodide.worker.js.map +0 -1
- /package/dist/{executors/pyodide.worker.d.ts → pyodide.worker.d.ts} +0 -0
- /package/dist/{executors/pyodide.worker.js → pyodide.worker.js} +0 -0
package/README.md
CHANGED
|
@@ -97,6 +97,17 @@ npx conduit auth \
|
|
|
97
97
|
|
|
98
98
|
This will start a temporary local server, open your browser for authorization, and print the generated `credentials` block for your `conduit.yaml`.
|
|
99
99
|
|
|
100
|
+
For GitHub MCP (remote server OAuth), you can auto-discover endpoints and use PKCE:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
npx conduit auth \
|
|
104
|
+
--client-id <id> \
|
|
105
|
+
--client-secret <secret> \
|
|
106
|
+
--mcp-url https://api.githubcopilot.com/mcp/ \
|
|
107
|
+
--scopes repo,read:org \
|
|
108
|
+
--pkce
|
|
109
|
+
```
|
|
110
|
+
|
|
100
111
|
### 4. Execute TypeScript
|
|
101
112
|
|
|
102
113
|
Using any [MCP Client](https://modelcontextprotocol.io/clients) (Claude Desktop, etc.), call `mcp_execute_typescript`:
|
|
@@ -104,7 +115,7 @@ Using any [MCP Client](https://modelcontextprotocol.io/clients) (Claude Desktop,
|
|
|
104
115
|
```ts
|
|
105
116
|
// The agent writes this code:
|
|
106
117
|
const result = await tools.filesystem.list_allowed_directories();
|
|
107
|
-
console.log("
|
|
118
|
+
console.log("Directories:", JSON.stringify(result.content));
|
|
108
119
|
```
|
|
109
120
|
|
|
110
121
|
### 5. Result
|
|
@@ -113,7 +124,7 @@ Conduit runs the code, handles the tool call securely, and returns:
|
|
|
113
124
|
|
|
114
125
|
```json
|
|
115
126
|
{
|
|
116
|
-
"stdout": "
|
|
127
|
+
"stdout": "Directories: [{\"type\":\"text\",\"text\":\"/tmp\"}]\n",
|
|
117
128
|
"stderr": "",
|
|
118
129
|
"exitCode": 0
|
|
119
130
|
}
|