Skip to content
Open
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
29 changes: 28 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@

BINARY=artf-agent
LANGUAGES=go # cpp go csharp objc python ruby js
DOCKER_IMAGE=artf-agent
DOCKER_TAG=latest

# Go build and run targets
.PHONY: build run-all run-grpc run-mcp run-web test
.PHONY: build run-all run-grpc run-mcp run-web test deps generate

deps:
go mod download
@echo "Ensure protoc plugins are installed:"
@echo " go install google.golang.org/protobuf/cmd/protoc-gen-go@latest"
@echo " go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest"

generate:
bash scripts/generate.sh

build:
go build -o $(BINARY) ./cmd/agent
Expand Down Expand Up @@ -37,6 +48,22 @@ run-rust: build-rust

build-all: build build-rust

# Docker targets
.PHONY: docker-build docker-run-all docker-compose-up docker-compose-down

docker-build:
docker build -t $(DOCKER_IMAGE):$(DOCKER_TAG) .

docker-run-all:
docker run --rm -p 50051:50051 -p 8081:8081 -p 8080:8080 \
$(DOCKER_IMAGE):$(DOCKER_TAG)

docker-compose-up:
docker compose up -d

docker-compose-down:
docker compose down

# Protobuf targets

bindings:
Expand Down
46 changes: 27 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,35 @@ Go module dependencies (managed via `go.mod`):
#### Build and Run

```bash
# Install dependencies
# Download Go module dependencies
make deps

# Generate protobuf code
# Generate protobuf code (requires protoc and plugins)
make generate

# Build the server
make build

# Run with all services enabled
# Run with all services enabled (gRPC + MCP + Web UI)
make run-all

# Run in development mode (verbose)
make run-dev
# Run individual services
make run-grpc # gRPC only (port 50051)
make run-mcp # MCP only (port 50052)
make run-web # Web UI + MCP (port 8081)
```

#### Rust Implementation

```bash
# Build the Rust server
make build-rust

# Run the Rust server (gRPC on 50053, HTTP on 8082)
make run-rust

# Build both Go and Rust
make build-all
```

#### Docker Deployment
Expand Down Expand Up @@ -190,22 +205,15 @@ This configures the agent so that:
# Run unit tests
make test

# Run with coverage
make test-coverage

# Test gRPC endpoint (requires grpcurl)
make grpc-test

# Test MCP endpoint
make mcp-test
# Test gRPC endpoint manually (requires grpcurl)
grpcurl -plaintext localhost:50051 describe
grpcurl -plaintext -d @ localhost:50051 \
com.iabtechlab.bidstream.mutation.services.v1.RTBExtensionPoint/GetMutations \
< samples/banner-basic.json

# Check health endpoints
make health-check

# Send sample requests via MCP
make sample-banner
make sample-video
make sample-bidshade
curl http://localhost:8080/health/live
curl http://localhost:8080/health/ready
```

### Security
Expand Down
File renamed without changes.