Skip to content

Commit a407599

Browse files
Copilothotlong
andauthored
feat: add plugin-mcp-server with MCPServerRuntime and MCPServerPlugin
Implements the MCP Runtime Server plugin that bridges ObjectStack kernel services to the Model Context Protocol (MCP). Features: - Tool bridge: all ToolRegistry tools → MCP tools - Resource bridge: MetadataService → object schemas, DataEngine → records - Prompt bridge: Agent definitions → MCP prompts - StdioServerTransport for local AI client integration - Environment variable configuration (MCP_SERVER_ENABLED, MCP_SERVER_NAME) Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/5eb90a65-846f-4f24-947f-1c0e7ea5090e Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 86b56ea commit a407599

File tree

7 files changed

+806
-11
lines changed

7 files changed

+806
-11
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "@objectstack/plugin-mcp-server",
3+
"version": "4.0.2",
4+
"license": "Apache-2.0",
5+
"description": "MCP Runtime Server Plugin for ObjectStack — exposes AI tools, data resources, and agent prompts via the Model Context Protocol",
6+
"type": "module",
7+
"main": "dist/index.js",
8+
"types": "dist/index.d.ts",
9+
"exports": {
10+
".": {
11+
"types": "./dist/index.d.ts",
12+
"import": "./dist/index.js",
13+
"require": "./dist/index.cjs"
14+
}
15+
},
16+
"scripts": {
17+
"build": "tsup --config ../../../tsup.config.ts",
18+
"test": "vitest run"
19+
},
20+
"dependencies": {
21+
"@modelcontextprotocol/sdk": "^1.29.0",
22+
"@objectstack/core": "workspace:*",
23+
"@objectstack/spec": "workspace:*"
24+
},
25+
"devDependencies": {
26+
"@types/node": "^25.5.2",
27+
"typescript": "^6.0.2",
28+
"vitest": "^4.1.2"
29+
}
30+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
2+
3+
/**
4+
* @objectstack/plugin-mcp-server
5+
*
6+
* MCP Runtime Server Plugin for ObjectStack.
7+
* Exposes all registered AI tools, data resources, and agent prompts
8+
* via the Model Context Protocol (MCP) for use by external AI clients
9+
* (Claude Desktop, Cursor, VS Code Copilot, etc.).
10+
*/
11+
12+
export { MCPServerPlugin } from './plugin.js';
13+
export type { MCPServerPluginOptions } from './plugin.js';
14+
export { MCPServerRuntime } from './mcp-server-runtime.js';
15+
export type { MCPServerRuntimeConfig } from './mcp-server-runtime.js';

0 commit comments

Comments
 (0)