preflight-mcp 0.1.5 → 0.1.6

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.
@@ -7,7 +7,7 @@ function nowIso() {
7
7
  }
8
8
  function githubHeaders(cfg) {
9
9
  const headers = {
10
- 'User-Agent': 'preflight-mcp/0.1.5',
10
+ 'User-Agent': 'preflight-mcp/0.1.6',
11
11
  Accept: 'application/vnd.github+json',
12
12
  };
13
13
  if (cfg.githubToken) {
@@ -20,7 +20,7 @@ export async function connectContext7(cfg) {
20
20
  maxRetries: 1,
21
21
  },
22
22
  });
23
- const client = new Client({ name: 'preflight-context7', version: '0.1.5' });
23
+ const client = new Client({ name: 'preflight-context7', version: '0.1.6' });
24
24
  await client.connect(transport);
25
25
  return {
26
26
  client,
package/dist/server.js CHANGED
@@ -99,7 +99,7 @@ export async function startServer() {
99
99
  startHttpServer(cfg);
100
100
  const server = new McpServer({
101
101
  name: 'preflight-mcp',
102
- version: '0.1.5',
102
+ version: '0.1.6',
103
103
  description: 'Create evidence-based preflight bundles for repositories (docs + code) with SQLite FTS search.',
104
104
  }, {
105
105
  capabilities: {
@@ -728,6 +728,13 @@ export async function startServer() {
728
728
  lineNo: z.number(),
729
729
  snippet: z.string(),
730
730
  uri: z.string(),
731
+ context: z.object({
732
+ functionName: z.string().optional(),
733
+ className: z.string().optional(),
734
+ startLine: z.number(),
735
+ endLine: z.number(),
736
+ surroundingLines: z.array(z.string()),
737
+ }).optional(),
731
738
  })),
732
739
  autoUpdated: z
733
740
  .boolean()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "preflight-mcp",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "MCP server that creates evidence-based preflight bundles for GitHub repositories and library docs.",
5
5
  "type": "module",
6
6
  "license": "MIT",