Skip to content

Commit 7de055a

Browse files
committed
Merge remote-tracking branch 'origin/feature/MCP-Connections' into hawk/testing
# Conflicts: # _documentation/5-Deployment/3-Docker Deployment.md # app/Providers/AppServiceProvider.php
2 parents 43ee1bf + 7378ad0 commit 7de055a

126 files changed

Lines changed: 9902 additions & 1215 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_docker_production/config/model_providers.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
return [
4-
4+
55
/*
66
|--------------------------------------------------------------------------
77
| Default AI Models
@@ -13,10 +13,10 @@
1313
'default_models' => [
1414
'default_model' => env('DEFAULT_MODEL', 'gpt-4.1-nano'),
1515
'default_web_search_model' => env('DEFAULT_WEBSEARCH_MODEL', 'gemini-2.0-flash'),
16-
'default_file_upload_model' => env('DEFAULT_FILEUPLOAD_MODEL', 'meta-llama-3.1-8b-instruct'),
17-
'default_vision_model' => env('DEFAULT_VISION_MODEL', 'qwen2.5-vl-72b-instruct'),
16+
'default_file_upload_model' => env('DEFAULT_FILEUPLOAD_MODEL', 'qwen3-omni-30b-a3b-instruct'),
17+
'default_vision_model' => env('DEFAULT_VISION_MODEL', 'qwen3-omni-30b-a3b-instruct'),
1818
],
19-
19+
2020
/*
2121
* The default models to use when accessing HAWKI via an external application
2222
* If null, the general default models are used above (can be useful to prevent high cost models being used by external apps)
@@ -27,7 +27,7 @@
2727
// 'default_file_upload_model' => null,
2828
// 'default_vision_model' => null,
2929
],
30-
30+
3131
/*
3232
|--------------------------------------------------------------------------
3333
| System Models
@@ -44,7 +44,7 @@
4444
'prompt_improver' => env('PROMPT_IMPROVEMENT_MODEL', 'gpt-4.1-nano'),
4545
'summarizer' => env('SUMMARIZER_MODEL', 'gpt-4.1-nano'),
4646
],
47-
47+
4848
/*
4949
* The system models to use when accessing HAWKI via an external application
5050
* If null, the general system models are used above (can be useful to prevent high cost models being used by external apps)
@@ -54,7 +54,7 @@
5454
// 'prompt_improver' => null,
5555
// 'summarizer' => null,
5656
],
57-
57+
5858
/*
5959
|--------------------------------------------------------------------------
6060
| Model Providers

_documentation/2-GettingStarted/1-Local Installation.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ then navigate to `config/model_lists/ollama_models.php` and add your model attri
176176
],
177177
```
178178
179+
After adding or editing a model in the config file, sync it to the database:
180+
181+
```
182+
php hawki models sync --force
183+
```
184+
179185
>Before hosting models, make sure your system has the minimum required resources.
180186
181187
>**IMPORTANT**
@@ -255,6 +261,46 @@ php artisan migrate:fresh
255261
256262
---
257263
264+
### AI Tools Setup
265+
266+
HAWKI supports two types of AI tools: **function tools** (built-in PHP classes) and **MCP tools** (external servers via the Model Context Protocol).
267+
268+
**Function tools** are synced automatically on first run — no action needed. When you start the application or run any artisan/hawki command, HAWKI detects an empty `ai_tools` table and populates it from `config/tools.php` automatically.
269+
270+
To sync manually (or force a re-sync after changing `config/tools.php`):
271+
272+
```
273+
php hawki tools sync
274+
# or with --force to overwrite existing entries
275+
php hawki tools sync --force
276+
```
277+
278+
**MCP servers** are not auto-synced because they require network access. Register an MCP server interactively:
279+
280+
```
281+
php hawki tools add-mcp-server https://your-mcp-server.example.com
282+
```
283+
284+
You will be prompted for a label, description, API key (stored encrypted), and timeouts. HAWKI will connect to the server, discover its tools, and assign them to compatible models.
285+
286+
To view all registered tools:
287+
288+
```
289+
php hawki tools list
290+
```
291+
292+
To manage tool attributes (capability, description, active state):
293+
294+
```
295+
php hawki tools configure
296+
```
297+
298+
To enable or disable a tool without removing it, use the `active` toggle in `tools:configure`. Inactive tools are excluded from all model requests until re-enabled.
299+
300+
> **Tip:** Run `php hawki tools help` to see the full list of tool management commands.
301+
302+
---
303+
258304
259305
**Create Storage Link**
260306

0 commit comments

Comments
 (0)