mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
feat: add weather, hazard, terrain and situation tools
Add get_weather, get_regional_brief, get_cyclones, get_fire_perimeters, get_terrain_height, find_military_installations and get_map_features over the application request services and the layers' sources. situation_brief combines weather, earthquakes, fires, aircraft and cyclones for an area by reusing those tools, marking sections that are unavailable instead of failing. get_hud_caption returns the app's heads-up display caption for the same overview.
This commit is contained in:
1 parent
8c97fed92d
commit
0a74e36ce8
11 files changed
+1093
-23
No files matched your search
@@ -4,6 +4,7 @@ import { PassThrough } from 'node:stream';
|
||||
import { createLocalMcpServer } from '../../server/mcp/server.js';
|
||||
import { createApiFetch } from '../../server/mcp/services.js';
|
||||
import { parseArgs, serveStdio } from '../../server/mcp/stdio.js';
|
||||
import { coreTools } from './index.js';
|
||||
|
||||
const usgs = {
|
||||
type: 'FeatureCollection',
|
||||
@@ -66,27 +67,10 @@ test('the stdio server answers newline-delimited requests using only its data so
|
||||
assert.equal(responses.length, 4);
|
||||
assert.equal(byId.get(1).result.serverInfo.name, 'gods-eye-view');
|
||||
assert.equal(byId.get(null).error.code, -32700);
|
||||
// Every Core tool's services are composed locally.
|
||||
assert.deepEqual(
|
||||
byId.get(2).result.tools.map((tool) => tool.name),
|
||||
[
|
||||
'get_earthquakes',
|
||||
'get_active_fires',
|
||||
'get_recent_launches',
|
||||
'aircraft_in_area',
|
||||
'find_aircraft',
|
||||
'get_aircraft_track',
|
||||
'get_aircraft_info',
|
||||
'next_satellite_pass',
|
||||
'satellites_overhead',
|
||||
'find_cctv_cameras',
|
||||
'get_cctv_snapshot',
|
||||
'find_radio_stations',
|
||||
'search_places',
|
||||
'places_nearby',
|
||||
'plan_route',
|
||||
'get_bike_share',
|
||||
'get_transit_vehicles',
|
||||
],
|
||||
coreTools.map((tool) => tool.name),
|
||||
);
|
||||
assert.equal(
|
||||
byId.get(3).result.content[0].text,
|
||||
|
||||
Reference in new issue
Block a user