Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ LOG_STDIO=1
# Set the log level: trace, debug, info, warn, error, fatal, silent.
# Defaults to `info`, if not set.
LOG_LEVEL=debug

# App version, this gets added to the User-Agent header when calling Coupler.io API.
APP_VERSION=development
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ COUPLER_API_HOST=http://lvh.me:3000/mcp
COUPLER_ACCESS_TOKEN=test_token
LOG_LEVEL=debug
LOG_STDIO=1
APP_VERSION=test
2 changes: 2 additions & 0 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:
with:
context: .
file: docker/Dockerfile
build-args: |
APP_VERSION=${{ github.sha }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Build Docker image for development:
bin/build_image
```

You can now run the container with the MCP inspector for debugging:
You can now run the container with the MCP inspector for debugging in UI mode:
```shell
npm run inspect:docker
```
Expand Down Expand Up @@ -128,6 +128,20 @@ Edit your `claude_desktop_config.json`, add an entry for our server:
}
```

### Using MCP inspector
[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:

```shell
# List tools
npx @modelcontextprotocol/inspector --cli npm run dev --method tools/list

# Call list-dataflows tool
npx @modelcontextprotocol/inspector --cli npm run dev --method tools/call --tool-name list-dataflows

# Call get-schema tool
npx @modelcontextprotocol/inspector --cli npm run dev --method tools/call --tool-name get-schema --tool-arg dataflowId=<your data flow ID>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

```

### Testing the Docker image against Coupler.io staging
We build and publish a Docker image with of our MCP server, tagged `edge`, on every push to the `main` branch.

Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
FROM node:22.15.1-slim AS base

ARG APP_VERSION=development

ENV NODE_ENV=production
ENV COUPLER_API_HOST=https://app.coupler.io/mcp
ENV LOG_LEVEL=silent
ENV APP_VERSION=$APP_VERSION

WORKDIR /app

Expand Down
Loading