Skip to content

Commit 33fb004

Browse files
authored
fix: resolve MCP tools and Product config problems, optimize higress gateway URI parsing and resource identification (#128)
1 parent 38d6191 commit 33fb004

File tree

57 files changed

+1682
-1123
lines changed

Some content is hidden

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

57 files changed

+1682
-1123
lines changed

.github/workflows/pr-check.yml

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -162,32 +162,27 @@ jobs:
162162
comment += '- [x] Code is self-reviewed\n';
163163
comment += '```\n';
164164
165-
// Find and delete previous check comments
166-
const { data: comments } = await github.rest.issues.listComments({
167-
owner: context.repo.owner,
168-
repo: context.repo.repo,
169-
issue_number: pr.number,
165+
// Output to Job Summary (visible in PR checks)
166+
await core.summary
167+
.addRaw(comment)
168+
.write();
169+
170+
// Output to console
171+
console.log('\n' + comment);
172+
173+
// Create annotations for errors and warnings
174+
errors.forEach(error => {
175+
core.error(error.replace(/❌\s*/, ''), {
176+
title: 'PR Content Check Failed',
177+
file: '.github/PULL_REQUEST_TEMPLATE.md'
178+
});
170179
});
171180
172-
const botComment = comments.find(comment =>
173-
comment.user.type === 'Bot' &&
174-
comment.body.includes('PR Content Check Report')
175-
);
176-
177-
if (botComment) {
178-
await github.rest.issues.deleteComment({
179-
owner: context.repo.owner,
180-
repo: context.repo.repo,
181-
comment_id: botComment.id,
181+
warnings.forEach(warning => {
182+
core.warning(warning.replace(/⚠️\s*/, ''), {
183+
title: 'PR Content Suggestion',
184+
file: '.github/PULL_REQUEST_TEMPLATE.md'
182185
});
183-
}
184-
185-
// Post new comment
186-
await github.rest.issues.createComment({
187-
owner: context.repo.owner,
188-
repo: context.repo.repo,
189-
issue_number: pr.number,
190-
body: comment
191186
});
192187
193188
// Fail if there are errors

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Contributing to Himarket
1+
# Contributing to HiMarket
22

3-
Thank you for your interest in contributing to Himarket!
3+
Thank you for your interest in contributing to HiMarket!
44

55
We welcome contributions of all kinds: bug fixes, new features, documentation improvements, and more.
66

77
## Getting Started
88

99
### Fork and Clone the Repository
1010

11-
1. **Fork** the [Himarket repository](https://github.com/higress-group/himarket) to your GitHub account
11+
1. **Fork** the [HiMarket repository](https://github.com/higress-group/himarket) to your GitHub account
1212
2. **Clone** your fork to your local machine:
1313

1414
```bash

CONTRIBUTING_zh.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Himarket 贡献指南
1+
# HiMarket 贡献指南
22

3-
感谢你对 Himarket 项目的关注!
3+
感谢你对 HiMarket 项目的关注!
44

55
我们欢迎各种形式的贡献:Bug 修复、新功能、文档改进等等。
66

77
## 快速开始
88

99
### Fork 并 Clone 仓库
1010

11-
1. **Fork** [Himarket 仓库](https://github.com/higress-group/himarket) 到你的 GitHub 账号
11+
1. **Fork** [HiMarket 仓库](https://github.com/higress-group/himarket) 到你的 GitHub 账号
1212
2. **Clone** 你的 Fork 到本地:
1313

1414
```bash

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<a name="readme-top"></a>
22

33
<div align="center">
4-
<img width="406" height="96" alt="Himarket Logo" src="https://github.com/user-attachments/assets/e0956234-1a97-42c6-852d-411fa02c3f01" />
4+
<img width="406" height="96" alt="HiMarket Logo" src="https://github.com/user-attachments/assets/e0956234-1a97-42c6-852d-411fa02c3f01" />
55

6-
<h1>Himarket AI Open Platform</h1>
6+
<h1>HiMarket AI Open Platform</h1>
77

88
<p align="center">
99
<b>English</b> | <a href="README_zh.md">简体中文</a>
@@ -27,47 +27,47 @@
2727

2828
## Table of Contents
2929

30-
- [What is Himarket?](#what-is-himarket)
30+
- [What is HiMarket?](#what-is-himarket)
3131
- [System Architecture](#system-architecture)
3232
- [Quick Start](#quick-start)
3333
- [Documentation](#documentation)
3434
- [Community](#community)
3535
- [Contributors](#contributors)
3636
- [Star History](#star-history)
3737

38-
## What is Himarket?
38+
## What is HiMarket?
3939

40-
Himarket is an enterprise-grade AI open platform built on Higress AI Gateway, helping enterprises build private AI capability marketplace to uniformly manage and distribute AI resources such as LLM, MCP Server, and Agent. The platform encapsulates distributed AI capabilities into standardized API products, supports multi-version management and gray-scale release, provides self-service developer portal, and features comprehensive enterprise-level operation capabilities including security control, observability analysis, metering and billing, making AI resource sharing and reuse efficient and convenient.
40+
HiMarket is an enterprise-grade AI open platform built on Higress AI Gateway, helping enterprises build private AI capability marketplace to uniformly manage and distribute AI resources such as LLM, MCP Server, and Agent. The platform encapsulates distributed AI capabilities into standardized API products, supports multi-version management and gray-scale release, provides self-service developer portal, and features comprehensive enterprise-level operation capabilities including security control, observability analysis, metering and billing, making AI resource sharing and reuse efficient and convenient.
4141

4242
<div align="center">
43-
<img src="https://github.com/user-attachments/assets/645a3962-2f0a-412e-b501-e8eb6fc50bb1" alt="Himarket 核心能力" width="700px" />
43+
<img src="https://github.com/user-attachments/assets/645a3962-2f0a-412e-b501-e8eb6fc50bb1" alt="HiMarket 核心能力" width="700px" />
4444
<br/>
4545
<b>Capabilities</b>
4646
</div>
4747

4848
## System Architecture
4949

5050
<div align="center">
51-
<img src="https://github.com/user-attachments/assets/ecbb3d2e-138b-4192-992e-9cd4a20b3fc3" alt="Himarket System Architecture" width="700px" />
51+
<img src="https://github.com/user-attachments/assets/ecbb3d2e-138b-4192-992e-9cd4a20b3fc3" alt="HiMarket System Architecture" width="700px" />
5252
<br/>
5353
<b>System Architecture</b>
5454
</div>
5555

56-
Himarket system architecture consists of three layers:
56+
HiMarket system architecture consists of three layers:
5757

58-
1. **Infrastructure**: Composed of AI Gateway, API Gateway, Higress and Nacos. Himarket abstracts and encapsulates underlying AI resources based on these components to form standard API products for external use.
58+
1. **Infrastructure**: Composed of AI Gateway, API Gateway, Higress and Nacos. HiMarket abstracts and encapsulates underlying AI resources based on these components to form standard API products for external use.
5959
2. **AI Open Platform Admin**: Management platform for administrators to create and customize portals, manage AI resources such as MCP Server, Model, and Agent, including setting authentication policies and subscription approval workflows. The admin portal also provides observability dashboard to help administrators monitor AI resource usage and operational status in real-time.
6060
3. **AI Open Platform Portal**: Developer-facing portal site, also known as AI Marketplace or AI Hub, providing one-stop self-service where developers can complete identity registration, credential application, product browsing and subscription, online debugging, and more.
6161

6262
<table>
6363
<tr>
6464
<td align="center">
65-
<img src="https://github.com/user-attachments/assets/e7a933ea-10bb-457e-a082-550e939a1b58" width="500px" height="200px" alt="Himarket Admin Portal"/>
65+
<img src="https://github.com/user-attachments/assets/e7a933ea-10bb-457e-a082-550e939a1b58" width="500px" height="200px" alt="HiMarket Admin Portal"/>
6666
<br />
6767
<b>Admin Dashboard</b>
6868
</td>
6969
<td align="center">
70-
<img src="https://github.com/user-attachments/assets/ba8eca62-92f8-42b7-b28e-58546e9e8821" width="500px" height="200px" alt="Himarket Developer Portal"/>
70+
<img src="https://github.com/user-attachments/assets/ba8eca62-92f8-42b7-b28e-58546e9e8821" width="500px" height="200px" alt="HiMarket Developer Portal"/>
7171
<br />
7272
<b>Developer Portal</b>
7373
</td>
@@ -124,7 +124,7 @@ npm run dev
124124

125125
<br/>
126126

127-
Use the `deploy.sh` script to deploy Himarket, Higress, and Nacos with data initialization.
127+
Use the `deploy.sh` script to deploy HiMarket, Higress, and Nacos with data initialization.
128128

129129
```bash
130130
# Clone repository
@@ -134,7 +134,7 @@ cd himarket/deploy/docker/scripts
134134
# Deploy full stack and initialize
135135
./deploy.sh install
136136

137-
# Or deploy Himarket only (without Nacos/Higress)
137+
# Or deploy HiMarket only (without Nacos/Higress)
138138
./deploy.sh himarket-only
139139

140140
# Uninstall all services
@@ -155,7 +155,7 @@ cd himarket/deploy/docker/scripts
155155

156156
<br/>
157157

158-
Use the `deploy.sh` script to deploy Himarket to Kubernetes cluster.
158+
Use the `deploy.sh` script to deploy HiMarket to Kubernetes cluster.
159159

160160
```bash
161161
# Clone repository
@@ -165,7 +165,7 @@ cd himarket/deploy/helm/scripts
165165
# Deploy full stack and initialize
166166
./deploy.sh install
167167

168-
# Or deploy Himarket only (without Nacos/Higress)
168+
# Or deploy HiMarket only (without Nacos/Higress)
169169
./deploy.sh himarket-only
170170

171171
# Uninstall
@@ -214,7 +214,7 @@ For detailed usage instructions, please refer to:
214214

215215
## Contributors
216216

217-
Thanks to all the developers who have contributed to Himarket!
217+
Thanks to all the developers who have contributed to HiMarket!
218218

219219
<a href="https://github.com/higress-group/himarket/graphs/contributors">
220220
<img alt="contributors" src="https://contrib.rocks/image?repo=higress-group/himarket"/>

README_zh.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<a name="readme-top"></a>
22

33
<div align="center">
4-
<img width="406" height="96" alt="Himarket Logo" src="https://github.com/user-attachments/assets/e0956234-1a97-42c6-852d-411fa02c3f01" />
4+
<img width="406" height="96" alt="HiMarket Logo" src="https://github.com/user-attachments/assets/e0956234-1a97-42c6-852d-411fa02c3f01" />
55

6-
<h1>Himarket AI 开放平台</h1>
6+
<h1>HiMarket AI 开放平台</h1>
77

88
<p align="center">
99
<a href="README.md">English</a> | <b>简体中文</b>
@@ -27,47 +27,47 @@
2727

2828
## 目录
2929

30-
- [Himarket 是什么?](#himarket-是什么)
30+
- [HiMarket 是什么?](#himarket-是什么)
3131
- [系统架构](#系统架构)
3232
- [快速开始](#快速开始)
3333
- [文档](#文档)
3434
- [社区](#社区)
3535
- [贡献者](#贡献者)
3636
- [Star History](#star-history)
3737

38-
## Himarket 是什么?
38+
## HiMarket 是什么?
3939

40-
Himarket 是基于 Higress AI 网关构建的企业级 AI 开放平台,帮助企业构建私有 AI 能力市场,统一管理和分发 LLM、MCP Server、Agent 等 AI 资源。平台将分散的 AI 能力封装为标准化的 API 产品,支持多版本管理和灰度发布,提供自助式开发者门户,并具备安全管控、观测分析、计量计费等完整的企业级运营能力,让 AI 资源的共享和复用变得高效便捷。
40+
HiMarket 是基于 Higress AI 网关构建的企业级 AI 开放平台,帮助企业构建私有 AI 能力市场,统一管理和分发 LLM、MCP Server、Agent 等 AI 资源。平台将分散的 AI 能力封装为标准化的 API 产品,支持多版本管理和灰度发布,提供自助式开发者门户,并具备安全管控、观测分析、计量计费等完整的企业级运营能力,让 AI 资源的共享和复用变得高效便捷。
4141

4242
<div align="center">
43-
<img src="https://github.com/user-attachments/assets/db49ea33-c914-424d-8e3b-4ba75ec7a746" alt="Himarket 核心能力" width="700px" />
43+
<img src="https://github.com/user-attachments/assets/db49ea33-c914-424d-8e3b-4ba75ec7a746" alt="HiMarket 核心能力" width="700px" />
4444
<br/>
4545
<b>核心能力</b>
4646
</div>
4747

4848
## 系统架构
4949

5050
<div align="center">
51-
<img src="https://github.com/user-attachments/assets/4e01fa52-dfb3-41a4-a5b6-7a9cc79528e4" alt="Himarket 系统架构" width="700px" />
51+
<img src="https://github.com/user-attachments/assets/4e01fa52-dfb3-41a4-a5b6-7a9cc79528e4" alt="HiMarket 系统架构" width="700px" />
5252
<br/>
5353
<b>系统架构</b>
5454
</div>
5555

56-
Himarket 系统架构分为三层:
56+
HiMarket 系统架构分为三层:
5757

58-
1. **基础设施**:由 AI 网关、API 网关、Higress 和 Nacos 组成。Himarket 基于这些组件对底层 AI 资源进行抽象封装,形成可对外开放的标准 API 产品。
58+
1. **基础设施**:由 AI 网关、API 网关、Higress 和 Nacos 组成。HiMarket 基于这些组件对底层 AI 资源进行抽象封装,形成可对外开放的标准 API 产品。
5959
2. **AI 开放平台后台**:面向管理员的管理平台,管理员可以创建和定制门户,管理 MCP Server、Model、Agent 等 AI 资源,例如设置鉴权策略、订阅审批流程等。后台还提供可观测大盘,帮助管理员实时了解 AI 资源的使用和运行状态。
6060
3. **AI 开放平台前台**:面向外部开发者的门户站点,也称为 AI 市场或 AI 中台,提供一站式自助服务,开发者可以完成身份注册、凭证申请、浏览订阅产品、在线调试等操作。
6161

6262
<table>
6363
<tr>
6464
<td align="center">
65-
<img src="https://github.com/user-attachments/assets/e7a933ea-10bb-457e-a082-550e939a1b58" width="500px" height="200px" alt="Himarket 管理后台"/>
65+
<img src="https://github.com/user-attachments/assets/e7a933ea-10bb-457e-a082-550e939a1b58" width="500px" height="200px" alt="HiMarket 管理后台"/>
6666
<br />
6767
<b>管理后台</b>
6868
</td>
6969
<td align="center">
70-
<img src="https://github.com/user-attachments/assets/ba8eca62-92f8-42b7-b28e-58546e9e8821" width="500px" height="200px" alt="Himarket 开发者门户"/>
70+
<img src="https://github.com/user-attachments/assets/ba8eca62-92f8-42b7-b28e-58546e9e8821" width="500px" height="200px" alt="HiMarket 开发者门户"/>
7171
<br />
7272
<b>开发者门户</b>
7373
</td>
@@ -124,7 +124,7 @@ npm run dev
124124

125125
<br/>
126126

127-
使用 `deploy.sh` 脚本完成 Himarket、Higress、Nacos 全栈部署和数据初始化。
127+
使用 `deploy.sh` 脚本完成 HiMarket、Higress、Nacos 全栈部署和数据初始化。
128128

129129
```bash
130130
# 克隆项目
@@ -134,7 +134,7 @@ cd himarket/deploy/docker/scripts
134134
# 部署全栈服务并初始化
135135
./deploy.sh install
136136

137-
# 或仅部署 Himarket 服务(不含 Nacos/Higress)
137+
# 或仅部署 HiMarket 服务(不含 Nacos/Higress)
138138
./deploy.sh himarket-only
139139

140140
# 卸载所有服务
@@ -155,7 +155,7 @@ cd himarket/deploy/docker/scripts
155155

156156
<br/>
157157

158-
使用 `deploy.sh` 脚本将 Himarket 部署到 Kubernetes 集群。
158+
使用 `deploy.sh` 脚本将 HiMarket 部署到 Kubernetes 集群。
159159

160160
```bash
161161
# 克隆项目
@@ -165,7 +165,7 @@ cd himarket/deploy/helm/scripts
165165
# 部署全栈服务并初始化
166166
./deploy.sh install
167167

168-
# 或仅部署 Himarket 服务(不含 Nacos/Higress)
168+
# 或仅部署 HiMarket 服务(不含 Nacos/Higress)
169169
./deploy.sh himarket-only
170170

171171
# 卸载
@@ -214,7 +214,7 @@ cd himarket/deploy/helm/scripts
214214

215215
## 贡献者
216216

217-
感谢所有为 Himarket 做出贡献的开发者!
217+
感谢所有为 HiMarket 做出贡献的开发者!
218218

219219
<a href="https://github.com/higress-group/himarket/graphs/contributors">
220220
<img alt="contributors" src="https://contrib.rocks/image?repo=higress-group/himarket"/>

0 commit comments

Comments
 (0)