octavemcp-mcp
v0.0.2
Published
The official MCP Server for the Octave API
Readme
Octave TypeScript MCP Server
It is generated with Stainless.
Installation
Direct invocation
You can run the MCP Server directly via npx:
export OCTAVE_API_KEY="My API Key"
npx -y octavemcp-mcp@latestVia MCP Client
There is a partial list of existing clients at modelcontextprotocol.io. If you already have a client, consult their documentation to install the MCP server.
For clients with a configuration JSON, it might look something like this:
{
"mcpServers": {
"octavemcp_api": {
"command": "npx",
"args": ["-y", "octavemcp-mcp", "--client=claude", "--tools=dynamic"],
"env": {
"OCTAVE_API_KEY": "My API Key"
}
}
}
}Exposing endpoints to your MCP Client
There are two ways to expose endpoints as tools in the MCP server:
- Exposing one tool per endpoint, and filtering as necessary
- Exposing a set of tools to dynamically discover and invoke endpoints from the API
Filtering endpoints and tools
You can run the package on the command line to discover and filter the set of tools that are exposed by the MCP Server. This can be helpful for large APIs where including all endpoints at once is too much for your AI's context window.
You can filter by multiple aspects:
--toolincludes a specific tool by name--resourceincludes all tools under a specific resource, and can have wildcards, e.g.my.resource*--operationincludes just read (get/list) or just write operations
Dynamic tools
If you specify --tools=dynamic to the MCP server, instead of exposing one tool per endpoint in the API, it will
expose the following tools:
list_api_endpoints- Discovers available endpoints, with optional filtering by search queryget_api_endpoint_schema- Gets detailed schema information for a specific endpointinvoke_api_endpoint- Executes any endpoint with the appropriate parameters
This allows you to have the full set of API endpoints available to your MCP Client, while not requiring that all of their schemas be loaded into context at once. Instead, the LLM will automatically use these tools together to search for, look up, and invoke endpoints dynamically. However, due to the indirect nature of the schemas, it can struggle to provide the correct properties a bit more than when tools are imported explicitly. Therefore, you can opt-in to explicit tools, the dynamic tools, or both.
See more information with --help.
All of these command-line options can be repeated, combined together, and have corresponding exclusion versions (e.g. --no-tool).
Use --list to see the list of available tools, or see below.
Specifying the MCP Client
Different clients have varying abilities to handle arbitrary tools and schemas.
You can specify the client you are using with the --client argument, and the MCP server will automatically
serve tools and schemas that are more compatible with that client.
--client=<type>: Set all capabilities based on a known MCP client- Valid values:
openai-agents,claude,claude-code,cursor - Example:
--client=cursor
- Valid values:
Additionally, if you have a client not on the above list, or the client has gotten better over time, you can manually enable or disable certain capabilities:
--capability=<name>: Specify individual client capabilities- Available capabilities:
top-level-unions: Enable support for top-level unions in tool schemasvalid-json: Enable JSON string parsing for argumentsrefs: Enable support for $ref pointers in schemasunions: Enable support for union types (anyOf) in schemasformats: Enable support for format validations in schemas (e.g. date-time, email)tool-name-length=N: Set maximum tool name length to N characters
- Example:
--capability=top-level-unions --capability=tool-name-length=40 - Example:
--capability=top-level-unions,tool-name-length=40
- Available capabilities:
Examples
- Filter for read operations on cards:
--resource=cards --operation=read- Exclude specific tools while including others:
--resource=cards --no-tool=create_cards- Configure for Cursor client with custom max tool name length:
--client=cursor --capability=tool-name-length=40- Complex filtering with multiple criteria:
--resource=cards,accounts --operation=read --tag=kyc --no-tool=create_cardsImporting the tools and server individually
// Import the server, generated endpoints, or the init function
import { server, endpoints, init } from "octavemcp-mcp/server";
// import a specific tool
import listV2APIKey from "octavemcp-mcp/tools/v2/api-key/list-v2-api-key";
// initialize the server and all endpoints
init({ server, endpoints });
// manually start server
const transport = new StdioServerTransport();
await server.connect(transport);
// or initialize your own server with specific tools
const myServer = new McpServer(...);
// define your own endpoint
const myCustomEndpoint = {
tool: {
name: 'my_custom_tool',
description: 'My custom tool',
inputSchema: zodToJsonSchema(z.object({ a_property: z.string() })),
},
handler: async (client: client, args: any) => {
return { myResponse: 'Hello world!' };
})
};
// initialize the server with your custom endpoints
init({ server: myServer, endpoints: [listV2APIKey, myCustomEndpoint] });Available Tools
The following tools are available in this MCP server.
Resource v2.api_key:
list_v2_api_key(read): This endpoint returns a list of API keys. Rate limited to 1000 requests per minute.validate_v2_api_key(read): This endpoint validates the API key provided in the header. If the request succeeds, the API key is valid. Rate limited to 1000 requests per minute.
Resource v2.persona:
retrieve_v2_persona(read): Get Persona by OIdlist_v2_persona(read): List personas by query
Resource v2.agents:
list_v2_agents(read): List all agentslist_types_v2_agents(read): List all available agent types with their metadata
Resource v2.agents.enrich_company:
run_agents_v2_enrich_company(write): Enrich a company
Resource v2.agents.enrich_person:
run_agents_v2_enrich_person(write): Enrich a Person
Resource v2.agents.generate_content:
run_agents_v2_generate_content(write): Generate content for a person
Resource v2.agents.sequence:
run_agents_v2_sequence(write): Generate Emails for a person
Resource v2.agents.personalize_template:
run_agents_v2_personalize_template(write): Template Personalization Agent
Resource v2.agents.workspace:
build_agents_v2_workspace(write): Generate and build a Workspace
Resource v2.agents.qualify_person:
run_agents_v2_qualify_person(write): Determine if a person is qualified for a given Product, Persona, and/or Segment
Resource v2.agents.qualify_company:
run_agents_v2_qualify_company(write): Determine if a company is qualified for a given Product and/or Segment
Resource v2.agents.prospector:
run_agents_v2_prospector(write): Find relevant people at a company or lookalike companies
Resource v2.agents.call_prep:
run_agents_v2_call_prep(write): Generate call prep content including discovery questions, call scripts, and objection handling
Resource v2.agents.experiment:
create_agents_v2_experiment(write): Create a new agent experiment
Resource v2.playbook:
create_v2_playbook(write): Create Playbookretrieve_v2_playbook(read): Get Playbook by OIdlist_v2_playbook(read): List Playbooks
Resource v2.use_case:
retrieve_v2_use_case(read): Get Use Case by OIdlist_v2_use_case(read): List Use Cases
Resource v2.reference:
create_v2_reference(write): Create Referenceretrieve_v2_reference(read): Get Reference by OIdlist_v2_reference(read): List References
Resource v2.product:
retrieve_v2_product(read): Get Product by OIdlist_v2_product(read): List Products
Resource v2.headless:
generate_emails_v2_headless(write): Generate Emails - Headless
Resource v2.async.agent:
run_async_v2_agent(write): Asynchronously run agents
Resource v2.async.headless:
generate_emails_async_v2_headless(write): Generate Emails asynchronously - Headless
Resource v2.competitor:
retrieve_v2_competitor(read): Get Competitor by OIdlist_v2_competitor(read): List competitors with optional filtering and pagination
Resource v2.segment:
retrieve_v2_segment(read): Get Segment by OIdlist_v2_segment(read): List segments with optional filtering and pagination
Resource v2.proof_point:
retrieve_v2_proof_point(read): Get Proof Point by OIdlist_v2_proof_point(read): List proof points with optional filtering and pagination
