Compare commits

..

5 Commits

Author SHA1 Message Date
mudler
dfa3728867 chore(mcpbox): use ubuntu:24.04 as base
Signed-off-by: mudler <mudler@localai.io>
2025-04-25 17:06:17 +02:00
Richard Palethorpe
15efd2d527 fix(docker): Add mcpbox server to extended compose files (#84)
Signed-off-by: Richard Palethorpe <io@richiejp.com>
2025-04-25 17:04:06 +02:00
Ettore Di Giacinto
5e3bc0f89b fix(discord): automatically add 'Bot' prefix to token if missing (#83)
Signed-off-by: mudler <mudler@localai.io>
2025-04-25 16:20:29 +02:00
Ettore Di Giacinto
12209ab926 feat(browseragent): post screenshot on slack (#81)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-04-24 23:17:10 +02:00
dependabot[bot]
547e9cd0c4 chore(deps): bump actions/checkout from 2 to 4 (#44)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-24 22:45:29 +02:00
5 changed files with 21 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v4
- run: | - run: |
# Add Docker's official GPG key: # Add Docker's official GPG key:
sudo apt-get update sudo apt-get update

View File

@@ -20,10 +20,10 @@ COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o mcpbox ./cmd/mcpbox RUN CGO_ENABLED=0 GOOS=linux go build -o mcpbox ./cmd/mcpbox
# Final stage # Final stage
FROM alpine:3.19 FROM ubuntu:22.04
# Install runtime dependencies # Install runtime dependencies
RUN apk add --no-cache ca-certificates tzdata docker RUN apt-get update && apt-get install -y ca-certificates tzdata docker.io bash
# Create non-root user # Create non-root user
#RUN adduser -D -g '' appuser #RUN adduser -D -g '' appuser

View File

@@ -12,6 +12,11 @@ services:
- /dev/dri/card1 - /dev/dri/card1
- /dev/dri/renderD129 - /dev/dri/renderD129
mcpbox:
extends:
file: docker-compose.yaml
service: mcpbox
localrecall: localrecall:
extends: extends:
file: docker-compose.yaml file: docker-compose.yaml

View File

@@ -17,6 +17,11 @@ services:
count: 1 count: 1
capabilities: [gpu] capabilities: [gpu]
mcpbox:
extends:
file: docker-compose.yaml
service: mcpbox
localrecall: localrecall:
extends: extends:
file: docker-compose.yaml file: docker-compose.yaml
@@ -30,4 +35,4 @@ services:
localagi: localagi:
extends: extends:
file: docker-compose.yaml file: docker-compose.yaml
service: localagi service: localagi

View File

@@ -30,9 +30,15 @@ func NewDiscord(config map[string]string) *Discord {
duration = 5 * time.Minute duration = 5 * time.Minute
} }
token := config["token"]
if !strings.HasPrefix(token, "Bot ") {
token = "Bot " + token
}
return &Discord{ return &Discord{
conversationTracker: NewConversationTracker[string](duration), conversationTracker: NewConversationTracker[string](duration),
token: config["token"], token: token,
defaultChannel: config["defaultChannel"], defaultChannel: config["defaultChannel"],
} }
} }