From cbb3d2c34a62265221ee5ace8cc7b1f35097ed6f Mon Sep 17 00:00:00 2001 From: Alex Clarke <39523942+Dark-Alex-17@users.noreply.github.com> Date: Fri, 7 Nov 2025 18:21:58 -0700 Subject: [PATCH 1/6] build: Removed the remaining IDE metadata directories --- .idea/.gitignore | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 .idea/.gitignore diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 0a8642f..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml -# Zeppelin ignored files -/ZeppelinRemoteNotebooks/ From 245c567d30f0e8efc206815b396f04828847e65d Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Sat, 8 Nov 2025 15:59:05 -0700 Subject: [PATCH 2/6] bug: Removed the github MCP server and slack MCP server from mcp.json so users can just use Loki without any other setup and add more later --- README.md | 17 +---------------- assets/functions/mcp.json | 23 ----------------------- docs/AICHAT-MIGRATION.md | 6 +++--- 3 files changed, 4 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 05d1c89..8ba5755 100644 --- a/README.md +++ b/README.md @@ -164,21 +164,6 @@ guide you through the process when you first attempt to access the vault. So, to loki --list-secrets ``` -### First Time Setup -In order for Loki to function correctly, you'll need to add a few secrets to the Loki vault so the MCP servers can -function. - -**GitHub MCP Server:** -* `GITHUB_PERSONAL_ACCESS_TOKEN` - A GitHub Personal Access Token with `repo` and `workflow` scopes. - See [Creating a GitHub Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) - -#### Add the secrets to the Loki vault -You can add the secrets to the Loki vault using the following commands (First time use will prompt you to create a vault -password file): -```sh -loki --add-secret GITHUB_PERSONAL_ACCESS_TOKEN -``` - ### Tab-Completions You can also enable tab completions to make using Loki easier. To do so, add the following to your shell profile: ```shell @@ -273,4 +258,4 @@ The appearance of Loki can be modified using the following settings: | `save_shell_history` | `true` | Enables or disables REPL command history | ## Creator -* [Alex Clarke](https://github.com/Dark-Alex-17) \ No newline at end of file +* [Alex Clarke](https://github.com/Dark-Alex-17) diff --git a/assets/functions/mcp.json b/assets/functions/mcp.json index f7e5604..b8d9093 100644 --- a/assets/functions/mcp.json +++ b/assets/functions/mcp.json @@ -1,31 +1,8 @@ { "mcpServers": { - "github": { - "command": "docker", - "args": [ - "run", - "-i", - "--rm", - "-e", - "GITHUB_PERSONAL_ACCESS_TOKEN", - "ghcr.io/github/github-mcp-server" - ], - "env": { - "GITHUB_PERSONAL_ACCESS_TOKEN": "{{GITHUB_PERSONAL_ACCESS_TOKEN}}" - } - }, "docker": { "command": "uvx", "args": ["mcp-server-docker"] - }, - "slack": { - "command": "npx", - "args": ["-y", "slack-mcp-server@latest", "--transport", "stdio"], - "env": { - "SLACK_MCP_XOXC_TOKEN": "{{SLACK_MCP_XOXC_TOKEN}}", - "SLACK_MCP_XOXD_TOKEN": "{{SLACK_MCP_XOXD_TOKEN}}", - "SLACK_MCP_ADD_MESSAGE_TOOL": true - } } } } diff --git a/docs/AICHAT-MIGRATION.md b/docs/AICHAT-MIGRATION.md index a4ece1a..f48050f 100644 --- a/docs/AICHAT-MIGRATION.md +++ b/docs/AICHAT-MIGRATION.md @@ -3,8 +3,8 @@ Loki originally started as a fork of AIChat but has since evolved into its own s As a result, there's some changes you'll need to make to your AIChat configuration to be able to use Loki. -Be sure you've followed the [first-time setup steps](../README.md#first-time-setup) so that the Loki configuration -directory and subdirectories exist and is populated with the built-in defaults. +Be sure you've run `loki` at least once so that the Loki configuration directory and subdirectories exist and is +populated with the built-in defaults. ## Global Configuration File You should be able to copy/paste your AIChat configuration file into your Loki configuration directory. Since the @@ -208,4 +208,4 @@ Here's how to migrate your functions over to Loki from the `llm-functions` repos ``` Refer to the [custom bash tools docs](./function-calling/CUSTOM-BASH-TOOLS.md) to learn how to compile and test bash -tools in Loki without needing to use `argc`. \ No newline at end of file +tools in Loki without needing to use `argc`. From efbe76e1fce2b3192143a24002cd2c0e7228ffcc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 8 Nov 2025 23:02:39 +0000 Subject: [PATCH 3/6] =?UTF-8?q?bump:=20version=200.1.1=20=E2=86=92=200.1.2?= =?UTF-8?q?=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53a63f3..0e7796a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## v0.1.2 (2025-11-08) + ## v0.1.1 (2025-11-08) ## v0.1.0 (2025-11-07) diff --git a/Cargo.lock b/Cargo.lock index b0b8e64..2ee90c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3089,7 +3089,7 @@ dependencies = [ [[package]] name = "loki-ai" -version = "0.1.1" +version = "0.1.2" dependencies = [ "ansi_colours", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 9f89002..6568d76 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "loki-ai" -version = "0.1.1" +version = "0.1.2" edition = "2024" authors = ["Alex Clarke "] description = "An all-in-one, batteries included LLM CLI Tool" From 46517a4e15b297f46ce36f318478bbc61b71fe92 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Sat, 8 Nov 2025 16:09:32 -0700 Subject: [PATCH 4/6] refactor: Gave the GitHub MCP server a default placeholder value that doesn't require the vault --- CHANGELOG.md | 2 -- Cargo.lock | 2 +- Cargo.toml | 2 +- assets/functions/mcp.json | 14 ++++++++++++++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e7796a..53a63f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,3 @@ -## v0.1.2 (2025-11-08) - ## v0.1.1 (2025-11-08) ## v0.1.0 (2025-11-07) diff --git a/Cargo.lock b/Cargo.lock index 2ee90c2..b0b8e64 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3089,7 +3089,7 @@ dependencies = [ [[package]] name = "loki-ai" -version = "0.1.2" +version = "0.1.1" dependencies = [ "ansi_colours", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 6568d76..9f89002 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "loki-ai" -version = "0.1.2" +version = "0.1.1" edition = "2024" authors = ["Alex Clarke "] description = "An all-in-one, batteries included LLM CLI Tool" diff --git a/assets/functions/mcp.json b/assets/functions/mcp.json index b8d9093..23b197c 100644 --- a/assets/functions/mcp.json +++ b/assets/functions/mcp.json @@ -1,5 +1,19 @@ { "mcpServers": { + "github": { + "command": "docker", + "args": [ + "run", + "-i", + "--rm", + "-e", + "GITHUB_PERSONAL_ACCESS_TOKEN", + "ghcr.io/github/github-mcp-server" + ], + "env": { + "GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_TOKEN" + } + }, "docker": { "command": "uvx", "args": ["mcp-server-docker"] From c1f5cfbbda4503a662debb5e363d5a71c9096b3d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 8 Nov 2025 23:13:34 +0000 Subject: [PATCH 5/6] =?UTF-8?q?bump:=20version=200.1.1=20=E2=86=92=200.1.2?= =?UTF-8?q?=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53a63f3..9ba536e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## v0.1.2 (2025-11-08) + +### Refactor + +- Gave the GitHub MCP server a default placeholder value that doesn't require the vault + ## v0.1.1 (2025-11-08) ## v0.1.0 (2025-11-07) diff --git a/Cargo.lock b/Cargo.lock index b0b8e64..2ee90c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3089,7 +3089,7 @@ dependencies = [ [[package]] name = "loki-ai" -version = "0.1.1" +version = "0.1.2" dependencies = [ "ansi_colours", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 9f89002..6568d76 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "loki-ai" -version = "0.1.1" +version = "0.1.2" edition = "2024" authors = ["Alex Clarke "] description = "An all-in-one, batteries included LLM CLI Tool" From 9bf4fcd9439dc4004504cf81d4e7b8dfa62f69c2 Mon Sep 17 00:00:00 2001 From: Alex Clarke <39523942+Dark-Alex-17@users.noreply.github.com> Date: Wed, 26 Nov 2025 15:53:54 -0700 Subject: [PATCH 6/6] ci: Updated the README to be a bit more clear in some sections --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 8ba5755..a1c98c1 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,6 @@ Coming from [AIChat](https://github.com/sigoden/aichat)? Follow the [migration g ## Quick Links * [AIChat Migration Guide](./docs/AICHAT-MIGRATION.md): Coming from AIChat? Follow the migration guide to get started. -* [History](#history): A history of how Loki came to be. * [Installation](#install): Install Loki * [Getting Started](#getting-started): Get started with Loki by doing first-run setup steps. * [REPL](./docs/REPL.md): Interactive Read-Eval-Print Loop for conversational interactions with LLMs and Loki. @@ -41,21 +40,7 @@ Coming from [AIChat](https://github.com/sigoden/aichat)? Follow the [migration g * [Client Configurations](./docs/clients/CLIENTS.md): Configuration instructions for various LLM providers. * [Patching API Requests](./docs/clients/PATCHES.md): Learn how to patch API requests for advanced customization. * [Custom Themes](./docs/THEMES.md): Change the look and feel of Loki to your preferences with custom themes. - ---- - -## History -Loki originally started as a fork of the fantastic [AIChat CLI](https://github.com/sigoden/aichat). The purpose was to -simply fix a bug in how MCP servers worked with AIChat so that I could specify different ones for agents. However, it -has since evolved far beyond that and become a passion project with a life of its own! - -Loki now has first class MCP server support (with support for local and remote servers alike), a built-in vault for -interpolating secrets in configuration files, built-in agents, built-in macros, dynamic tab completions, integrated -custom functions (no `argc` dependency), improved documentation, and much more with many more plans for the future! - -The original kudos goes out to all the developers of the wonderful AIChat project! - ---- +* [History](#history): A history of how Loki came to be. ## Prerequisites Loki requires the following tools to be installed on your system: @@ -257,5 +242,20 @@ The appearance of Loki can be modified using the following settings: | `user_agent` | `null` | The name of the `User-Agent` that should be passed in the `User-Agent` header on all requests to model providers | | `save_shell_history` | `true` | Enables or disables REPL command history | +--- + +## History +Loki originally started as a fork of the fantastic [AIChat CLI](https://github.com/sigoden/aichat). The purpose was to +simply fix a bug in how MCP servers worked with AIChat so that I could specify different ones for agents. However, it +has since evolved far beyond that and become a passion project with a life of its own! + +Loki now has first class MCP server support (with support for local and remote servers alike), a built-in vault for +interpolating secrets in configuration files, built-in agents, built-in macros, dynamic tab completions, integrated +custom functions (no `argc` dependency), improved documentation, and much more with many more plans for the future! + +The original kudos goes out to all the developers of the wonderful AIChat project! + +--- + ## Creator * [Alex Clarke](https://github.com/Dark-Alex-17)