Skip to content

Commit a660a7d

Browse files
Merge pull request #6 from gleanwork/naming-conventions
task: Updates tool names to be more specific (this matches other MCP server implementations)
2 parents a7dcd0d + 825b131 commit a660a7d

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,36 @@ export GLEAN_API_TOKEN=your_api_token
5353
export GLEAN_ACT_AS=user@example.com
5454
```
5555

56+
## MCP Client Configuration
57+
58+
To configure this MCP server in your MCP client (such as Claude Desktop, Windsurf, Cursor, etc.), add the following configuration to your MCP client settings:
59+
60+
```json
61+
{
62+
"mcpServers": {
63+
"glean": {
64+
"command": "npx",
65+
"args": ["-y", "@gleanwork/mcp-server"],
66+
"env": {
67+
"GLEAN_SUBDOMAIN": "<glean instance subdomain>",
68+
"GLEAN_API_TOKEN": "<glean api token>"
69+
}
70+
}
71+
}
72+
}
73+
```
74+
75+
Replace the environment variable values with your actual Glean credentials.
76+
5677
## Tools
5778

58-
### search
79+
### glean_search
5980

6081
Search Glean's content index using the Glean Search API. This tool allows you to query Glean's content index with various filtering and configuration options.
6182

6283
For complete parameter details, see [Search API Documentation](https://developers.glean.com/client/operation/search/)
6384

64-
### chat
85+
### glean_chat
6586

6687
Interact with Glean's AI assistant using the Glean Chat API. This tool allows you to have conversational interactions with Glean's AI, including support for message history, citations, and various configuration options.
6788

@@ -80,7 +101,7 @@ node build/index.js
80101
The server can also be run in inspect mode, which provides additional debugging information:
81102

82103
```bash
83-
pnpm inspect
104+
pnpm inspector
84105
```
85106

86107
This will run MCP's inspector, which allows you to execute and debug calls to the server.

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
5656
return {
5757
tools: [
5858
{
59-
name: 'search',
60-
description: 'Search Glean',
59+
name: 'glean_search',
60+
description: 'Search Glean Enterprise Knowledge',
6161
inputSchema: zodToJsonSchema(search.SearchSchema),
6262
},
6363
{
64-
name: 'chat',
65-
description: 'Chat with Glean',
64+
name: 'glean_chat',
65+
description: "Chat with Glean Assistant using Glean's RAG",
6666
inputSchema: zodToJsonSchema(chat.ChatSchema),
6767
},
6868
],

0 commit comments

Comments
 (0)