@uniquedomains/mcp-server 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +247 -2
- package/dist/chunk-FDHNAV5B.js +157 -0
- package/dist/chunk-LOMVELQR.js +22280 -0
- package/dist/http.js +14 -0
- package/dist/index.js +74 -0
- package/dist/stdio.js +31 -0
- package/package.json +64 -4
package/dist/http.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
startHttpServer
|
|
4
|
+
} from "./chunk-FDHNAV5B.js";
|
|
5
|
+
import {
|
|
6
|
+
ConfigError
|
|
7
|
+
} from "./chunk-LOMVELQR.js";
|
|
8
|
+
|
|
9
|
+
// src/transports/http.ts
|
|
10
|
+
startHttpServer().catch((error) => {
|
|
11
|
+
process.stderr.write(`${error instanceof ConfigError ? error.message : error instanceof Error ? error.stack ?? error.message : String(error)}
|
|
12
|
+
`);
|
|
13
|
+
process.exit(1);
|
|
14
|
+
});
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import {
|
|
2
|
+
assertServable,
|
|
3
|
+
createRequestHandler,
|
|
4
|
+
readWellKnownFiles,
|
|
5
|
+
startHttpServer
|
|
6
|
+
} from "./chunk-FDHNAV5B.js";
|
|
7
|
+
import {
|
|
8
|
+
ConfigError,
|
|
9
|
+
DETAILS_RULES,
|
|
10
|
+
DETAILS_SAMPLES,
|
|
11
|
+
INSTRUCTIONS,
|
|
12
|
+
InputError,
|
|
13
|
+
PLAN_TALK,
|
|
14
|
+
SERVER_NAME,
|
|
15
|
+
SERVER_VERSION,
|
|
16
|
+
TOOLS,
|
|
17
|
+
TOOLS_DOCUMENT_VERSION,
|
|
18
|
+
TOOLS_SDK_VERSION,
|
|
19
|
+
WEBSITE,
|
|
20
|
+
createApiClient,
|
|
21
|
+
createMcpServer,
|
|
22
|
+
detailsFor,
|
|
23
|
+
isObject,
|
|
24
|
+
outputSchemaFor,
|
|
25
|
+
prepareServer,
|
|
26
|
+
readConfig,
|
|
27
|
+
readKeyPlan,
|
|
28
|
+
readProfile,
|
|
29
|
+
refusalText,
|
|
30
|
+
registrarSlug,
|
|
31
|
+
resetPhrase,
|
|
32
|
+
runTool,
|
|
33
|
+
selectTools,
|
|
34
|
+
shapeAnswer,
|
|
35
|
+
splitInput,
|
|
36
|
+
textLine,
|
|
37
|
+
toListedTool
|
|
38
|
+
} from "./chunk-LOMVELQR.js";
|
|
39
|
+
export {
|
|
40
|
+
ConfigError,
|
|
41
|
+
DETAILS_RULES,
|
|
42
|
+
DETAILS_SAMPLES,
|
|
43
|
+
INSTRUCTIONS,
|
|
44
|
+
InputError,
|
|
45
|
+
PLAN_TALK,
|
|
46
|
+
SERVER_NAME,
|
|
47
|
+
SERVER_VERSION,
|
|
48
|
+
TOOLS,
|
|
49
|
+
TOOLS_DOCUMENT_VERSION,
|
|
50
|
+
TOOLS_SDK_VERSION,
|
|
51
|
+
WEBSITE,
|
|
52
|
+
assertServable,
|
|
53
|
+
createApiClient,
|
|
54
|
+
createMcpServer,
|
|
55
|
+
createRequestHandler,
|
|
56
|
+
detailsFor,
|
|
57
|
+
isObject,
|
|
58
|
+
outputSchemaFor,
|
|
59
|
+
prepareServer,
|
|
60
|
+
readConfig,
|
|
61
|
+
readKeyPlan,
|
|
62
|
+
readProfile,
|
|
63
|
+
readWellKnownFiles,
|
|
64
|
+
refusalText,
|
|
65
|
+
registrarSlug,
|
|
66
|
+
resetPhrase,
|
|
67
|
+
runTool,
|
|
68
|
+
selectTools,
|
|
69
|
+
shapeAnswer,
|
|
70
|
+
splitInput,
|
|
71
|
+
startHttpServer,
|
|
72
|
+
textLine,
|
|
73
|
+
toListedTool
|
|
74
|
+
};
|
package/dist/stdio.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ConfigError,
|
|
4
|
+
SERVER_VERSION,
|
|
5
|
+
createMcpServer,
|
|
6
|
+
prepareServer,
|
|
7
|
+
readConfig
|
|
8
|
+
} from "./chunk-LOMVELQR.js";
|
|
9
|
+
|
|
10
|
+
// src/transports/stdio.ts
|
|
11
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
12
|
+
var log = (line) => {
|
|
13
|
+
process.stderr.write(`[uniquedomains-mcp-server] ${line}
|
|
14
|
+
`);
|
|
15
|
+
};
|
|
16
|
+
var main = async () => {
|
|
17
|
+
if (process.argv.includes("--version")) {
|
|
18
|
+
process.stdout.write(`${SERVER_VERSION}
|
|
19
|
+
`);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const config = readConfig(process.env);
|
|
23
|
+
const prepared = await prepareServer(config, { log });
|
|
24
|
+
const server = createMcpServer(prepared);
|
|
25
|
+
await server.connect(new StdioServerTransport());
|
|
26
|
+
log(`${SERVER_VERSION} ready: ${prepared.tools.length} tools, ${config.profile} profile${prepared.plan !== "none" ? `, ${prepared.plan} key` : ""}.`);
|
|
27
|
+
};
|
|
28
|
+
main().catch((error) => {
|
|
29
|
+
log(error instanceof ConfigError ? error.message : error instanceof Error ? error.stack ?? error.message : String(error));
|
|
30
|
+
process.exit(1);
|
|
31
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniquedomains/mcp-server",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "MCP server for the Unique Domains API: domain names, words, TLDs, registrar prices, the domain market, trends and the agenda.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Unique Domains (https://unique.domains)",
|
|
7
|
+
"homepage": "https://unique.domains/api",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/UniqueDomains/mcp-server.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": "https://github.com/UniqueDomains/mcp-server/issues",
|
|
13
|
+
"mcpName": "domains.unique/mcp-server",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"mcp",
|
|
16
|
+
"mcp-server",
|
|
17
|
+
"model-context-protocol",
|
|
18
|
+
"domain-names",
|
|
19
|
+
"domains",
|
|
20
|
+
"whois",
|
|
21
|
+
"tld",
|
|
22
|
+
"registrar",
|
|
23
|
+
"unique-domains"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"bin": {
|
|
27
|
+
"uniquedomains-mcp-server": "dist/stdio.js"
|
|
28
|
+
},
|
|
29
|
+
"exports": {
|
|
30
|
+
".": "./dist/index.js",
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist/*.js",
|
|
35
|
+
"README.md",
|
|
36
|
+
"LICENSE"
|
|
37
|
+
],
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=20"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"generate": "node scripts/generate.mjs",
|
|
46
|
+
"build": "tsup",
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"test": "node --test test/*.test.mjs",
|
|
49
|
+
"check:text": "node scripts/check-text.mjs",
|
|
50
|
+
"plugin": "node scripts/plugin-manifest.mjs",
|
|
51
|
+
"plugin:test": "node scripts/plugin-manifest.mjs --allow-placeholder",
|
|
52
|
+
"smoke": "node scripts/smoke.mjs",
|
|
53
|
+
"prepack": "npm run build"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
57
|
+
"@uniquedomains/sdk": "^0.1.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@types/node": "22.20.5",
|
|
61
|
+
"ajv": "8.20.0",
|
|
62
|
+
"ajv-formats": "3.0.1",
|
|
63
|
+
"tsup": "8.5.1",
|
|
64
|
+
"typescript": "5.9.3"
|
|
65
|
+
}
|
|
66
|
+
}
|