@strav/mcp 0.1.0 → 0.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strav/mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "description": "Model Context Protocol (MCP) server for the Strav framework",
6
6
  "license": "MIT",
@@ -22,9 +22,9 @@
22
22
  "zod": "^3.25 || ^4.0"
23
23
  },
24
24
  "peerDependencies": {
25
- "@strav/kernel": "0.1.0",
26
- "@strav/http": "0.1.0",
27
- "@strav/cli": "0.1.0"
25
+ "@strav/kernel": "0.1.4",
26
+ "@strav/http": "0.1.4",
27
+ "@strav/cli": "0.1.4"
28
28
  },
29
29
  "scripts": {
30
30
  "test": "bun test tests/",
@@ -1,6 +1,6 @@
1
1
  import type { Command } from 'commander'
2
2
  import chalk from 'chalk'
3
- import { bootstrap, shutdown } from '@stravigor/cli'
3
+ import { bootstrap, shutdown } from '@strav/cli'
4
4
  import McpManager from '../mcp_manager.ts'
5
5
 
6
6
  export function register(program: Command): void {
package/src/errors.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { StravError } from '@stravigor/kernel'
1
+ import { StravError } from '@strav/kernel'
2
2
 
3
3
  /** Base error class for all MCP errors. */
4
4
  export class McpError extends StravError {}
package/src/helpers.ts CHANGED
@@ -13,7 +13,7 @@ import type {
13
13
  * MCP helper — the primary convenience API.
14
14
  *
15
15
  * @example
16
- * import { mcp } from '@stravigor/mcp'
16
+ * import { mcp } from '@strav/mcp'
17
17
  * import { z } from 'zod'
18
18
  *
19
19
  * mcp.tool('get-user', {
@@ -1,4 +1,4 @@
1
- import { inject, app, Configuration, Emitter, ConfigurationError } from '@stravigor/kernel'
1
+ import { inject, app, Configuration, Emitter, ConfigurationError } from '@strav/kernel'
2
2
  import { McpServer, ResourceTemplate } from '@modelcontextprotocol/sdk/server/mcp.js'
3
3
  import type {
4
4
  McpConfig,
@@ -1,6 +1,6 @@
1
- import { ServiceProvider } from '@stravigor/kernel'
2
- import type { Application } from '@stravigor/kernel'
3
- import { Router } from '@stravigor/http'
1
+ import { ServiceProvider } from '@strav/kernel'
2
+ import type { Application } from '@strav/kernel'
3
+ import { Router } from '@strav/http'
4
4
  import McpManager from './mcp_manager.ts'
5
5
  import { mountHttpTransport } from './transports/bun_http_transport.ts'
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { WebStandardStreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js'
2
- import type { Router, Context } from '@stravigor/http'
3
- import { Emitter } from '@stravigor/kernel'
2
+ import type { Router, Context } from '@strav/http'
3
+ import { Emitter } from '@strav/kernel'
4
4
  import McpManager from '../mcp_manager.ts'
5
5
 
6
6
  export type { WebStandardStreamableHTTPServerTransport }
@@ -1,5 +1,5 @@
1
1
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
2
- import { Emitter } from '@stravigor/kernel'
2
+ import { Emitter } from '@strav/kernel'
3
3
  import McpManager from '../mcp_manager.ts'
4
4
 
5
5
  /**
package/src/types.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { z } from 'zod'
2
- import type { Application } from '@stravigor/kernel'
2
+ import type { Application } from '@strav/kernel'
3
3
  import type {
4
4
  CallToolResult,
5
5
  GetPromptResult,
@@ -1,4 +1,4 @@
1
- import { env } from '@stravigor/kernel/helpers'
1
+ import { env } from '@strav/kernel/helpers'
2
2
 
3
3
  export default {
4
4
  /** Server name shown to AI clients. Defaults to app name if not set. */