nah
nahはRustで書かれたライブラリで、シンプルな構文と高いパフォーマンスを提供します。開発者は、効率的なコード生成やデバッグ機能を活用し、Rustの特性を最大限に引き出すことができます。特に、非同期処理やメモリ管理に優れた機能を持ち、Rustのエコシステムにおいて重要な役割を果たします。
GitHubスター
4
ユーザー評価
未評価
お気に入り
0
閲覧数
16
フォーク
0
イシュー
0
nah: Not A Human
A user agent for exploring Model Context Protocol and chatting with language models.
WARNING: Still in active development, use at your own risk!
Quick intro
nah
supports a MCP config file in the Claude desktop app config format.
$ nah ~/mcp/config.json
nah
also supports to chat with a LLM with all tools from the MCP servers. See example config for more details.
For Qwen3 models where you have controls on whether to enable thinkings, using following config to enable/disable thinking mode:
{
"model": {
"baseUrl": "https://llm.api.provider.site/api/v1",
"model": "qwen/qwen3-32b",
"authToken": "<AUTH_TOKEN_HERE>",
"extraParams": {
"enable_thinking": true
}
},
"mcpServers": {...}
}
After launching nah
, it will active all MCP servers declared in the config file and provide a shell-like user interface. Here are some useful commands supported by nah
.
chat
: Chat with a LLM with all tools installed.use
: Select a MCP server to interactive with.list_tools
: List all tools on the current server.call_tool
: Call a tool on the current server.list_resources
: List all resources on the current server.get_resources
: Read resources through a URI.
The help
command will print out the list of available commands.
All commuications (JSON-RPC messages) will be stored in a directory in the current working directory. A .jsonl
file will be create for each server. Use --history-path
argument to set the path to store all these records:
$ nah ~/mcp/config.json --history-path trial_1_history
# History will be stored as trial_1_history/[server name].jsonl
Configuration
By deault, users are asked to provide arguments for tool calls through editing a file in vi
. Environment variable $EDITOR
controls the editor to use:
$ EDITOR=nano nah ~/mcp/config.json
# nano will be used as the editor
Copyright
Copyright (c) 2025 Mengxiao Lin. Released under Mozilla Public License 2.0. Check LICENSE file for more details.