Skip to content

Commit 70f84fc

Browse files
authored
Merge pull request #2 from athapong/remove_tailor_made_nlp
Remove tailor made nlp
2 parents 1fc1d59 + 61c4ea8 commit 70f84fc

File tree

16 files changed

+613
-1818
lines changed

16 files changed

+613
-1818
lines changed

docs/google_maps_tools.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Google Maps Tools for MCP
2+
3+
This document describes the Google Maps integration tools available in the Model Context Protocol (MCP) server.
4+
5+
## Setup
6+
7+
1. Obtain a Google Maps API key from the [Google Cloud Console](https://console.cloud.google.com/google/maps-apis)
8+
2. Set the API key as an environment variable:
9+
```
10+
export GOOGLE_MAPS_API_KEY=your_api_key_here
11+
```
12+
3. Enable the Google Maps tools using the tool_manager:
13+
```
14+
maps_location_search
15+
maps_geocoding
16+
maps_place_details
17+
```
18+
19+
## Available Tools
20+
21+
### 1. Location Search (`maps_location_search`)
22+
23+
Search for places and locations using Google Maps.
24+
25+
**Parameters:**
26+
- `query` (string, required): Location or place to search for
27+
- `limit` (integer, optional): Maximum number of results to return (default: 5)
28+
29+
**Example:**
30+
```json
31+
{
32+
"query": "coffee shops in San Francisco"
33+
}
34+
```
35+
36+
### 2. Geocoding (`maps_geocoding`)
37+
38+
Convert addresses to geographic coordinates (geocoding) or coordinates to addresses (reverse geocoding).
39+
40+
**Parameters for Geocoding:**
41+
- `address` (string): Address to geocode
42+
43+
**Parameters for Reverse Geocoding:**
44+
- `lat` (float): Latitude coordinate
45+
- `lng` (float): Longitude coordinate
46+
47+
**Example - Geocoding:**
48+
```json
49+
{
50+
"address": "1600 Amphitheatre Parkway, Mountain View, CA"
51+
}
52+
```
53+
54+
**Example - Reverse Geocoding:**
55+
```json
56+
{
57+
"lat": 37.4224764,
58+
"lng": -122.0842499
59+
}
60+
```
61+
62+
### 3. Place Details (`maps_place_details`)
63+
64+
Get detailed information about a specific place using its place_id.
65+
66+
**Parameters:**
67+
- `place_id` (string, required): Google Maps place ID
68+
69+
**Example:**
70+
```json
71+
{
72+
"place_id": "ChIJN1t_tDeuEmsRUsoyG83frY4"
73+
}
74+
```
75+
76+
## Error Handling
77+
78+
All tools will return proper error messages if:
79+
- Required parameters are missing
80+
- The Google Maps API key is not set
81+
- There's an error from the Google Maps API service

go.mod

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,9 @@ require (
1919
)
2020

2121
require (
22-
github.com/PuerkitoBio/goquery v1.10.2
23-
github.com/deckarep/golang-set/v2 v2.7.0
24-
github.com/jdkato/prose/v2 v2.0.0
2522
github.com/joho/godotenv v1.5.1
26-
github.com/ledongthuc/pdf v0.0.0-20240201131950-da5b75280b06
27-
github.com/neo4j/neo4j-go-driver/v4 v4.4.7
28-
github.com/prometheus/client_golang v1.21.0
2923
github.com/sergi/go-diff v1.3.1
30-
github.com/sirupsen/logrus v1.9.3
24+
googlemaps.github.io/maps v1.7.0
3125
)
3226

3327
require (
@@ -37,11 +31,7 @@ require (
3731
cloud.google.com/go/compute/metadata v0.6.0 // indirect
3832
dario.cat/mergo v1.0.1 // indirect
3933
github.com/JohannesKaufmann/dom v0.2.0 // indirect
40-
github.com/andybalholm/cascadia v1.3.3 // indirect
41-
github.com/beorn7/perks v1.0.1 // indirect
42-
github.com/cespare/xxhash/v2 v2.3.0 // indirect
4334
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
44-
github.com/deckarep/golang-set v1.7.1 // indirect
4535
github.com/dlclark/regexp2 v1.10.0 // indirect
4636
github.com/felixge/httpsnoop v1.0.4 // indirect
4737
github.com/go-logr/logr v1.4.2 // indirect
@@ -53,27 +43,21 @@ require (
5343
github.com/googleapis/gax-go/v2 v2.14.1 // indirect
5444
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
5545
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
56-
github.com/mingrammer/commonregex v1.0.1 // indirect
57-
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5846
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
59-
github.com/prometheus/client_model v0.6.1 // indirect
60-
github.com/prometheus/common v0.62.0 // indirect
61-
github.com/prometheus/procfs v0.15.1 // indirect
6247
github.com/tidwall/match v1.1.1 // indirect
6348
github.com/tidwall/pretty v1.2.1 // indirect
49+
go.opencensus.io v0.24.0 // indirect
6450
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
6551
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect
6652
go.opentelemetry.io/otel v1.34.0 // indirect
6753
go.opentelemetry.io/otel/metric v1.34.0 // indirect
6854
go.opentelemetry.io/otel/trace v1.34.0 // indirect
69-
golang.org/x/crypto v0.33.0 // indirect
55+
golang.org/x/crypto v0.35.0 // indirect
7056
golang.org/x/net v0.35.0 // indirect
7157
golang.org/x/sys v0.30.0 // indirect
7258
golang.org/x/text v0.22.0 // indirect
7359
golang.org/x/time v0.10.0 // indirect
74-
gonum.org/v1/gonum v0.7.0 // indirect
7560
google.golang.org/genproto/googleapis/rpc v0.0.0-20250219182151-9fdb1cabc7b2 // indirect
7661
google.golang.org/grpc v1.70.0 // indirect
7762
google.golang.org/protobuf v1.36.5 // indirect
78-
gopkg.in/neurosnap/sentences.v1 v1.0.6 // indirect
7963
)

go.sum

Lines changed: 71 additions & 173 deletions
Large diffs are not rendered by default.

main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ func main() {
6161

6262
if isEnabled("jira") {
6363
tools.RegisterJiraTool(mcpServer)
64+
resources.RegisterJiraResource(mcpServer)
6465
}
6566

6667
if isEnabled("gitlab") {
@@ -98,7 +99,9 @@ func main() {
9899

99100
prompts.RegisterCodeTools(mcpServer)
100101

101-
resources.RegisterJiraResource(mcpServer)
102+
if isEnabled("google_maps") {
103+
tools.RegisterGoogleMapTools(mcpServer)
104+
}
102105

103106
if err := server.ServeStdio(mcpServer); err != nil {
104107
panic(fmt.Sprintf("Server error: %v", err))

pkg/graph/algorithms/traversal.go

Lines changed: 0 additions & 107 deletions
This file was deleted.

pkg/graph/metrics/metrics.go

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)