@flink-app/mcp 0.12.1-alpha.14 → 0.12.1-alpha.16

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -18
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -5,26 +5,12 @@ const mcp_js_1 = require("@modelcontextprotocol/sdk/server/mcp.js");
5
5
  const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
6
6
  // API docs plugin API root
7
7
  const apiRoot = process.argv[2] || "http://localhost:3333/docs/api";
8
+ const name = process.argv[3] || "API Docs";
8
9
  // Create server instance
9
10
  const server = new mcp_js_1.McpServer({
10
- name: "Flink API",
11
+ name,
11
12
  version: "1.0.0",
12
13
  });
13
- // server.resource("api-docs", "api-docs://endpoints", async (uri) => {
14
- // const apiDocs = await makeFlinkApiDocsRequest<any>();
15
- // if (!apiDocs) {
16
- // throw new Error("Failed to fetch API docs");
17
- // }
18
- // return {
19
- // contents: [
20
- // {
21
- // uri: uri.toString(),
22
- // mimeType: "application/json",
23
- // text: JSON.stringify(apiDocs, null, 2),
24
- // },
25
- // ],
26
- // };
27
- // });
28
14
  server.tool("api-endpoints", "Get all documented API endpoints and its request and response bodies.", async () => {
29
15
  const apiDocs = await makeFlinkApiDocsRequest();
30
16
  if (!apiDocs) {
@@ -44,7 +30,6 @@ async function makeFlinkApiDocsRequest() {
44
30
  const headers = {
45
31
  Accept: "application/json",
46
32
  };
47
- console.error(`Fetching API docs from ${apiRoot}`);
48
33
  try {
49
34
  const response = await fetch(apiRoot, { headers });
50
35
  if (!response.ok) {
@@ -64,7 +49,7 @@ async function main() {
64
49
  const transport = new stdio_js_1.StdioServerTransport();
65
50
  // Connect the server to the transport
66
51
  await server.connect(transport);
67
- console.error("Flink API MCP server started successfully");
52
+ console.log(JSON.stringify({ error: "Flink API MCP server started successfully" }));
68
53
  }
69
54
  catch (error) {
70
55
  console.error("Failed to start Flink API MCP server:", error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/mcp",
3
- "version": "0.12.1-alpha.14",
3
+ "version": "0.12.1-alpha.16",
4
4
  "description": "MCP server/client to expose API docs and possibly other things to LLM",
5
5
  "bin": {
6
6
  "flink-mcp": "./dist/index.js"
@@ -32,5 +32,5 @@
32
32
  "dependencies": {
33
33
  "@modelcontextprotocol/sdk": "^1.11.0"
34
34
  },
35
- "gitHead": "088dc1862f0ba1210340e4eda5c2e0038ec3cff9"
35
+ "gitHead": "c2c582a2763c9da7a099567384251c6bf64493cf"
36
36
  }