@omkar273/mcp-temp 0.0.21 → 0.0.42
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 +8 -8
- package/bin/mcp-server.js +44 -26
- package/bin/mcp-server.js.map +9 -9
- package/bun.lock +569 -0
- package/eslint.config.mjs +22 -0
- package/esm/landing-page.js +13 -13
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -0
- package/manifest.json +804 -0
- package/package.json +1 -1
- package/src/landing-page.ts +13 -13
- package/src/lib/config.ts +4 -3
- package/src/lib/security.ts +4 -1
- package/src/mcp-server/build.mts +73 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/tsconfig.json +35 -0
package/package.json
CHANGED
package/src/landing-page.ts
CHANGED
|
@@ -50,14 +50,14 @@ http_headers = { "server-url" = "YOUR_SERVER_URL", "api-key-auth" = "YOUR_API_KE
|
|
|
50
50
|
<head>
|
|
51
51
|
<meta charset="UTF-8">
|
|
52
52
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
53
|
-
<title>@
|
|
54
|
-
<meta name="description" content="Install @
|
|
53
|
+
<title>@omkar273/mcp-temp MCP</title>
|
|
54
|
+
<meta name="description" content="Install @omkar273/mcp-temp MCP server.">
|
|
55
55
|
<meta property="og:type" content="website">
|
|
56
|
-
<meta property="og:title" content="@
|
|
57
|
-
<meta property="og:description" content="Install @
|
|
56
|
+
<meta property="og:title" content="@omkar273/mcp-temp - MCP Server">
|
|
57
|
+
<meta property="og:description" content="Install @omkar273/mcp-temp MCP server.">
|
|
58
58
|
<meta property="twitter:card" content="summary">
|
|
59
|
-
<meta property="twitter:title" content="@
|
|
60
|
-
<meta property="twitter:description" content="Install @
|
|
59
|
+
<meta property="twitter:title" content="@omkar273/mcp-temp - MCP Server">
|
|
60
|
+
<meta property="twitter:description" content="Install @omkar273/mcp-temp MCP server.">
|
|
61
61
|
<meta name="robots" content="index, follow">
|
|
62
62
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
63
63
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
@@ -664,7 +664,7 @@ http_headers = { "server-url" = "YOUR_SERVER_URL", "api-key-auth" = "YOUR_API_KE
|
|
|
664
664
|
</svg>
|
|
665
665
|
</div>
|
|
666
666
|
<div class="header-content">
|
|
667
|
-
<div class="mcp-name">@
|
|
667
|
+
<div class="mcp-name">@omkar273/mcp-temp</div>
|
|
668
668
|
<div class="mcp-description">MCP Server</div>
|
|
669
669
|
</div>
|
|
670
670
|
</div>
|
|
@@ -680,7 +680,7 @@ http_headers = { "server-url" = "YOUR_SERVER_URL", "api-key-auth" = "YOUR_API_KE
|
|
|
680
680
|
</svg>
|
|
681
681
|
</button>
|
|
682
682
|
<div class="popover-menu hidden" id="popover-menu">
|
|
683
|
-
<a class="popover-button install-link" href="cursor://anysphere.cursor-deeplink/mcp/install?name=Flexprice&config=
|
|
683
|
+
<a class="popover-button install-link" href="cursor://anysphere.cursor-deeplink/mcp/install?name=Flexprice&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJAb21rYXIyNzMvbWNwLXRlbXAiLCJzdGFydCIsIi0tc2VydmVyLXVybCIsIiIsIi0tYXBpLWtleS1hdXRoIiwiIl19">
|
|
684
684
|
Cursor
|
|
685
685
|
</a>
|
|
686
686
|
<button class="popover-button" onclick="showModal('claude-code')">
|
|
@@ -689,7 +689,7 @@ http_headers = { "server-url" = "YOUR_SERVER_URL", "api-key-auth" = "YOUR_API_KE
|
|
|
689
689
|
<button class="popover-button" onclick="showModal('claude-desktop')">
|
|
690
690
|
Claude Desktop
|
|
691
691
|
</button>
|
|
692
|
-
<a class="popover-button install-link" href="vscode://ms-vscode.vscode-mcp/install?name=Flexprice&config=
|
|
692
|
+
<a class="popover-button install-link" href="vscode://ms-vscode.vscode-mcp/install?name=Flexprice&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJAb21rYXIyNzMvbWNwLXRlbXAiLCJzdGFydCIsIi0tc2VydmVyLXVybCIsIiIsIi0tYXBpLWtleS1hdXRoIiwiIl19">
|
|
693
693
|
VS Code
|
|
694
694
|
</a>
|
|
695
695
|
<button class="popover-button" onclick="showModal('gemini')">
|
|
@@ -712,7 +712,7 @@ http_headers = { "server-url" = "YOUR_SERVER_URL", "api-key-auth" = "YOUR_API_KE
|
|
|
712
712
|
</div>
|
|
713
713
|
</header>
|
|
714
714
|
<div class="install-targets">
|
|
715
|
-
<a tabindex="0" class="card install-target install-link" href="cursor://anysphere.cursor-deeplink/mcp/install?name=Flexprice&config=
|
|
715
|
+
<a tabindex="0" class="card install-target install-link" href="cursor://anysphere.cursor-deeplink/mcp/install?name=Flexprice&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJAb21rYXIyNzMvbWNwLXRlbXAiLCJzdGFydCIsIi0tc2VydmVyLXVybCIsIiIsIi0tYXBpLWtleS1hdXRoIiwiIl19">
|
|
716
716
|
<div class="target">
|
|
717
717
|
<img src="https://cursor.com/assets/images/logo.svg" alt="Cursor">
|
|
718
718
|
<span>Cursor</span>
|
|
@@ -734,7 +734,7 @@ http_headers = { "server-url" = "YOUR_SERVER_URL", "api-key-auth" = "YOUR_API_KE
|
|
|
734
734
|
<span>Claude Desktop</span>
|
|
735
735
|
</div>
|
|
736
736
|
</div>
|
|
737
|
-
<a tabindex="0" class="card install-target install-link" href="vscode://ms-vscode.vscode-mcp/install?name=Flexprice&config=
|
|
737
|
+
<a tabindex="0" class="card install-target install-link" href="vscode://ms-vscode.vscode-mcp/install?name=Flexprice&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJAb21rYXIyNzMvbWNwLXRlbXAiLCJzdGFydCIsIi0tc2VydmVyLXVybCIsIiIsIi0tYXBpLWtleS1hdXRoIiwiIl19">
|
|
738
738
|
<div class="target">
|
|
739
739
|
<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
740
740
|
<mask id="mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="100" height="100">
|
|
@@ -913,7 +913,7 @@ http_headers = { "server-url" = "YOUR_SERVER_URL", "api-key-auth" = "YOUR_API_KE
|
|
|
913
913
|
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path>
|
|
914
914
|
</svg>
|
|
915
915
|
</button>
|
|
916
|
-
<code class="code-snippet language-json" id="claude-cli-cmd">claude mcp add Flexprice -- npx -y @
|
|
916
|
+
<code class="code-snippet language-json" id="claude-cli-cmd">claude mcp add Flexprice -- npx -y @omkar273/mcp-temp start --server-url --api-key-auth </code>
|
|
917
917
|
</div>
|
|
918
918
|
</div>
|
|
919
919
|
</div>
|
|
@@ -964,7 +964,7 @@ http_headers = { "server-url" = "YOUR_SERVER_URL", "api-key-auth" = "YOUR_API_KE
|
|
|
964
964
|
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path>
|
|
965
965
|
</svg>
|
|
966
966
|
</button>
|
|
967
|
-
<code class="code-snippet language-json" id="gemini-config">gemini mcp add Flexprice -- npx -y @
|
|
967
|
+
<code class="code-snippet language-json" id="gemini-config">gemini mcp add Flexprice -- npx -y @omkar273/mcp-temp start --server-url --api-key-auth </code>
|
|
968
968
|
</div>
|
|
969
969
|
</div>
|
|
970
970
|
</div>
|
package/src/lib/config.ts
CHANGED
|
@@ -62,7 +62,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
62
62
|
export const SDK_METADATA = {
|
|
63
63
|
language: "typescript",
|
|
64
64
|
openapiDocVersion: "1.0",
|
|
65
|
-
sdkVersion: "0.0.
|
|
66
|
-
genVersion: "2.
|
|
67
|
-
userAgent:
|
|
65
|
+
sdkVersion: "0.0.42",
|
|
66
|
+
genVersion: "2.845.1",
|
|
67
|
+
userAgent:
|
|
68
|
+
"speakeasy-sdk/mcp-typescript 0.0.42 2.845.1 1.0 @omkar273/mcp-temp",
|
|
68
69
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -83,7 +83,10 @@ type SecurityInputOAuth2 = {
|
|
|
83
83
|
type SecurityInputOAuth2ClientCredentials = {
|
|
84
84
|
type: "oauth2:client_credentials";
|
|
85
85
|
value:
|
|
86
|
-
| {
|
|
86
|
+
| {
|
|
87
|
+
clientID?: string | undefined;
|
|
88
|
+
clientSecret?: string | undefined;
|
|
89
|
+
}
|
|
87
90
|
| null
|
|
88
91
|
| string
|
|
89
92
|
| undefined;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/// <reference types="bun-types" />
|
|
2
|
+
|
|
3
|
+
import { build } from "bun";
|
|
4
|
+
import { chmod, readFile, writeFile } from "node:fs/promises";
|
|
5
|
+
import { packExtension } from "@anthropic-ai/mcpb";
|
|
6
|
+
import { join } from "node:path";
|
|
7
|
+
import { createMCPServer } from "./server.ts";
|
|
8
|
+
import { createConsoleLogger } from "./console-logger.ts";
|
|
9
|
+
|
|
10
|
+
const shouldPack = process.argv.includes("--pack");
|
|
11
|
+
|
|
12
|
+
async function buildMcpServer() {
|
|
13
|
+
// Explicitly create server to register tools
|
|
14
|
+
const logger = createConsoleLogger("info");
|
|
15
|
+
const { tools } = createMCPServer({ logger });
|
|
16
|
+
|
|
17
|
+
// Iterate through all registered tools and add them to the manifest
|
|
18
|
+
const manifest = await readFile("manifest.json", "utf8");
|
|
19
|
+
const manifestJson = JSON.parse(manifest);
|
|
20
|
+
|
|
21
|
+
// remove previous
|
|
22
|
+
manifestJson.tools = [];
|
|
23
|
+
manifestJson.tools.push(...tools.map((tool: any) => ({
|
|
24
|
+
name: tool.name,
|
|
25
|
+
description: tool.description,
|
|
26
|
+
})));
|
|
27
|
+
|
|
28
|
+
await writeFile("manifest.json", JSON.stringify(manifestJson, null, 2));
|
|
29
|
+
const entrypoint = "./src/mcp-server/mcp-server.ts";
|
|
30
|
+
const destinationDir = "./bin";
|
|
31
|
+
|
|
32
|
+
// Generate tool-names.ts for the landing page
|
|
33
|
+
const toolNamesContent = `// Auto-generated at build time
|
|
34
|
+
export const toolNames: Array<{ name: string; description: string }>= ${JSON.stringify(
|
|
35
|
+
tools.map((tool: any) => ({
|
|
36
|
+
name: tool.name,
|
|
37
|
+
description: tool.description,
|
|
38
|
+
})),
|
|
39
|
+
null,
|
|
40
|
+
2
|
|
41
|
+
)};
|
|
42
|
+
`;
|
|
43
|
+
await writeFile("./src/tool-names.ts", toolNamesContent);
|
|
44
|
+
|
|
45
|
+
await build({
|
|
46
|
+
entrypoints: [entrypoint],
|
|
47
|
+
outdir: destinationDir,
|
|
48
|
+
sourcemap: "linked",
|
|
49
|
+
target: "node",
|
|
50
|
+
format: "esm",
|
|
51
|
+
minify: false,
|
|
52
|
+
throw: true,
|
|
53
|
+
banner: "#!/usr/bin/env node",
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// Set executable permissions on the output file
|
|
57
|
+
const outputFile = join(destinationDir, "mcp-server.js");
|
|
58
|
+
await chmod(outputFile, 0o755);
|
|
59
|
+
|
|
60
|
+
// Build the MCP bundle file
|
|
61
|
+
if (shouldPack) {
|
|
62
|
+
await packExtension({
|
|
63
|
+
extensionPath: ".",
|
|
64
|
+
outputPath: "./mcp-server.mcpb",
|
|
65
|
+
silent: false,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
await buildMcpServer().catch((error) => {
|
|
71
|
+
console.error("Build failed:", error);
|
|
72
|
+
process.exit(1);
|
|
73
|
+
});
|
package/src/mcp-server/server.ts
CHANGED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
{
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"allowUnreachableCode": false,
|
|
7
|
+
"allowUnusedLabels": false,
|
|
8
|
+
"checkJs": true,
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"declarationMap": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"exactOptionalPropertyTypes": true,
|
|
13
|
+
"forceConsistentCasingInFileNames": true,
|
|
14
|
+
"incremental": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"lib": ["dom", "dom.iterable", "es2024"],
|
|
17
|
+
"module": "nodenext",
|
|
18
|
+
"moduleResolution": "node16",
|
|
19
|
+
"noFallthroughCasesInSwitch": true,
|
|
20
|
+
"noImplicitOverride": true,
|
|
21
|
+
"noImplicitReturns": true,
|
|
22
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
23
|
+
"noUncheckedIndexedAccess": true,
|
|
24
|
+
"noUnusedLocals": true,
|
|
25
|
+
"noUnusedParameters": true,
|
|
26
|
+
"outDir": "esm",
|
|
27
|
+
"skipLibCheck": true,
|
|
28
|
+
"sourceMap": true,
|
|
29
|
+
"strict": true,
|
|
30
|
+
"target": "es2022",
|
|
31
|
+
"useUnknownInCatchVariables": true,
|
|
32
|
+
},
|
|
33
|
+
"exclude": ["node_modules"],
|
|
34
|
+
"include": ["src/**/*.ts"]
|
|
35
|
+
}
|