Skip to content

Commit ef08572

Browse files
authored
fix: updated base uri (#5)
1 parent 446e018 commit ef08572

File tree

10 files changed

+39
-33
lines changed

10 files changed

+39
-33
lines changed

.github/workflows/docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
with:
109109
context: .
110110
file: Dockerfile
111-
platforms: linux/arm64
111+
platforms: linux/amd64,linux/arm64
112112
push: true
113113
target: production
114114
cache-from: type=gha

.gitlab-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ typecheck:
110110
publish-dev-npm:
111111
stage: release
112112
interruptible: true
113+
allow_failure: true
113114
cache:
114115
<<: *cache_config
115116
policy: pull
@@ -134,9 +135,9 @@ publish-dev-docker:
134135
alias: docker
135136
variables:
136137
DOCKER_HOST: tcp://docker:2376
137-
DOCKER_TLS_CERTDIR: '/certs'
138+
DOCKER_TLS_CERTDIR: "/certs"
138139
DOCKER_TLS_VERIFY: 1
139-
DOCKER_CERT_PATH: '$DOCKER_TLS_CERTDIR/client'
140+
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
140141
# Set reference for this block
141142
before_script: &before_script_docker
142143
- apk add curl git jq

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ A comprehensive Model Context Protocol (MCP) server boilerplate built with TypeS
6060
npm run dev:setup
6161
```
6262

63+
#### Helm Chart
64+
65+
```bash
66+
helm repo add chrisleekr https://chrisleekr.github.io/helm-charts/
67+
helm repo update
68+
helm install mcp-server-boilerplate chrisleekr/mcp-server-boilerplate
69+
```
70+
6371
### Set up the MCP server for Cursor
6472

6573
1. Create MCP configuration file for local build
@@ -101,7 +109,6 @@ A comprehensive Model Context Protocol (MCP) server boilerplate built with TypeS
101109
### Setup Auth0 for authorization
102110

103111
1. Create a new application in Auth0
104-
105112
- Go to [Auth0 Dashboard](https://manage.auth0.com/)
106113
- Click on "Applications"
107114
- Click on "Create Application"
@@ -110,14 +117,12 @@ A comprehensive Model Context Protocol (MCP) server boilerplate built with TypeS
110117
- Click on "Create"
111118

112119
2. Set up the application
113-
114120
- Click on "Settings"
115121
- Set the following settings:
116122
- Allowed Callback URLs: `http://localhost:3000/oauth/auth0-callback`
117123
- Allowed Web Origins: `http://localhost:3000`
118124

119125
3. Create a new API
120-
121126
- Click on "APIs"
122127
- Click on "Create API"
123128
- Name: MCP Server Boilerplate

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release.config.mjs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,46 +19,46 @@ export default {
1919
{ type: 'test', release: false },
2020
{ type: 'build', release: false },
2121
{ type: 'ci', release: false },
22-
{ type: 'bump', release: 'patch' }
23-
]
24-
}
22+
{ type: 'bump', release: 'patch' },
23+
],
24+
},
2525
],
2626
'@semantic-release/release-notes-generator',
2727
[
2828
'@semantic-release/changelog',
2929
{
30-
changelogFile: 'CHANGELOG.md'
31-
}
30+
changelogFile: 'CHANGELOG.md',
31+
},
3232
],
3333
[
3434
'@semantic-release/npm',
3535
{
3636
pkgRoot: '.',
37-
npmPublish: false
38-
}
37+
npmPublish: false,
38+
},
3939
],
4040
[
4141
'@semantic-release/npm',
4242
{
4343
pkgRoot: 'dist',
44-
npmPublish: true
45-
}
44+
npmPublish: true,
45+
},
4646
],
4747
[
4848
'@semantic-release/git',
4949
{
50-
assets: ['package.json', 'CHANGELOG.md'],
50+
assets: ['package.json', 'package-lock.json', 'CHANGELOG.md'],
5151
message:
52-
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
53-
}
52+
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
53+
},
5454
],
5555
// '@semantic-release/gitlab',
5656
'@semantic-release/github',
5757
[
5858
'@semantic-release/exec',
5959
{
60-
successCmd: 'echo "${nextRelease.version}" > RELEASE_VERSION'
61-
}
62-
]
63-
]
60+
successCmd: 'echo "${nextRelease.version}" > RELEASE_VERSION',
61+
},
62+
],
63+
],
6464
};

src/core/server/auth/services/oauthService.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ export class OAuthService {
3737
}
3838

3939
public getOAuthAuthorizationServer(): OAuthServiceAuthorizationServer {
40-
const baseUrl = `http://${config.server.http.host}:${config.server.http.port}`;
41-
42-
const issuer = `${config.server.auth.issuer}`;
40+
const { baseUrl, issuer } = config.server.auth;
4341

4442
return {
4543
issuer,
@@ -224,7 +222,7 @@ export class OAuthService {
224222
// throw new Error('Provider not supported');
225223
// }
226224
const redirectUrl = this.auth0Provider.generateAuthorizationUrl({
227-
redirectUri: `http://${config.server.http.host}:${config.server.http.port}/oauth/auth0-callback`,
225+
redirectUri: `${config.server.auth.baseUrl}/oauth/auth0-callback`,
228226
// redirectUri: args.redirect_uri,
229227
state,
230228
codeChallenge,

src/core/server/auth/services/providers/auth0.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class Auth0Provider {
7272
code: params.code,
7373
// Note: redirect_uri must be OAuth Proxy redirect_uri.
7474
// redirect_uri: params.redirectUri,
75-
redirect_uri: `http://${config.server.http.host}:${config.server.http.port}/oauth/auth0-callback`,
75+
redirect_uri: `${config.server.auth.baseUrl}/oauth/auth0-callback`,
7676
code_verifier: params.codeVerifier,
7777
};
7878

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import express from 'express';
22

3-
import { loggingContext } from '../context';
4-
53
export function setupPingHandler(app: express.Application): void {
64
app.get('/ping', (_req, res) => {
7-
loggingContext.log('debug', 'Ping request');
85
res.send('pong');
96
});
107
}

src/core/server/http/middleware.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ export function setupMiddleware(app: Application): void {
1717
app.use(
1818
pinoHttp({
1919
logger: logger.getLogger(),
20+
autoLogging: {
21+
ignore: (req: Request) => {
22+
return req.headers['user-agent']?.includes('kube-probe') ?? false;
23+
},
24+
},
2025
})
2126
);
2227

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
/* Completeness */
6969
"skipLibCheck": true,
7070

71-
"types": ["node", "@rspack/core/module"]
71+
"types": ["node", "@rspack/core/module", "jest"]
7272
},
7373
"include": ["src/**/*", "test/**/*"],
7474
"exclude": ["node_modules", "dist"],

0 commit comments

Comments
 (0)