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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@missionsquad/mcp-msq",
"version": "0.3.1",
"version": "0.3.2",
"description": "MCP server interface for the MissionSquad API",
"type": "module",
"main": "dist/index.js",
Expand Down
9 changes: 7 additions & 2 deletions src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ export const DeleteModelSchema = z.object({
modelId: NonEmptyString,
})

const AgentModelOptionsSchema = z.object({
temperature: z.number().min(0).max(2).optional().describe('Temperature for model generation (0-2). Omit to use model default.'),
maxTokens: z.number().int().optional().describe('Max output tokens. Use -1 for unlimited/model default.'),
}).optional().describe('Model generation options (temperature, maxTokens). These are stored in the agent\'s modelOptions.')

export const AddAgentSchema = z.object({
name: NonEmptyString.describe('Unique agent name.'),
description: z.string().describe('Short description of what the agent does.'),
Expand All @@ -111,6 +116,7 @@ export const AddAgentSchema = z.object({
timezoneOffset: NonEmptyString.optional().describe('Timezone offset string (e.g. "-05:00") used when addToday is true.'),
tools: z.array(z.string()).optional().describe('Array of tool function names (e.g. ["geolocate"]). The server resolves these to MCP servers automatically.'),
selectedFunctions: z.record(z.array(z.string())).optional().describe('Map of MCP server name to function names. Alternative to tools; use one or the other.'),
modelOptions: AgentModelOptionsSchema,
}).refine(
(data) => data.systemPrompt || data.systemPromptId,
{ message: 'Either systemPrompt or systemPromptId must be provided.', path: ['systemPrompt'] }
Expand All @@ -132,8 +138,7 @@ export const UpdateAgentSchema = z.object({
timezoneOffset: NonEmptyString.optional().describe('Timezone offset string (e.g. "-05:00") used when addToday is true.'),
tools: z.array(z.string()).optional().describe('Array of tool function names. Replaces all existing tools.'),
selectedFunctions: z.record(z.array(z.string())).optional().describe('Map of MCP server name to function names. Replaces existing selectedFunctions.'),
temperature: z.number().min(0).max(2).optional().describe('Temperature for model generation (0-2). Omit to use model default.'),
maxTokens: z.number().int().optional().describe('Max output tokens (stored in modelOptions). Use -1 or omit for unlimited/model default.'),
modelOptions: AgentModelOptionsSchema,
combineSystemPrompts: z.boolean().optional().describe('Whether to combine system prompts from agent and messages.'),
convertSystemPrompt: z.boolean().optional().describe('Whether to convert additional system prompts to user messages.'),
})
Expand Down
Loading