poke 0.3.1 → 0.4.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/README.md +0 -18
- package/dist/api-client.d.ts +9 -0
- package/dist/auth.d.ts +17 -0
- package/dist/cli.cjs +58 -158
- package/dist/credentials.d.ts +9 -0
- package/dist/index.cjs +15 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +16 -2
- package/dist/tunnel.d.ts +49 -0
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -173,24 +173,6 @@ poke tunnel http://localhost:3000/mcp --name "Local Dev"
|
|
|
173
173
|
|
|
174
174
|
The tunnel stays active until you press Ctrl+C. Tools are synced automatically every 5 minutes.
|
|
175
175
|
|
|
176
|
-
### `poke wrap`
|
|
177
|
-
|
|
178
|
-
Analyze your project with AI and generate an MCP server that exposes its capabilities, then tunnel it to Poke.
|
|
179
|
-
|
|
180
|
-
```bash
|
|
181
|
-
poke wrap
|
|
182
|
-
poke wrap --name "My Project"
|
|
183
|
-
poke wrap --prompt "Focus on the REST API endpoints and expose CRUD operations as tools"
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
| Option | Description |
|
|
187
|
-
|--------|-------------|
|
|
188
|
-
| `--port <port>` | Port for the generated MCP server (default: `8765`) |
|
|
189
|
-
| `-n, --name <name>` | Display name for the connection |
|
|
190
|
-
| `--prompt <prompt>` | Additional instructions for what the MCP server should do |
|
|
191
|
-
|
|
192
|
-
Requires [uv](https://docs.astral.sh/uv/) to be installed.
|
|
193
|
-
|
|
194
176
|
## Configuration
|
|
195
177
|
|
|
196
178
|
Credentials are stored in `~/.config/poke/credentials.json` (respects `$XDG_CONFIG_HOME`).
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class PokeAuthError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
export declare function fetchWithAuth({ path, options, token, baseUrl, }: {
|
|
5
|
+
path: string;
|
|
6
|
+
options?: RequestInit;
|
|
7
|
+
token?: string;
|
|
8
|
+
baseUrl?: string;
|
|
9
|
+
}): Promise<Response>;
|
package/dist/auth.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface LoginOptions {
|
|
2
|
+
onCode?: (info: {
|
|
3
|
+
userCode: string;
|
|
4
|
+
loginUrl: string;
|
|
5
|
+
}) => void;
|
|
6
|
+
openBrowser?: boolean;
|
|
7
|
+
timeoutMs?: number;
|
|
8
|
+
baseUrl?: string;
|
|
9
|
+
frontendUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface LoginResult {
|
|
12
|
+
token: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function login(options?: LoginOptions): Promise<LoginResult>;
|
|
15
|
+
export declare function logout(): Promise<void>;
|
|
16
|
+
export declare function isLoggedIn(): boolean;
|
|
17
|
+
export declare function getToken(): string | undefined;
|