| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Agent Assistant is a system that allows AI agents to interact with human users through a web or mobile interface. It consists of four main components:
Note: There is an interreactiveui-askquetion branch, which is like an open-code question tool. You can just select the answer; no need for typing if the answer is provided by the agent.
AI Agent (Claude, etc.)
↓ (MCP Protocol)
agentassistant-mcp
↓ (Connect-Go RPC)
agentassistant-srv
↙ (WebSocket) ↘
Web Interface Flutter Client
# Build the server
go build -o agentassistant-srv ./cmd/agentassistant-srv
# Build the MCP server
go build -o agentassistant-mcp ./cmd/agentassistant-mcp./agentassistant-srvThe server will start on port 8080 and serve:
Edit agentassistant-mcp.toml:
agentassistant_server_host = "127.0.0.1"
agentassistant_server_port = 8080
agentassistant_server_token = "test-token"Start the MCP server:
./agentassistant-mcpOpen your browser and go to:
http://localhost:8080?token=test-token
The web interface is a React application located in the web/ directory.
cd web
npm install
npm run buildThe built files will be placed in web/dist/ and automatically served by the server.
For development:
cd web
npm run devThe Flutter client is located in the flutterclient/ directory.
Prerequisites:
Steps:
Install dependencies:
cd flutterclient
flutter pub getGenerate Protobuf files:
./generate_proto.sh
# or
protoc --proto_path=../proto --dart_out=lib/proto ../proto/agentassist.protoRun the application:
flutter runBuild for specific platforms:
flutter build apk --release # Android
flutter build ios --release # iOS
flutter build linux --release # Linuxgo test ./...Create agentassistant-mcp.toml:
agentassistant_server_host = "127.0.0.1"
agentassistant_server_port = 8080
agentassistant_server_token = "your-token-here"MCP Server:
./agentassistant-mcp -host localhost -port 8080 -token your-token -webAsk a question to the user through the web interface.
Parameters:
Notify the user that a task has been completed and send a work report.
Parameters:
中文提示词
1. **重要**:在任何的任务、对话中,如果你有需要澄清的问题/需求/细节/疑问,必须使用 Agent-Assistant 的 `ask_question` 工具来询问用户,根据用户反馈调整你的行为,继续处理。
2. **重要**:在任何的任务、对话中,在任务/对话完成前,必须使用 Agent-Assistant 的 `work_report` 工具来报告任务完成状态给用户,请求确认,得到用户的反馈后,如果不是明确的结束指令,则必须根据反馈内容调整你的行为,继续处理。
3. **重要**:调用 MCP 工具 Agent-Assistant 时,必须提供正确的 `project_directory` 参数,以确保上下文准确性。英文提示词
1. **Important**:In any task or conversation, if you have any questions, requirements, or doubts, you must use the `ask_question` tool of Agent-Assistant to ask the user. Based on the user's feedback, adjust your behavior and continue processing.
2. **Important**:In any task or conversation, before the task or conversation is completed, you must use the `work_report` tool of Agent-Assistant to report the task completion status to the user and request confirmation. After receiving the user's feedback, if it is not a clear end instruction, you must adjust your behavior based on the feedback content and continue processing.
3. **Important**:When calling the MCP tool of Agent-Assistant, you must provide the correct `project_directory` parameter to ensure contextual accuracy.This project is licensed under the MIT License.
| Back | FazBrowse Home | New Git URL |