Token导航 LogoToken导航TokenDH.com
Shell History MCP Server logo
AI代理未说明官方级别未说明来源级核验

Shell History MCP Server

MCP Server

Shell历史服务器通过模型上下文协议(MCP)将用户的Shell命令历史与AI助手连接,允许AI代理通过结构化函数调用查询历史命令。适用于个人开发者调试和项目回顾。

工具数

1

提示词数

0

GitHub Stars

0

资源数

0
Go命令行工具Token认证

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Quentinchampenois

提供方

Quentinchampenois

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

MCP - Shell History Server

__⚠️ Disclaimer: This project is only for discover and demo purpose, there is no active development planned. Furthermore, it is only for personal use because it exposes entire shell history and represents a very high confidentiality and security risk.__

__💡I recommend to clear history before using it like: "history -c"__

shell-history-mcp-server bridges your shell history and AI assistants using the Model Context Protocol (MCP). It reads shell commands from ZSH, then lets AI agents query them through structured function calls

Functions:

  • shell_history: Returns shell history commands

Examples

Prompt:

On which project did I work today ?

Output:

  • You should see a tool call to the Shell History before output is generated

Getting started

  1. Clone the project
$ git clone https://github.com/quentinchampenois/shell-history-mcp-server.git 
$ cd shell-history-mcp-server
  1. Build the server
$ go mod tidy
$ go build -o shell-history-mcp-server

💡 Binary shell-history-mcp-server must be present in $PATH to be callable

🚀 MCP Server is ready to use ! But how ? If you try to run it directly $ ./shell-history-mcp-server process will run but nothing happens, and it's the expected behaviour.

Use @modelcontextprotocol/inspector to debug

Package @modelcontextprotocol/inspector starts a WebUI to test directly your MCP server, test output based on provided input.

Requirements

  • Node

How to

Start inspector as following

$ npx @modelcontextprotocol/inspector shell-history-mcp-server

Access WebUI at http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=

Configure client using Cherry studio and Scaleway AI provider

Requirements

  • Configure account on Scaleway and generate API token (~5 minutes)
  • Cherry studio installed

Configure Qwen3-235b from Scaleway on Cherry Studio

Open Cherry Studio and configure the Scaleway provider:

01_CONFIGURE_PROVIDER.png 02_CONFIGURE_PROVIDER.png

Configure the MCP server just installed:

03_CONFIGURE_MCP.png 04_CONFIGURE_MCP.png 05_CONFIGURE_MCP.png

__Start a new chat with MCP__

06_CHAT_WITH_MCP.png

__🚀 Once Cherry studio let's give a try with a basic prompt, example: "Which scripts I am using ?"__

Extra

  • Source Cherry studio: https://github.com/CherryHQ/cherry-studio
  • Source Scaleway AI (Generative API): https://www.scaleway.com/en/docs/generative-apis/quickstart/
  • Go MCP SDK: https://github.com/modelcontextprotocol/go-sdk/tree/main
  • MCP Inspector: https://modelcontextprotocol.io/docs/tools/inspector

目录标签

目录标签

Go命令行工具Token认证Shell历史本地部署AI助手开发调试MCP协议

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

1

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明token部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP