Skip to content

Commit 6023e7c

Browse files
authored
Merge pull request #31 from devsapp/fix-time
fix: time mcp-schema.json
2 parents e051ae0 + ab0c9cc commit 6023e7c

File tree

2 files changed

+29
-172
lines changed

2 files changed

+29
-172
lines changed

start-mcp-time/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Edition: 3.0.0
22
Type: Project
33
Name: fcai-start-mcp-time
4-
Version: 0.0.7
4+
Version: 0.0.8
55
Provider:
66
- 阿里云 # 取值内容参考:https://api.devsapp.cn/v3/common/args.html
77
Description: Time MCP Server 模版

start-mcp-time/src/mcp-schema.json

Lines changed: 28 additions & 171 deletions
Original file line numberDiff line numberDiff line change
@@ -1,189 +1,46 @@
11
{
22
"tools": [
33
{
4-
"inputSchema": {
5-
"type": "object",
6-
"properties": {
7-
"address": {
8-
"description": "待解析的地址(最多支持84个字节。可以输入两种样式的值,分别是:1、标准的结构化地址信息,如北京市海淀区上地十街十号【推荐,地址结构越完整,解析精度越高】2、支持“*路与*路交叉口”描述方式,如北一环路和阜阳路的交叉路口第二种方式并不总是有返回结果,只有当地址库中存在该地址描述时才有返回。)",
9-
"type": "string"
4+
"inputSchema":{
5+
"type":"object",
6+
"properties":{
7+
"timezone":{
8+
"description":"IANA timezone name (e.g., 'America/New_York', 'Europe/London'). Use 'Asia/Shanghai' as local timezone if no timezone provided by the user.",
9+
"type":"string"
1010
}
1111
},
12-
"required": [
13-
"address"
12+
"required":[
13+
"timezone"
1414
]
1515
},
16-
"name": "map_geocode",
17-
"description": "地理编码服务"
16+
"name":"get_current_time",
17+
"description":"Get current time in a specific timezones"
1818
},
1919
{
20-
"inputSchema": {
21-
"type": "object",
22-
"properties": {
23-
"latitude": {
24-
"description": "Latitude coordinate",
25-
"type": "number"
20+
"inputSchema":{
21+
"type":"object",
22+
"properties":{
23+
"target_timezone":{
24+
"description":"Target IANA timezone name (e.g., 'Asia/Tokyo', 'America/San_Francisco'). Use 'Asia/Shanghai' as local timezone if no target timezone provided by the user.",
25+
"type":"string"
2626
},
27-
"longitude": {
28-
"description": "Longitude coordinate",
29-
"type": "number"
30-
}
31-
},
32-
"required": [
33-
"latitude",
34-
"longitude"
35-
]
36-
},
37-
"name": "map_reverse_geocode",
38-
"description": "全球逆地理编码"
39-
},
40-
{
41-
"inputSchema": {
42-
"type": "object",
43-
"properties": {
44-
"query": {
45-
"description": "检索关键字",
46-
"type": "string"
47-
},
48-
"bounds": {
49-
"description": "检索多边形区域",
50-
"type": "string"
51-
},
52-
"location": {
53-
"description": "圆形区域检索中心点,不支持多个点",
54-
"type": "string"
55-
},
56-
"region": {
57-
"description": "检索行政区划区域",
58-
"type": "string"
59-
}
60-
},
61-
"required": [
62-
"query"
63-
]
64-
},
65-
"name": "map_search_places",
66-
"description": "地点检索服务(包括城市检索、圆形区域检索、多边形区域检索)"
67-
},
68-
{
69-
"inputSchema": {
70-
"type": "object",
71-
"properties": {
72-
"uid": {
73-
"description": "poi的uid",
74-
"type": "string"
75-
},
76-
"scope": {
77-
"description": "检索结果详细程度。取值为1 或空,则返回基本信息;取值为2,返回检索POI详细信息",
78-
"type": "string"
79-
}
80-
},
81-
"required": [
82-
"uid"
83-
]
84-
},
85-
"name": "map_place_details",
86-
"description": "地点详情检索服务"
87-
},
88-
{
89-
"inputSchema": {
90-
"type": "object",
91-
"properties": {
92-
"mode": {
93-
"description": "路线类型,可选值:driving(驾车)、walking(步行)、riding(骑行)、motorcycle(摩托车)",
94-
"type": "string",
95-
"enum": [
96-
"driving",
97-
"walking",
98-
"riding",
99-
"motorcycle"
100-
]
27+
"source_timezone":{
28+
"description":"Source IANA timezone name (e.g., 'America/New_York', 'Europe/London'). Use 'Asia/Shanghai' as local timezone if no source timezone provided by the user.",
29+
"type":"string"
10130
},
102-
"destinations": {
103-
"description": "终点的纬度,经度。",
104-
"type": "array",
105-
"items": {
106-
"type": "string"
107-
}
108-
},
109-
"origins": {
110-
"description": "起点的纬度,经度。",
111-
"type": "array",
112-
"items": {
113-
"type": "string"
114-
}
115-
}
116-
},
117-
"required": [
118-
"origins",
119-
"destinations"
120-
]
121-
},
122-
"name": "map_distance_matrix",
123-
"description": "计算多个出发地和目的地的距离和路线用时"
124-
},
125-
{
126-
"inputSchema": {
127-
"type": "object",
128-
"properties": {
129-
"mode": {
130-
"description": "路线规划类型,可选值:driving(驾车)、walking(步行)、riding(骑行)、transit(公交)",
131-
"type": "string",
132-
"enum": [
133-
"driving",
134-
"walking",
135-
"riding",
136-
"transit"
137-
]
138-
},
139-
"origin": {
140-
"description": "起点经纬度,格式为:纬度,经度;小数点后不超过6位,40.056878,116.30815",
141-
"type": "string"
142-
},
143-
"destination": {
144-
"description": "终点经纬度,格式为:纬度,经度;小数点后不超过6位,40.056878,116.30815",
145-
"type": "string"
146-
}
147-
},
148-
"required": [
149-
"origin",
150-
"destination"
151-
]
152-
},
153-
"name": "map_directions",
154-
"description": "路线规划服务, 计算出发地到目的地的距离、路线用时、路线方案"
155-
},
156-
{
157-
"inputSchema": {
158-
"type": "object",
159-
"properties": {
160-
"districtId": {
161-
"description": "行政区划代码(适用于区、县级别)",
162-
"type": "string"
163-
}
164-
},
165-
"required": [
166-
"districtId"
167-
]
168-
},
169-
"name": "map_weather",
170-
"description": "通过行政区划代码获取实时天气信息和未来5天天气预报"
171-
},
172-
{
173-
"inputSchema": {
174-
"type": "object",
175-
"properties": {
176-
"ip": {
177-
"description": "IP地址",
178-
"type": "string"
31+
"time":{
32+
"description":"Time to convert in 24-hour format (HH:MM)",
33+
"type":"string"
17934
}
18035
},
181-
"required": [
182-
"ip"
36+
"required":[
37+
"source_timezone",
38+
"time",
39+
"target_timezone"
18340
]
18441
},
185-
"name": "map_ip_location",
186-
"description": "通过IP地址获取位置信息"
42+
"name":"convert_time",
43+
"description":"Convert time between timezones"
18744
}
18845
]
18946
}

0 commit comments

Comments
 (0)