How do I configure the host and port?
Use the `--host` and `--port` command-line flags when running the server, for example `go run main.go --host 127.0.0.1 --port 3000`.
@xavieryang007
基本信息
紫微斗数排盘
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"5fOJpz2QWYjL4-ho3rYxj": {
"name": "紫微斗数",
"type": "sse",
"description": "紫微斗数",
"isActive": true,
"baseUrl": "http://127.0.0.1:8080/sse",
"disabledTools": []
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
A microservice developed in Go for Zi Wei Dou Shu (Purple Star Astrology) chart calculation. It supports both solar and lunar calendar date inputs and provides two REST API endpoints. This service is intended for developers integrating Chinese astrology calculations into their applications.
Clone the repository, run go mod tidy and go run main.go to start the server (Go 1.23+ required). The service listens on 127.0.0.1:3000 by default; use --host and --port flags to customize. Send GET requests to /ziwei_yangli (solar calendar) or /ziwei_nongli (lunar calendar) with the required query parameters (year, month, day, hour, minute, sex). The response is a standard JSON object containing the calculated chart.
Use the `--host` and `--port` command-line flags when running the server, for example `go run main.go --host 127.0.0.1 --port 3000`.
The endpoints require six parameters: `year`, `month`, `day`, `hour`, `minute` (all numbers) and `sex` (string: "男" or "女").
Yes, the hour value (0–23) is mapped to the corresponding two-hour period (e.g., 0 is 子时 23:00–01:00, 1 is 丑时 01:00–03:00, etc.) before calculation.
`/ziwei_yangli` treats the input date as solar calendar, while `/ziwei_nongli` treats it as lunar calendar. Both return a chart in the same JSON format.
Go version 1.23 or higher is needed to compile and run the service.
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Open-source MCP to use Blender with any LLM
🚀 The fast, Pythonic way to build MCP servers and clients.

DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
评论