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/ 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" diff --git a/README.md b/README.md index 05d1c89..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: @@ -164,21 +149,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 @@ -272,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) \ 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..23b197c 100644 --- a/assets/functions/mcp.json +++ b/assets/functions/mcp.json @@ -11,21 +11,12 @@ "ghcr.io/github/github-mcp-server" ], "env": { - "GITHUB_PERSONAL_ACCESS_TOKEN": "{{GITHUB_PERSONAL_ACCESS_TOKEN}}" + "GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_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`.