Skip to content

Commit e25ce08

Browse files
committed
fix: missing lib-types-builder
1 parent 101d739 commit e25ce08

File tree

5 files changed

+7
-33
lines changed

5 files changed

+7
-33
lines changed

.github/workflows/commits.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ jobs:
1919
- name: Send Keel notifications to staging-koumoul.com
2020
run: |
2121
curl -s --fail --show-error -X POST https://keel.admin.staging-koumoul.com/v1/webhooks/native -u ${{ secrets.KEEL_STAGING_USER }}:${{ secrets.KEEL_STAGING_PASSWORD }} -d '{"name": "ghcr.io/${{ github.repository }}", "tag": "${{ github.ref_name }}"}'
22-
curl -s --fail --show-error -X POST https://keel.admin.staging-koumoul.com/v1/webhooks/native -u ${{ secrets.KEEL_STAGING_USER }}:${{ secrets.KEEL_STAGING_PASSWORD }} -d '{"name": "ghcr.io/${{ github.repository }}/worker", "tag": "${{ github.ref_name }}"}'

.github/workflows/releases.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ jobs:
2424
- name: Send Keel notifications to koumoul.com
2525
run: |
2626
curl -s --fail --show-error -X POST https://keel.admin.koumoul.com/v1/webhooks/native -u ${{ secrets.KEEL_PROD_USER }}:${{ secrets.KEEL_PROD_PASSWORD }} -d '{"name": "ghcr.io/${{ github.repository }}", "tag": "${{ steps.get_version.outputs.major }}"}'
27-
curl -s --fail --show-error -X POST https://keel.admin.koumoul.com/v1/webhooks/native -u ${{ secrets.KEEL_PROD_USER }}:${{ secrets.KEEL_PROD_PASSWORD }} -d '{"name": "ghcr.io/${{ github.repository }}/worker", "tag": "${{ steps.get_version.outputs.major }}"}'
2827

.github/workflows/reuse-build.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,3 @@ jobs:
4949
labels: ${{ steps.docker_meta_main.outputs.labels }}
5050
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}/buildcache
5151
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}/buildcache,mode=max
52-
53-
- name: Prepare docker tags for worker image
54-
id: docker_meta_worker
55-
uses: docker/metadata-action@v5
56-
with:
57-
images: ghcr.io/${{ github.repository }}/worker
58-
tags: |
59-
type=ref,event=branch
60-
type=ref,event=pr
61-
type=semver,pattern={{version}}
62-
type=semver,pattern={{major}}.{{minor}}
63-
type=semver,pattern={{major}}
64-
65-
- name: Build and push worker image
66-
id: docker_build_worker
67-
uses: docker/build-push-action@v5
68-
with:
69-
context: .
70-
push: true
71-
target: worker
72-
tags: ${{ steps.docker_meta_worker.outputs.tags }}
73-
platforms: linux/amd64
74-
labels: ${{ steps.docker_meta_worker.outputs.labels }}
75-
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}/buildcache

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"node": "v24"
2727
},
2828
"dependencies": {
29+
"@data-fair/lib-types-builder": "^1.8.2",
2930
"@commitlint/cli": "^19.8.1",
3031
"@commitlint/config-conventional": "^19.8.1",
3132
"@data-fair/lib-express": "^1.20.5",
@@ -38,7 +39,6 @@
3839
"zod": "^3.24.2"
3940
},
4041
"devDependencies": {
41-
"@data-fair/lib-types-builder": "^1.8.2",
4242
"@modelcontextprotocol/inspector": "^0.16.2",
4343
"@types/config": "^3.3.5",
4444
"eslint": "^9.32.0",

src/app.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default app
1212
app.set('query parser', 'simple')
1313
app.set('json spaces', 2)
1414

15-
app.use(createSiteMiddleware('mcp', { prefixOptional: true }))
15+
app.use(createSiteMiddleware('mcp'))
1616

1717
// Store transports for each session type
1818
const transports = {
@@ -27,7 +27,7 @@ const mcpServer = await MCPServer(config.dataFairUrl)
2727
// Based on https://github.com/modelcontextprotocol/typescript-sdk?tab=readme-ov-file#with-session-management
2828

2929
// Handle POST requests for client-to-server communication
30-
app.post('/mcp', async (req: Request, res: Response) => {
30+
app.post('/datasets/mcp', async (req: Request, res: Response) => {
3131
try {
3232
const transport: StreamableHTTPServerTransport = new StreamableHTTPServerTransport({
3333
sessionIdGenerator: undefined
@@ -68,14 +68,14 @@ const handleSessionRequest = async (req: Request, res: Response) => {
6868
}
6969

7070
// SSE notifications not supported in stateless mode
71-
app.get('/mcp', handleSessionRequest)
71+
app.get('/datasets/mcp', handleSessionRequest)
7272
// Session termination not needed in stateless mode
73-
app.delete('/mcp', handleSessionRequest)
73+
app.delete('/datasets/mcp', handleSessionRequest)
7474

7575
// -------------- Legacy Endpoints for SSE older clients --------------
7676
// Based on https://github.com/modelcontextprotocol/typescript-sdk?tab=readme-ov-file#server-side-compatibility
7777

78-
app.get('/sse', async (req: Request, res: Response) => {
78+
app.get('/datasets/sse', async (req: Request, res: Response) => {
7979
const transport = new SSEServerTransport('/messages', res)
8080
transports.sse[transport.sessionId] = transport
8181

@@ -86,7 +86,7 @@ app.get('/sse', async (req: Request, res: Response) => {
8686
await mcpServer.connect(transport)
8787
})
8888

89-
app.post('/messages', async (req: Request, res: Response) => {
89+
app.post('/datasets/messages', async (req: Request, res: Response) => {
9090
const sessionId = req.query.sessionId as string
9191
const transport = transports.sse[sessionId]
9292
if (transport) {

0 commit comments

Comments
 (0)