Skip to content

Commit 3e51aaa

Browse files
authored
Merge pull request #6 from railsware/CPL-19830/list-dataflows
[CPL-19830] list dataflows
2 parents 5ab53b0 + f047309 commit 3e51aaa

File tree

14 files changed

+1311
-339
lines changed

14 files changed

+1311
-339
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ LOG_STDIO=1
1010
# Set the log level: trace, debug, info, warn, error, fatal, silent.
1111
# Defaults to `info`, if not set.
1212
LOG_LEVEL=debug
13+
14+
# App version, this gets added to the User-Agent header when calling Coupler.io API.
15+
APP_VERSION=development

.env.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ COUPLER_API_HOST=http://lvh.me:3000/mcp
33
COUPLER_ACCESS_TOKEN=test_token
44
LOG_LEVEL=debug
55
LOG_STDIO=1
6+
APP_VERSION=test

.github/workflows/publish-docker-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
6565
with:
6666
context: .
6767
file: docker/Dockerfile
68+
build-args: |
69+
APP_VERSION=${{ github.sha }}
6870
push: true
6971
tags: ${{ steps.meta.outputs.tags }}
7072
labels: ${{ steps.meta.outputs.labels }}

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Build Docker image for development:
9797
bin/build_image
9898
```
9999

100-
You can now run the container with the MCP inspector for debugging:
100+
You can now run the container with the MCP inspector for debugging in UI mode:
101101
```shell
102102
npm run inspect:docker
103103
```
@@ -128,6 +128,20 @@ Edit your `claude_desktop_config.json`, add an entry for our server:
128128
}
129129
```
130130

131+
### Using MCP inspector
132+
[Use MCP inspector in CLI mode](https://github.com/modelcontextprotocol/inspector/blob/24e8861a88f843d57cdb637a5ae3afd0e528c5f3/README.md#cli-mode) for smoke testing the server with a short feedback loop:
133+
134+
```shell
135+
# List tools
136+
npx @modelcontextprotocol/inspector --cli npm run dev --method tools/list
137+
138+
# Call list-dataflows tool
139+
npx @modelcontextprotocol/inspector --cli npm run dev --method tools/call --tool-name list-dataflows
140+
141+
# Call get-schema tool
142+
npx @modelcontextprotocol/inspector --cli npm run dev --method tools/call --tool-name get-schema --tool-arg dataflowId=<your data flow ID>
143+
```
144+
131145
### Testing the Docker image against Coupler.io staging
132146
We build and publish a Docker image with of our MCP server, tagged `edge`, on every push to the `main` branch.
133147

docker/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
FROM node:22.15.1-slim AS base
22

3+
ARG APP_VERSION=development
4+
35
ENV NODE_ENV=production
46
ENV COUPLER_API_HOST=https://app.coupler.io/mcp
57
ENV LOG_LEVEL=silent
8+
ENV APP_VERSION=$APP_VERSION
69

710
WORKDIR /app
811

0 commit comments

Comments
 (0)