Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "parseable",
"displayName": "Parseable",
"version": "0.2.14",
"version": "0.2.15",
"description": "Query and manage Parseable logs, metrics, datasets, and alerts from Cursor.",
"author": {
"name": "Parseable"
Expand All @@ -20,10 +20,6 @@
"mcp"
],
"category": "developer-tools",
"tags": [
"observability",
"monitoring",
"mcp"
],
"tags": ["observability", "monitoring", "mcp"],
"mcpServers": "./mcp.json"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@parseable/parseable-mcp-server",
"version": "0.2.14",
"version": "0.2.15",
"mcpName": "io.github.parseablehq/parseable-mcp-server",
"description": "Model Context Protocol server for Parseable. Lets LLMs discover and query Parseable datasets.",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions server.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"url": "https://github.com/parseablehq/parseable-mcp-server",
"source": "github"
},
"version": "0.2.14",
"version": "0.2.15",
"packages": [
{
"registryType": "npm",
"identifier": "@parseable/parseable-mcp-server",
"version": "0.2.14",
"version": "0.2.15",
"transport": {
"type": "stdio"
}
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { tools } from "./tools/index.js";
import type { ToolContext } from "./tools/types.js";
import { errorResult, jsonResult } from "./tools/types.js";

const SERVER_VERSION = "0.2.14";
const SERVER_VERSION = "0.2.15";

export function buildMcpServer(ctx: ToolContext): McpServer {
const server = new McpServer({
Expand Down
12 changes: 12 additions & 0 deletions src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,18 @@ app.get("/assets/*", async (c) => {

app.get("/", serveRoot);

// Streamable HTTP clients probe GET /mcp for an optional standalone SSE stream.
// This server is stateless and POST-only, so the MCP transport requires 405
// rather than 404 to signal that clients should continue without that stream.
app.get(
"/mcp",
() =>
new Response(null, {
status: 405,
headers: { Allow: "POST" },
}),
);

async function buildApiKeyClient(reqHeaders: Headers): Promise<{
client: ParseableClient;
config: Config;
Expand Down
8 changes: 8 additions & 0 deletions test/http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ describe("HTTP routes", () => {
expect(body).toMatch(/X-Parseable-URL/);
});

it("GET /mcp returns 405 for stateless Streamable HTTP clients", async () => {
const res = await app.request("/mcp", {
headers: { accept: "text/event-stream" },
});
expect(res.status).toBe(405);
expect(res.headers.get("allow")).toBe("POST");
});

it("POST /mcp without auth returns 401", async () => {
const res = await app.fetch(
new Request("http://localhost/mcp", {
Expand Down
Loading