agr-mcp-server 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -53
- package/dist/client.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,9 +4,9 @@ MCP server for querying [Alliance of Genome Resources](https://www.alliancegenom
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Option 1: npx (Recommended)
|
|
8
8
|
|
|
9
|
-
Add to
|
|
9
|
+
No installation required. Add to your MCP client config:
|
|
10
10
|
|
|
11
11
|
```json
|
|
12
12
|
{
|
|
@@ -19,69 +19,33 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
|
|
|
19
19
|
}
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
###
|
|
22
|
+
### Option 2: Global install
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
```json
|
|
27
|
-
{
|
|
28
|
-
"mcpServers": {
|
|
29
|
-
"agr-genomics": {
|
|
30
|
-
"command": "npx",
|
|
31
|
-
"args": ["-y", "agr-mcp-server"]
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### Cursor
|
|
38
|
-
|
|
39
|
-
Add to Cursor settings (Settings > MCP Servers):
|
|
40
|
-
|
|
41
|
-
```json
|
|
42
|
-
{
|
|
43
|
-
"agr-genomics": {
|
|
44
|
-
"command": "npx",
|
|
45
|
-
"args": ["-y", "agr-mcp-server"]
|
|
46
|
-
}
|
|
47
|
-
}
|
|
24
|
+
```bash
|
|
25
|
+
npm install -g agr-mcp-server
|
|
48
26
|
```
|
|
49
27
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
Add to `~/.codeium/windsurf/mcp_config.json`:
|
|
28
|
+
Then use in your config:
|
|
53
29
|
|
|
54
30
|
```json
|
|
55
31
|
{
|
|
56
32
|
"mcpServers": {
|
|
57
33
|
"agr-genomics": {
|
|
58
|
-
"command": "
|
|
59
|
-
"args": ["-y", "agr-mcp-server"]
|
|
34
|
+
"command": "agr-mcp-server"
|
|
60
35
|
}
|
|
61
36
|
}
|
|
62
37
|
}
|
|
63
38
|
```
|
|
64
39
|
|
|
65
|
-
###
|
|
66
|
-
|
|
67
|
-
```bash
|
|
68
|
-
git clone https://github.com/nuin/agr-mcp-server-js.git
|
|
69
|
-
cd agr-mcp-server-js
|
|
70
|
-
npm install && npm run build
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
Then use the local path in your config:
|
|
40
|
+
### Config file locations
|
|
74
41
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
```
|
|
42
|
+
| Client | Config path |
|
|
43
|
+
|--------|-------------|
|
|
44
|
+
| Claude Desktop (macOS) | `~/Library/Application Support/Claude/claude_desktop_config.json` |
|
|
45
|
+
| Claude Desktop (Windows) | `%APPDATA%\Claude\claude_desktop_config.json` |
|
|
46
|
+
| Claude Code | `~/.claude/settings.json` |
|
|
47
|
+
| Cursor | Settings > MCP Servers |
|
|
48
|
+
| Windsurf | `~/.codeium/windsurf/mcp_config.json` |
|
|
85
49
|
|
|
86
50
|
## Usage
|
|
87
51
|
|
|
@@ -129,8 +93,8 @@ Human, mouse, rat, zebrafish, fly, worm, yeast, xenopus
|
|
|
129
93
|
|
|
130
94
|
## Data Sources
|
|
131
95
|
|
|
132
|
-
-
|
|
133
|
-
-
|
|
96
|
+
- [Alliance of Genome Resources API](https://www.alliancegenome.org/api)
|
|
97
|
+
- [AllianceMine](https://www.alliancegenome.org/alliancemine)
|
|
134
98
|
|
|
135
99
|
## License
|
|
136
100
|
|
package/dist/client.js
CHANGED
|
@@ -204,7 +204,7 @@ export class AllianceClient {
|
|
|
204
204
|
* Get list of supported species from API
|
|
205
205
|
*/
|
|
206
206
|
async getSpeciesList() {
|
|
207
|
-
const url = `${this.agrApiUrl}/
|
|
207
|
+
const url = `${this.agrApiUrl}/species`;
|
|
208
208
|
try {
|
|
209
209
|
return await this.fetch(url);
|
|
210
210
|
}
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { ENTITY_TYPES } from "./types.js";
|
|
|
7
7
|
const client = new AllianceClient();
|
|
8
8
|
const server = new McpServer({
|
|
9
9
|
name: "agr-genomics",
|
|
10
|
-
version: "4.0.
|
|
10
|
+
version: "4.0.3",
|
|
11
11
|
});
|
|
12
12
|
// Tool: Search genes
|
|
13
13
|
server.tool("search_genes", "Search for genes across all Alliance of Genome Resources model organisms. Supports species filtering.", {
|
package/dist/types.js
CHANGED
|
@@ -37,7 +37,8 @@ export const SPECIES_MAP = {
|
|
|
37
37
|
worm: "Caenorhabditis elegans",
|
|
38
38
|
yeast: "Saccharomyces cerevisiae",
|
|
39
39
|
frog: "Xenopus laevis",
|
|
40
|
-
|
|
40
|
+
laevis: "Xenopus laevis",
|
|
41
|
+
tropicalis: "Xenopus tropicalis",
|
|
41
42
|
};
|
|
42
43
|
// Gene ID prefixes by data source
|
|
43
44
|
export const GENE_ID_PREFIXES = [
|