Skip to content

Commit 7e32d6a

Browse files
authored
Merge pull request #16 from OctoMind-dev/resources
- install instructions - readme - getversion tool
2 parents 0bb8c6f + aba3d5a commit 7e32d6a

File tree

5 files changed

+128
-15
lines changed

5 files changed

+128
-15
lines changed

Diff for: README.md

+62-13
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,75 @@ The server uses 2 environment variables:
77
- APIKEY the apikey for octomind api
88
- OCTOMIND_API_URL base url for the api endpoint to use. defaults to https://app.octomind.dev/api
99

10-
## tools implemented
10+
## Tools
1111

12-
- getTestReport
13-
- executeTests
12+
The following tools are implemented in this MCP server:
1413

14+
- `search` - Search the Octomind documentation for a given query
15+
- `getTestCase` - Retrieve a test case for a given test target and test case ID
16+
- `executeTests` - Trigger test execution for a given test target on a specified URL
17+
- `getEnvironments` - List environments for a test target
18+
- `createEnvironment` - Create a new environment for a test target
19+
- `updateEnvironment` - Update an existing environment
20+
- `deleteEnvironment` - Delete an environment
21+
- `getTestReports` - Retrieve test reports for a test target
22+
- `getTestReport` - Get a specific test report by ID
23+
- `discovery` - Create a test case with a description or prompt
24+
- `getPrivateLocations` - List all private locations configured for the organization
25+
- `getVersion` - Get the current version of the Octomind MCP server
1526

16-
# config
27+
## Installation
1728

18-
to use the server e.g. in cursor you can configure it like this
29+
You can get configuration snippets for different clients by running:
1930

31+
```bash
32+
npx @octomind/octomind-mcp --clients
33+
```
34+
35+
This will output configuration examples for Claude Desktop, Cursor, and Windsurf. Here are the configuration files for each client:
36+
37+
### Claude Desktop (.claude-config.json)
38+
```json
39+
{
40+
"name": "Octomind MCP Server",
41+
"command": "npx",
42+
"args": [
43+
"@octomind/octomind-mcp"
44+
],
45+
"env": {
46+
"APIKEY": "your-api-key-here"
47+
}
48+
}
49+
```
50+
51+
### Cursor (cursor.json)
2052
```json
2153
{
22-
"mcpServers": {
23-
"octomind": {
24-
"command": "npx",
25-
"args": ["@octomind/octomind-mcp"],
26-
"env": {
27-
"APIKEY": "...."
28-
}
29-
}
54+
"name": "Octomind MCP Server",
55+
"command": "npx",
56+
"args": [
57+
"@octomind/octomind-mcp"
58+
],
59+
"env": {
60+
"APIKEY": "your-api-key-here"
3061
}
3162
}
3263
```
64+
65+
### Windsurf (config.json)
66+
```json
67+
{
68+
"name": "Octomind MCP Server",
69+
"command": "npx",
70+
"args": [
71+
"@octomind/octomind-mcp"
72+
],
73+
"environment": {
74+
"APIKEY": "your-api-key-here"
75+
}
76+
}
77+
```
78+
79+
Note: Replace `your-api-key-here` with your actual API key.
80+
81+
To get an APIKEY see here https://octomind.dev/docs/get-started/execution-without-ci#create-an-api-key

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@octomind/octomind-mcp",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "an mcp server for the octomind platform",
55
"main": "./dist/index.js",
66
"packageManager": "[email protected]+sha512.139cab068fdf0b751268179ac5f909b5be72afb4a75c513d1905d151befc8977b593d3cf8671ed83d4d6637c5c94b98ffbce108125de4a5a27a31233601a99de",

Diff for: src/index.ts

+46
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,55 @@ const buildServer = async (): Promise<McpServer> => {
1818
return server;
1919
};
2020

21+
const helpInstall = () => {
22+
const configs = {
23+
claude: {
24+
name: "Octomind MCP Server",
25+
command: "npx",
26+
args: ["@octomind/octomind-mcp"],
27+
env: {
28+
APIKEY: "your-api-key-here",
29+
},
30+
},
31+
cursor: {
32+
name: "Octomind MCP Server",
33+
command: "npx",
34+
args: ["@octomind/octomind-mcp"],
35+
env: {
36+
APIKEY: "your-api-key-here",
37+
},
38+
},
39+
windsurf: {
40+
name: "Octomind MCP Server",
41+
command: "npx",
42+
args: ["@octomind/octomind-mcp"],
43+
environment: {
44+
APIKEY: "your-api-key-here",
45+
},
46+
},
47+
};
48+
49+
console.error("Configuration snippets for different clients:\n");
50+
console.error("Claude Desktop (.claude-config.json):");
51+
console.error(`${JSON.stringify(configs.claude, null, 2)}\n`);
52+
53+
console.error("Cursor (cursor.json):");
54+
console.error(`${JSON.stringify(configs.cursor, null, 2)}\n`);
55+
56+
console.error("Windsurf (config.json):");
57+
console.error(`${JSON.stringify(configs.windsurf, null, 2)}\n`);
58+
59+
console.error("Note: Replace 'your-api-key-here' with your actual API key");
60+
process.exit(0);
61+
};
62+
2163
export const serverStartupTime = Date.now();
2264

2365
const start = async () => {
66+
const { argv } = process;
67+
if (argv[2] === "--clients") {
68+
helpInstall();
69+
}
2470
if (!process.env.APIKEY) {
2571
console.error("APIKEY environment variable is required");
2672
process.exit(1);

Diff for: src/tools.ts

+18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
22
import { z } from "zod";
33
import { uuidValidation } from "./types";
4+
import { version } from "./version";
45
import {
56
createEnvironment,
67
deleteEnvironment,
@@ -544,4 +545,21 @@ export const registerTools = async (server: McpServer): Promise<void> => {
544545
};
545546
},
546547
);
548+
549+
// Version information
550+
server.tool(
551+
"getVersion",
552+
"Returns the current version of the Octomind MCP server",
553+
{},
554+
async () => {
555+
return {
556+
content: [
557+
{
558+
type: "text",
559+
text: `Octomind MCP Server version: ${version}`,
560+
},
561+
],
562+
};
563+
},
564+
);
547565
};

Diff for: src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Generated by genversion.
2-
export const version = "1.0.6";
2+
export const version = "1.0.7";

0 commit comments

Comments
 (0)