You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: OAuth nits, run typecheck and linter in CI (#94)
* Replace expires_at with expires_in in OAuth tokens and fix TypeScript errors
- Replace non-standard expires_at with standard expires_in field for OAuth access tokens
- Update token validation logic to check expires_in as number instead of parsing timestamps
- Fix TypeScript compilation errors by adding any type annotations to catch blocks
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Apply Prettier formatting and code style improvements
- Update GitHub workflow quote style consistency
- Format README with consistent list markers and spacing
- Add lint-fix script to package.json
- Apply consistent formatting across TypeScript source files
- Standardize quote usage, indentation, and spacing
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Add GitHub workflow to run checks on PRs to main branch
- Run 'pnpm build' and 'pnpm run check' on every pull request to main
- Uses same pnpm setup as existing publish workflow for consistency
- Ensures code quality and type checking before merging
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* remove npm package-lock, we use pnpm in this house
* fix lints again!
---------
Co-authored-by: Claude <[email protected]>
@@ -74,7 +66,7 @@ To bypass authentication, or to emit custom headers on all requests to your remo
74
66
75
67
### Flags
76
68
77
-
* If `npx` is producing errors, consider adding `-y` as the first argument to auto-accept the installation of the `mcp-remote` package.
69
+
- If `npx` is producing errors, consider adding `-y` as the first argument to auto-accept the installation of the `mcp-remote` package.
78
70
79
71
```json
80
72
"command": "npx",
@@ -85,7 +77,7 @@ To bypass authentication, or to emit custom headers on all requests to your remo
85
77
]
86
78
```
87
79
88
-
* To force `npx` to always check for an updated version of `mcp-remote`, add the `@latest` flag:
80
+
- To force `npx` to always check for an updated version of `mcp-remote`, add the `@latest` flag:
89
81
90
82
```json
91
83
"args": [
@@ -94,7 +86,7 @@ To bypass authentication, or to emit custom headers on all requests to your remo
94
86
]
95
87
```
96
88
97
-
* To change which port `mcp-remote` listens for an OAuth redirect (by default `3334`), add an additional argument after the server URL. Note that whatever port you specify, if it is unavailable an open port will be chosen at random.
89
+
- To change which port `mcp-remote` listens for an OAuth redirect (by default `3334`), add an additional argument after the server URL. Note that whatever port you specify, if it is unavailable an open port will be chosen at random.
98
90
99
91
```json
100
92
"args": [
@@ -104,7 +96,7 @@ To bypass authentication, or to emit custom headers on all requests to your remo
104
96
]
105
97
```
106
98
107
-
* To change which host `mcp-remote` registers as the OAuth callback URL (by default `localhost`), add the `--host` flag.
99
+
- To change which host `mcp-remote` registers as the OAuth callback URL (by default `localhost`), add the `--host` flag.
108
100
109
101
```json
110
102
"args": [
@@ -115,7 +107,7 @@ To bypass authentication, or to emit custom headers on all requests to your remo
115
107
]
116
108
```
117
109
118
-
* To allow HTTP connections in trusted private networks, add the `--allow-http` flag. Note: This should only be used in secure private networks where traffic cannot be intercepted.
110
+
- To allow HTTP connections in trusted private networks, add the `--allow-http` flag. Note: This should only be used in secure private networks where traffic cannot be intercepted.
119
111
120
112
```json
121
113
"args": [
@@ -125,7 +117,7 @@ To bypass authentication, or to emit custom headers on all requests to your remo
125
117
]
126
118
```
127
119
128
-
* To enable detailed debugging logs, add the `--debug` flag. This will write verbose logs to `~/.mcp-auth/{server_hash}_debug.log` with timestamps and detailed information about the auth process, connections, and token refreshing.
120
+
- To enable detailed debugging logs, add the `--debug` flag. This will write verbose logs to `~/.mcp-auth/{server_hash}_debug.log` with timestamps and detailed information about the auth process, connections, and token refreshing.
If it does not exist yet, [you may need to enable it under Settings > Developer](https://modelcontextprotocol.io/quickstart/user#2-add-the-filesystem-mcp-server).
196
188
@@ -212,16 +204,16 @@ As of version `0.48.0`, Cursor supports unauthed SSE servers directly. If your M
212
204
213
205
For instructions on building & deploying remote MCP servers, including acting as a valid OAuth client, see the following resources:
*https://github.com/cloudflare/workers-oauth-provider for defining an MCP-comlpiant OAuth server in Cloudflare Workers
220
-
*https://github.com/cloudflare/agents/tree/main/examples/mcp for defining an `McpAgent` using the [`agents`](https://npmjs.com/package/agents) framework.
211
+
-https://github.com/cloudflare/workers-oauth-provider for defining an MCP-comlpiant OAuth server in Cloudflare Workers
212
+
-https://github.com/cloudflare/agents/tree/main/examples/mcp for defining an `McpAgent` using the [`agents`](https://npmjs.com/package/agents) framework.
221
213
222
214
For more information about testing these servers, see also:
0 commit comments