secondbrainos-mcp-server 1.2.3 → 1.2.4

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/README.md +30 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Second Brain OS MCP Server
2
2
 
3
- This package provides a Model Context Protocol (MCP) server for integrating Second Brain OS with Claude Desktop.
3
+ This package provides a Model Context Protocol (MCP) server for integrating Second Brain OS with Claude Desktop and Claude Code.
4
4
 
5
5
  ## Prerequisites
6
6
 
7
7
  - Node.js v16 or higher
8
- - Claude Desktop application
8
+ - Claude Desktop application and/or Claude Code CLI
9
9
  - A valid Second Brain OS account with the Claude MCP feature enabled
10
10
 
11
11
  ## Installation
@@ -28,6 +28,16 @@ This will:
28
28
  3. Create the necessary configuration files for Claude Desktop
29
29
  4. Configure the server to dynamically fetch your available API endpoints
30
30
 
31
+ ### Claude Code
32
+
33
+ To add the server to Claude Code:
34
+
35
+ ```bash
36
+ claude mcp add secondbrainos-mcp-server -- npx secondbrainos-mcp-server
37
+ ```
38
+
39
+ Or add it to your project's `.mcp.json` file.
40
+
31
41
  ## Features
32
42
 
33
43
  ### Enhanced OpenAPI Support
@@ -41,13 +51,23 @@ The server uses `@samchon/openapi` library for robust OpenAPI handling, providin
41
51
  - Automatic request formatting based on OpenAPI specifications
42
52
  - Support for complex parameters and nested objects
43
53
 
44
- ### Prompts (Workflows)
45
- The server exposes your Second Brain OS workflows as MCP prompts, making them available in Claude Desktop's attach menu:
54
+ ### Prompts
55
+ The server exposes three types of MCP prompts, available in the client's attach menu:
56
+
57
+ #### Skills (Workflows)
46
58
  - Automatically discovers your workflows via the `runPromptChain` service
47
- - Each workflow appears as a selectable prompt with its name and description
48
- - Selecting a prompt fetches the full prompt chain (ordered instructions) and injects them into the conversation
59
+ - Each skill appears with a `[Skill]` prefix and returns a structured document with `skill_id`, `name`, `description`, and an ordered list of prompts (metadata only, no instructions)
49
60
  - Supports an optional `user_input` argument to provide additional context
50
61
 
62
+ #### Agents
63
+ - Discovers your AI agents via the `getAIAgentsSchema` service
64
+ - Each agent appears with an `[Agent]` prefix and returns a structured document containing `agent_id`, `name`, `description`, `behaviour_and_instructions`, `searchMyKnowledge_collection_id`, `actions` (with id, name, description, body_parameters), and `workflows` (with enriched prompt metadata)
65
+ - Supports an optional `user_input` argument
66
+
67
+ #### Knowledge Bases
68
+ - Aggregates all `searchMyKnowledge_collection_id` values from your agents
69
+ - Appears as a single `[Knowledge Bases]` prompt returning an array of collection IDs
70
+
51
71
  ### Better Error Handling
52
72
  - Detailed error messages for debugging
53
73
  - Proper handling of authentication failures, bad requests, and service errors
@@ -124,14 +144,14 @@ The server requires the following environment variables:
124
144
  1. **Schema Fetching**: On startup, the server fetches your personalized OpenAPI schema from Second Brain OS
125
145
  2. **Schema Conversion**: The `@samchon/openapi` library converts the schema to an optimized format for LLM function calling
126
146
  3. **MCP Tools**: Each API endpoint becomes an MCP tool that Claude can use
127
- 4. **MCP Prompts**: If the `runPromptChain` service is available, your workflows are exposed as selectable prompts in the client UI
147
+ 4. **MCP Prompts**: Your skills (workflows), AI agents, and knowledge bases are exposed as selectable prompts in the client UI
128
148
  5. **Function Execution**: When Claude calls a tool, the server executes the corresponding API call with proper authentication
129
149
 
130
150
  ## Troubleshooting
131
151
 
132
- ### Claude Desktop doesn't see the server
133
- 1. Ensure Claude Desktop is completely quit before running the setup
134
- 2. Check the configuration file was created at the correct location
152
+ ### Client doesn't see the server
153
+ 1. **Claude Desktop**: Ensure it's completely quit before running setup. Check the configuration file was created at the correct location.
154
+ 2. **Claude Code**: Run `claude mcp add` or check your `.mcp.json` configuration.
135
155
  3. Review the logs at the platform-specific location mentioned during setup
136
156
 
137
157
  ### Authentication errors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secondbrainos-mcp-server",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Second Brain OS MCP Server for Claude Desktop",
5
5
  "type": "module",
6
6
  "main": "build/index.js",