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
4 changes: 2 additions & 2 deletions api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ fixtures-clean:

# MCP Server commands
mcp-build:
@go build -o bin/nixopus-mcp-server ./cmd/mcp-server
@go build -o nixopus-mcp-server ./cmd/mcp-server

mcp-run: mcp-build
@./bin/nixopus-mcp-server
@./nixopus-mcp-server

mcp-dev:
@if command -v air >/dev/null 2>&1; then \
Expand Down
2 changes: 1 addition & 1 deletion api/api/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"version": "v1",
"status": "active",
"release_date": "2026-01-11T03:07:25.946061+05:30",
"release_date": "2025-12-16T14:18:54.683478+05:30",
"end_of_life": "0001-01-01T00:00:00Z",
"changes": [
"Initial API version"
Expand Down
13 changes: 13 additions & 0 deletions api/cmd/mcp-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,34 @@ package main

import (
"context"
"io"
"log"

"github.com/modelcontextprotocol/go-sdk/mcp"
"github.com/raghavyuva/nixopus-api/internal/config"
"github.com/raghavyuva/nixopus-api/internal/features/logger"
"github.com/raghavyuva/nixopus-api/internal/features/supertokens"
mcp_pkg "github.com/raghavyuva/nixopus-api/internal/mcp"
"github.com/raghavyuva/nixopus-api/internal/queue"
"github.com/raghavyuva/nixopus-api/internal/redisclient"
"github.com/raghavyuva/nixopus-api/internal/storage"
"github.com/vmihailenco/taskq/v3"
)

func main() {
store := config.Init()
ctx := context.Background()
l := logger.NewLogger()

// Initialize Redis client and queue
redisClient, err := redisclient.New(config.AppConfig.Redis.URL)
if err != nil {
log.Fatalf("failed to create redis client for queue: %v", err)
}

taskq.SetLogger(log.New(io.Discard, "", 0))
queue.Init(redisClient)

// Initialize SuperTokens for authentication
app := &storage.App{
Store: store,
Expand Down
Loading
Loading